pub struct Computer { /* private fields */ }
Expand description

The computer consists of three parts:

  • Central Processing Unit (CPU)
  • Memory (RAM)
  • Instruction Memory (ROM)

This configuration with two separate address space for instructions and data is called Hardware architecture.

The intruction memory out signal is feed to the instruction input of the CPU, which is then executed. This execution may involve reading or writing data to memory registers. The CPU also figures out the instruction to fetch next and emits this address through its pc output. The pc output is feed to the address input of the instruction memory.

Implementations

Loads instructions into the ROM

Advances one cicle

Trait Implementations

Returns the “default value” for a type. Read more
Carries out the tick-phase of a clock cycle: LOW
Carries out the tock-phase of a clock cycle: HIGH
Evaluates the logic expression as we do with arithmetic without advancing the time. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.