pub struct Ram512 {
    pub data: Vec<Signal16>,
    /* private fields */
}
Expand description

Fast RAM which, as opposed to the other RAMs, it does not carries out the simulation with other building blocks, but it emulates it with native code.

Fields

data: Vec<Signal16>

Implementations

Carries out the simulation, taking as input:

  • inp: data input
  • load: whether to write inp into the RAM
  • address: which register to select

It returns the value stored at address. Furthermore, when loadisHI, inpis written at locationaddress`, and the loaded value will be emitted from the next time step onward.

Trait Implementations

Returns the “default value” for a type. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
Performs the mutable indexing (container[index]) operation. Read more
Evaluates the logic expression as we do with arithmetic without advancing the time. Read more
Carries out the tick-phase of a clock cycle: LOW
Carries out the tock-phase of a clock cycle: HIGH

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.