Struct bitsy_lang::sim::Sim
source · pub struct Sim { /* private fields */ }
Implementations§
source§impl Sim
impl Sim
pub fn new(circuit: &Circuit, exts: Vec<Box<dyn Ext>>) -> Sim
pub fn net_values(&self) -> BTreeMap<NetId, Value>
pub fn net(&self, net_id: NetId) -> &Net
pub fn cap_clock_freq(self, freq: f64) -> Self
pub fn peek<P: Into<Path>>(&self, path: P) -> Value
pub fn poke<P: Into<Path>>(&mut self, path: P, value: Value)
pub fn type_of<P: Into<Path>>(&self, path: P) -> Type
pub fn clock(&mut self)
pub fn reset(&mut self)
pub fn clocks_per_second(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Sim
impl !Send for Sim
impl !Sync for Sim
impl Unpin for Sim
impl !UnwindSafe for Sim
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