pub struct Mem { /* private fields */ }
Expand description
A same-cycle random-access memory. Has 64KiB of memory. Addressed by a 32-bit address (only the bottom 16 bits are usable). Reads and writes a 32-bit word at a time.
Implementations§
Trait Implementations§
source§impl Ext for Mem
impl Ext for Mem
fn name(&self) -> String
fn instantiate(&mut self, path: Path)
fn incoming_ports(&self) -> Vec<PortName>
fn outgoing_ports(&self) -> Vec<PortName>
fn update( &mut self, path: Path, port: &PortName, value: Value ) -> Vec<(PortName, Value)>
fn clock(&mut self, path: Path) -> Vec<(PortName, Value)>
fn reset(&mut self, path: Path) -> Vec<(PortName, Value)>
Auto Trait Implementations§
impl RefUnwindSafe for Mem
impl Send for Mem
impl Sync for Mem
impl Unpin for Mem
impl UnwindSafe for Mem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more