VCDrom for Visual Studio Code
VCDrom is a high-performance waveform viewer and interactive WaveQL editor for Visual Studio Code, supporting .vcd, Brotli-compressed .vcd.br, and .lst listing files.

Features
- Interactive WaveQL Editor: Edit waveform queries directly in VS Code. VS Code owns document state, undo/redo, dirty tracking, and saving.
- Autocomplete: Signal and keyword completion in WaveQL (Alt+C / Ctrl+Space).
- VCD & Brotli Support: Inspect standard
.vcd files as well as compressed .vcd.br files.
- Listing (LST) Correlation: Attach disassembly listings (GCC and Clang) to correlate program counter signals with instructions.
- Pipeline Source View: Interleave high-level source lines with assembly in pipeline view; Ctrl+Click (Cmd+Click on macOS) jumps to the source file beside the waveform.
- Flame Chart: Reconstruct call stacks over time from commit
pc/go signals and the listing.
- Analog View: Render numeric signals as analog waveforms.
- VCDrom Shell: Integrated VS Code terminal with VCD hierarchy navigation and waveform commands (goto, zoom, next/previous edge); signals added in the shell are appended to the WaveQL document.
- Automatic File Pairing: Links
<name>.waveql, <name>.vcd.br, <name>.vcd, and <name>.lst siblings.
- Desktop & Web Extension: Runs on VS Code Desktop (Linux, macOS, Windows) and VS Code for the Web (
vscode.dev, github.dev). See Cross-Origin Isolation.
Quick Start
1. WaveQL-First Workflow
- Open or create a
.waveql file (e.g. dut.waveql).
- The VCDrom editor opens automatically.
- Sibling files (e.g.
dut.vcd, dut.vcd.br, dut.lst) in the same folder are auto-discovered.
- Type signal paths (e.g.
top.clk, top.data[7:0]) in the WaveQL editor to view waveforms in real time. Lines starting with # are comments.
- Save (Ctrl+S / Cmd+S) to preserve your waveform configuration.
2. VCD-First Workflow
- Right-click any
.vcd or .vcd.br file in the Explorer.
- Select Open VCD.
- VCDrom opens the matching
.waveql file (or prompts to choose or create one) and attaches the selected waveform.
See the WaveQL language reference for query syntax.
3. Try the Examples
Sample designs with VCD and WaveQL files are in wavedrom/vcd-samples (jtag, random, swerv, bgm434, Briey with listing):
git clone https://github.com/wavedrom/vcd-samples
code --enable-coi vcd-samples
Open jtag/jtag.waveql or random/random.waveql; the matching .vcd is attached automatically. Where names differ (e.g. Briey/dump1.vcd.br and Briey/dump.waveql), right-click the VCD and select Open VCD, then choose the WaveQL file.
Commands
| Command |
Title |
Description |
vcdrom.openVcd |
VCDrom: Open VCD |
Opens or creates matching WaveQL document and attaches VCD |
vcdrom.attachVcd |
VCDrom: Attach VCD to Active WaveQL |
Attaches or switches VCD file in the active editor |
vcdrom.attachLst |
VCDrom: Attach Listing to Active WaveQL |
Attaches a listing (.lst) file |
vcdrom.openTerminal |
VCDrom: Open Terminal |
Opens the VCDrom shell in the VS Code terminal panel |
vcdrom.showLogs |
VCDrom: Show Logs |
Reveals the VCDrom output channel |
vcdrom.reloadView |
VCDrom: Reload View |
Resynchronizes and reloads the active webview |
Settings
| Setting |
Description |
vcdrom.sourcePathMap |
Array of {from, to} path prefix mappings used when jumping from listing to source files. Supports ${workspaceFolder}. Useful for cross-compiled traces built on another machine. |
Cross-Origin Isolation (COI) Requirement
VCDrom's WebAssembly parser uses shared memory (SharedArrayBuffer) for zero-copy waveform rendering. This requires the host to be cross-origin isolated:
VS Code Desktop: Not isolated by default. Launch VS Code from the command line with:
code --enable-coi
This flag is command-line only; it cannot be set in argv.json or settings. It applies to all webviews, so other extensions' webviews that load remote resources may be affected.
VS Code for the Web (vscode.dev / github.dev): Open with the ?coi URL parameter (e.g. https://vscode.dev/?coi).
Without isolation, VCDrom shows a diagnostic instead of loading the waveform; on vscode.dev / github.dev it offers a one-click relaunch with ?coi. A fallback for non-isolated hosts is planned.
Security & Privacy
VCDrom processes all waveform, query, and listing data locally inside your VS Code instance or browser sandbox. No telemetry, waveform data, or code is transmitted to external servers.
Links & License