Skip to main content

VcdWriter

Struct VcdWriter 

Source
pub struct VcdWriter<W: Write = File> { /* private fields */ }

Implementations§

Source§

impl VcdWriter<File>

Source

pub fn new<P: AsRef<Path>>(path: P, descs: &[VcdSignalDesc]) -> Result<Self>

Source§

impl<W: Write> VcdWriter<W>

Source

pub fn from_writer(writer: W, descs: &[VcdSignalDesc]) -> Self

Source

pub fn flush(&mut self) -> Result<()>

Publish buffered output, also reporting errors that Drop cannot report.

Source

pub fn statistics(&self) -> VcdStatistics

Source

pub fn get_ref(&self) -> &W

Source

pub fn dump_backend<B: SimBackend>( &mut self, timestamp: u64, backend: &mut B, external: &[(BigUint, BigUint)], ) -> Result<()>

Dump as the backend’s sole incremental waveform observer. Multiple writers must consume activity once and share it through dump_with_activity, since each consumption clears the pending flags.

Source

pub fn into_inner(self) -> Result<W>

Source

pub fn add_external_signals( &mut self, descs: &[VcdExternalSignalDesc], ) -> Result<()>

Adds externally supplied signals before the first dump. VCD headers cannot be extended after value changes have started.

Source

pub fn dump(&mut self, timestamp: u64, memory: &[u8]) -> Result<()>

Full-scan reference path, also suitable for uninstrumented/raw memory.

Source

pub fn dump_with_external( &mut self, timestamp: u64, memory: &[u8], external: &[(BigUint, BigUint)], ) -> Result<()>

Source

pub fn dump_with_activity( &mut self, timestamp: u64, memory: &[u8], external: &[(BigUint, BigUint)], activity: Option<&[usize]>, ) -> Result<()>

activity contains unique physical group IDs consumed from TraceLayout. None requests a full scan. Initial values and external signals are always observed, including when no generated store has executed.

Auto Trait Implementations§

§

impl<W> Freeze for VcdWriter<W>
where VcdOutput<W>: Freeze,

§

impl<W> RefUnwindSafe for VcdWriter<W>
where VcdOutput<W>: RefUnwindSafe,

§

impl<W> Send for VcdWriter<W>
where VcdOutput<W>: Send,

§

impl<W> Sync for VcdWriter<W>
where VcdOutput<W>: Sync,

§

impl<W> Unpin for VcdWriter<W>
where VcdOutput<W>: Unpin,

§

impl<W> UnsafeUnpin for VcdWriter<W>
where VcdOutput<W>: UnsafeUnpin,

§

impl<W> UnwindSafe for VcdWriter<W>
where VcdOutput<W>: UnwindSafe,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.