The VCD format

You will learn

What a .vcd file actually contains, and how to read its dump of every signal.

A waveform file is text, and reading it as text is a skill. A .vcd declares its timescale, names its scopes and variables, then records only changes: a timestamp, an identifier, a value. The lesson's spec, vcd_trace, models exactly that -- headers, changes, durations -- with tests over earliest and latest change. The widget is a real trace wrapped up as a card: the testbench toggled clk 585 times and left 4 signals at X for the whole run, both facts counted from the file, not remembered from the screen.

Open the interactive lesson →