Trait bitsy_lang::sim::ext::Ext
source · pub trait Ext: Debug {
// Required methods
fn name(&self) -> String;
fn instantiate(&mut self, path: Path);
fn update(
&mut self,
path: Path,
port: &PortName,
value: Value
) -> Vec<(PortName, Value)>;
// Provided methods
fn incoming_ports(&self) -> Vec<PortName> { ... }
fn outgoing_ports(&self) -> Vec<PortName> { ... }
fn clock(&mut self, _path: Path) -> Vec<(PortName, Value)> { ... }
fn reset(&mut self, _path: Path) -> Vec<(PortName, Value)> { ... }
}