Compare two traces

You will learn

How to diff two runs and have the trace name the earliest cycle where they split.

Two runs of the same testbench, one before a change and one after: the fastest question is where they split. A trace diff answers at the resolution of one signal change: the earliest cycle where the golden run says 1 and the new run says 0. The widget diffs files this way, frame by frame, and refuses to say 'same' when a byte differs. The lesson's spec is the testbench that drives the VCD comparison tool -- expected against actual, with the mismatch printed, not eyeballed.

Open the interactive lesson →