pub struct Rom32k { /* private fields */ }
Expand description
Instruction memory, preloaded with the required program.
Implementations
sourceimpl Rom32k
impl Rom32k
sourcepub fn sim(&mut self, address: Signal15) -> Signal16
pub fn sim(&mut self, address: Signal15) -> Signal16
Carries out the simulation taking as input an address and returns the corresponding instruction
pub fn out(&self) -> Signal16
pub fn set_address(&mut self, address: impl Into<Signal15>)
pub fn set_instructions(&mut self, instructions: Vec<AsmInstruction>)
pub fn get_index(&self) -> usize
pub fn get_instruction(&self) -> &AsmInstruction
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rom32k
impl Send for Rom32k
impl Sync for Rom32k
impl Unpin for Rom32k
impl UnwindSafe for Rom32k
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more