Skip to content

Change

struct Change

@name Demand-loaded signal histories

A VCD is a change log, so answering "value of S at index i" needs either the whole log in memory or another read of the file. Keeping the whole log is what the non-streaming reader does and what streaming exists to avoid.

So a signal's history is built only when that signal is first read: one forward pass over the file recording the changes of the signals asked for, and nothing else. An analysis that watches a clock and three bus signals on a 100 GB trace keeps four short change lists, not the trace.

A pass also collects every signal requested so far, so repeatedly asking for the same few signals costs one pass, not one per read. @{

Variables

Name Description
index trace index at which the value took effect

Variable Details

index

int index

trace index at which the value took effect