Struct VcdDumper

Source
pub struct VcdDumper { /* private fields */ }

Implementations§

Source§

impl VcdDumper

Source

pub fn for_circuit( writer: BufWriter<File>, circuit: &[CombineOperation], bool_hasher: &WireHasher, arith_hasher: &WireHasher, ) -> Self

Uses WireHasher.backref to recover scope information from hashed wires in a circuit. With our circuit pipeline, this is ONLY RELIABLE FOR TOP-LEVEL INPUTS & OUTPUTS because the flattener translates & minimizes all other wires after hashing occurs. Still, it can be useful for diagnosing whether you’re seeing the output you expect when crossing from the boolean to the arithmetic bound, and with changes to the flattener it could be made to work for all wires.

Source

pub fn dump_bool(&mut self, dst: usize, val: bool)

Write a formatted boolean value into the VCD file. Can only be one bit.

Source

pub fn dump_arith(&mut self, dst: usize, val: u64)

Write a 64-bit integer into the VCD file.

Source

pub fn finish(&mut self)

Write the end of the data dump section with some extra timing entries to make gtkwave show a wider display.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V