opentitanlib::util::vcd

Function vcd_from_edges

Source
pub fn vcd_from_edges(
    pin_names: Vec<Option<String>>,
    clock_resolution: u64,
    initial_timestamp: u64,
    initial_values: &[bool],
    events: &[MonitoringEvent],
    final_timestamp: u64,
) -> Result<Vcd>
Expand description

Construct a VCD of a waveform represented by a chronological sequence of rising / falling edges (i.e. value changes) as is returned by the GpioMonitoring interface. This includes an initial & final timestamp, some initial values, and a list of edge events.