opentitanlib::util::vcd

Function vcd_from_samples

Source
pub fn vcd_from_samples(
    pin_names: Vec<Option<String>>,
    timescale_ps: u128,
    samples: &[&[u8]],
) -> Result<Vcd>
Expand description

Construct a VCD from a uniformly (discretely) sampled waveform, represented by a list of samples (pin values over time) and a timescale (sampling period). Each sample is defined by a slice of bytes, where each bit index in a slice refers to a single pin over each sample. Variables are defined in order, corresponding to LSB-first sample order.