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

16-bit register, behaving exactly like a 1-bit register, but with 16-bit values

Implementations

Carries out the simulation, taking as input:

  • inp: data bit
  • load: whether to write inp into the register

And, at time t, returns (out) the following:

if load(t-1) { inp(t-1) }
else { out(t-1) }

Trait Implementations

Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
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.

Converts the given value to a String. Read more
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.