How to create WaveDrom diagrams from a waveform dump in DVT IDE for Eclipse
Overview
This video demonstrates how to generate WaveDrom timing diagrams directly from waveform simulation data in the DVT IDE.
You will learn how to export selected signals from the Waveform Viewer toolbar to a file, and how to create WaveDrom diagrams from the editor context menu or Code Factory.
The video also covers the live preview of WaveDrom diagrams in the Inspect view as you edit them.
The video was made using DVT IDE version 26.1.18.
Details
Introduction
WaveDrom is a tool that draws timing diagrams from a simple textual description written in JSON format. DVT IDE can generate these descriptions automatically from waveform simulation data, saving you the effort of writing them by hand.
From the Waveform Viewer
Simply click the Export as WaveDrom button from the viewer's toolbar. The exported WaveDrom snippet is saved to a file, capturing the signals in the viewer's panel across the currently visible time interval.
Simply open the exported file to preview the timing diagram in the Inspect View. Notice how it gets updated on the fly while editing the JSON description, allowing you to fine-tune the diagram before saving it as am image.
To change the exported timespan you can either zoom or place the primary and secondary cursors in the Waveform Viewer using left and right mouse clicks before generating the diagram.
From the Editor
You can also generate a WaveDrom diagram for all ports of a module, without needing to add them in the current Waveform Viewer.
In an editor, right-click on the module declaration or one of its instances, and from the context menu select Waveform Viewer > Create WaveDrom Diagram. The diagram gets inserted just above the current line. Hover to see the preview in a tooltip.
For more control over where the WaveDrom description is inserted, use the Code Factory. Start by setting a design scope definition as Code Factory Input. Then, right-click in the target editor. Notice the two WaveDrom entries under Code Factory: one creates a WaveDrom diagram stub with all signals, while the other creates the WaveDrom diagram for all module signals pulling in data from the currently open waveform.