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)> { ... }
}

Required Methods§

source

fn name(&self) -> String

source

fn instantiate(&mut self, path: Path)

source

fn update( &mut self, path: Path, port: &PortName, value: Value ) -> Vec<(PortName, Value)>

Provided Methods§

source

fn incoming_ports(&self) -> Vec<PortName>

source

fn outgoing_ports(&self) -> Vec<PortName>

source

fn clock(&mut self, _path: Path) -> Vec<(PortName, Value)>

source

fn reset(&mut self, _path: Path) -> Vec<(PortName, Value)>

Implementors§