pub struct VcdWriter<W: Write = File> { /* private fields */ }Implementations§
Source§impl<W: Write> VcdWriter<W>
impl<W: Write> VcdWriter<W>
pub fn from_writer(writer: W, descs: &[VcdSignalDesc]) -> Self
Sourcepub fn flush(&mut self) -> Result<()>
pub fn flush(&mut self) -> Result<()>
Publish buffered output, also reporting errors that Drop cannot report.
pub fn statistics(&self) -> VcdStatistics
pub fn get_ref(&self) -> &W
Sourcepub fn dump_backend<B: SimBackend>(
&mut self,
timestamp: u64,
backend: &mut B,
external: &[(BigUint, BigUint)],
) -> Result<()>
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.
pub fn into_inner(self) -> Result<W>
Sourcepub fn add_external_signals(
&mut self,
descs: &[VcdExternalSignalDesc],
) -> Result<()>
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.
Sourcepub fn dump(&mut self, timestamp: u64, memory: &[u8]) -> Result<()>
pub fn dump(&mut self, timestamp: u64, memory: &[u8]) -> Result<()>
Full-scan reference path, also suitable for uninstrumented/raw memory.
pub fn dump_with_external( &mut self, timestamp: u64, memory: &[u8], external: &[(BigUint, BigUint)], ) -> Result<()>
Sourcepub fn dump_with_activity(
&mut self,
timestamp: u64,
memory: &[u8],
external: &[(BigUint, BigUint)],
activity: Option<&[usize]>,
) -> Result<()>
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> 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