pub struct StackMemoryNode { /* private fields */ }Expand description
A node which stores values written to it on a stack. When the node is read from it will pop the top value off of the stack and return it.
Implementations§
Source§impl StackMemoryNode
impl StackMemoryNode
Sourcepub fn new() -> StackMemoryNode
pub fn new() -> StackMemoryNode
Construct a new, empty StackMemoryNode.
Trait Implementations§
Source§impl Debug for StackMemoryNode
impl Debug for StackMemoryNode
Source§impl Node for StackMemoryNode
impl Node for StackMemoryNode
Source§fn step(&mut self, io: &mut IoBusView<'_>)
fn step(&mut self, io: &mut IoBusView<'_>)
At the start of each cycle, the top value is made available on all ports. Any values that have been written to this node are then added to the stack.
Source§fn sync(&mut self, io: &mut IoBusView<'_>)
fn sync(&mut self, io: &mut IoBusView<'_>)
Synchronize reads and writes after the last instruction cycle.
Source§fn is_stalled(&self) -> bool
fn is_stalled(&self) -> bool
Determine if a node is executing assembly code or if it is stalled on a read or write.
For all nodes except nodes which can execute assembly, this should always be
true.Auto Trait Implementations§
impl Freeze for StackMemoryNode
impl RefUnwindSafe for StackMemoryNode
impl Send for StackMemoryNode
impl Sync for StackMemoryNode
impl Unpin for StackMemoryNode
impl UnwindSafe for StackMemoryNode
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