Node

Trait Node 

Source
pub trait Node {
    // Provided methods
    fn step(&mut self, io: &mut IoBusView<'_>) { ... }
    fn sync(&mut self, io: &mut IoBusView<'_>) { ... }
    fn is_stalled(&self) -> bool { ... }
}
Expand description

Interface for nodes in a TIS-100 system.

Provided Methods§

Source

fn step(&mut self, io: &mut IoBusView<'_>)

Execute a single instruction cycle.

Source

fn sync(&mut self, io: &mut IoBusView<'_>)

Synchronize reads and writes after the last instruction cycle.

Source

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.

Implementors§