Skip to main content
T₀  //  routewave · user guide

The guide.

This guide covers installation, the window layout, navigation, signal analysis and automation, in that order. Shortcuts and commands for quick lookup are in the reference.

RouteWave User Guide

This guide describes RouteWave from download to waveform analysis. The sections follow the usual order of work: installation, the user interface, navigation, signal handling, analysis and automation.

~15 min read
T₁  //  get running

Get Running

One pip command installs the RouteRTL SDK, and rr routewave launches RouteWave. On first use, rr routewave downloads the RouteWave binary and caches it.

Install

Terminal
# Install the RouteRTL SDK (it fetches RouteWave on first launch)
pip install routertl
# Launch RouteWave
rr routewave
tip
rr routewave downloads and caches RouteWave on first launch. To update it, run rr ws update-viewer or pip install --upgrade routertl.

First Launch

RouteWave opens a waveform file given on the command line. It accepts VCD, FST, GHW and ILA CSV files.

Terminal
# Open a VCD from simulation
rr routewave my_design.vcd
# Open an FST (GTKWave-compatible)
rr routewave capture.fst
# Run simulation and auto-open the result
rr sim my_testbench --view
# Or open the latest waveform from a previous run
rr waves

At launch, the Signal Hierarchy panel loads the full design tree. Double-click any signal to add it to the waveform view.

WSL2 (Windows)

Windows has a native build (a zip on the release page). The Linux build also runs on WSL2. A fresh Ubuntu install needs the OpenGL libraries below.

Terminal
# Install OpenGL libs (required once on fresh WSL2 Ubuntu)
sudo apt install libopengl0 libgl1 libglx-mesa0 libegl1
# Windows 11: WSLg handles the display
rr routewave
# Windows 10: install VcXsrv first, then run
export DISPLAY=$(ip route list default | awk '{print $3}'):0
rr routewave
tip
To test the display, run xeyes. If a window appears, the display also works for RouteWave. If no window appears, run wsl --update and check with wsl -l -v that the distribution runs on WSL2.
T₂  //  the layout

The Layout

RouteWave has four main panels, shown below.

Signal Hierarchy
▸ uart_sniffer
  ▸ config_control
  ▸ edge_event
    ● clk
    ● ce
  ▸ fifo_buffer
Waveform View
Signals rendered here • Zoom with scroll wheel • Pan with middle-click drag
Mission Control
★ Dashboard
Cursor State
View Info
Hover Measurements
Consoleroutewave> _
RouteWave showing a UART data logger session with signal hierarchy, waveform view, and Mission Control
RouteWave with a UART data logger design loaded: Signal Hierarchy (left), Waveform View (center), Mission Control (right) and Console (bottom right)

Signal Hierarchy

The left panel shows the design tree. Modules are expandable folders; signals are leaf nodes with coloured eye badges. Double-click a signal to add it to the waveform view. The eye badge turns bright blue when a signal is currently displayed.

tip
The search bar at the top of the hierarchy filters signals by name. It matches parts of names: "addr" finds every signal whose name contains addr.

Waveform View

The center canvas draws the signals with OpenGL on the GPU. Each signal occupies a horizontal row with its name and current value on the left. Bus signals display as diamond-shaped lozenges with their hex value inside.

The timeline ruler at the top shows time ticks with auto-scaling units (ns, μs, ms, s). Use the unit selector in the toolbar to force a specific unit.

Mission Control

The right panel shows live information about the current view:

  • Cursor State: positions and delta of all active cursors
  • View Info: zoom level, time window and active channel count
  • Hover Measurements: signal name, value, frequency, period, width and duty cycle at the mouse position
  • Display: rendering settings and visual options

Console

The bottom panel is a command console that also runs scripts.Ctrl+J moves the focus to it. Console commands add signals, change the view and attach decoders, so these steps can be scripted.

Console examples
routewave> show clk
routewave> show data[7:0]
routewave> zoom 100ns 500ns
routewave> handshake tvalid tready
T₄  //  work with signals

Work with Signals

RouteWave can also create virtual buses, search for values and group related signals.

Add & Remove

Signals can be added to the waveform view in three ways:

  • Double-click a signal in the hierarchy tree
  • Use the console: show clk, show data[7:0]
  • Press Ctrl+F to search for a signal and add it

To remove a signal, right-click it in the waveform and select "Hide", or use hide signalname in the console.

Reorder & Group

Drag and drop signals in the waveform view to reorder them. Dividers and labels separate groups of related signals.

tip
For a bus protocol, group the address, data and control signals. The timing relationship between them is then easier to read.

Change Radix

Bus signals default to hexadecimal display. Change the display radix using keyboard shortcuts or the console:

shortcutaction
1Hexadecimal (default)
2Decimal
3Binary
4ASCII

Select a signal first, then press the number key. In ASCII mode, a UART data bus shows the transmitted characters on the waveform.

Virtual Buses

Combine individual signals into a virtual bus for grouped analysis:

Console
# Select signals with Ctrl+Click, then create a virtual bus
routewave> makebus my_data
# Create a virtual signal using an expression
routewave> virtual handshake = valid AND ready

Virtual buses appear in the waveform like real bus signals, with lozenges that show the combined hex value. They are kept across sessions when saved in a .ltrace session file.

Find Values

The find command searches a bus signal for a value, for example an address or a data pattern:

Console
# Find all occurrences of 0xDEAD on data_bus
routewave> find data_bus 0xDEAD
# Navigate through results
routewave> findnext
routewave> findprev

The "Find value" button in the toolbar does the same search. Small markers show the results on the timeline.

T₅  //  analyze

Analyze

RouteWave has built-in tools to decode protocols, measure timing and compare waveforms.

RouteWave I2C data logger session showing protocol decode overlays, handshake visualization, cursor measurements, and console bookmarks
I2C data logger analysis with protocol decode bands (I2C Decoded, Sniffer Internals), a cursor delta measurement (Δ = 52.8 μs) and console bookmark navigation

Measurements

The measure command computes timing properties of a signal:

Console
routewave> measure sys_clk
  Period: 20.000 ns
  Frequency: 50.000 MHz
  Duty Cycle: 50.0%
  Pulse Width: 10.000 ns

Hover measurements need no command. When the mouse is over a signal, Mission Control shows the signal name, current value and timing properties at that position.

Handshake Analyzer

Bind a valid/ready pair to visualize handshake transfers as coloured overlay bands on the waveform:

Console
# Bind an AXI-Stream handshake
routewave> handshake tvalid tready
# The overlay shows:
#   Green bands = completed transfers
#   Red bands = backpressure (valid HIGH, ready LOW)
#   Transfer count in the Dashboard

The H key does the same for two selected signals. The overlay draws semi-transparent bands across the waveform, which show where transfers stall.

Protocol Decoders

RouteWave has built-in decoders for common serial protocols:

Console
# Attach a UART decoder (auto-detects baud rate)
routewave> translate uart_rx uart_8n1
# I2C decoder merges SDA + SCL into a decoded trace
routewave> translate sda scl i2c
# List available decoders
routewave> translators

Decoded data appears as labels on the waveform timeline. For UART, each byte is shown with its ASCII character.

Waveform Diff

The compare commands overlay two simulation runs and mark where they differ:

Console
# Load a reference file and compare
routewave> compare load reference_run.vcd
# Show diff overlay on a specific signal
routewave> compare diff signal_name
# Differences are highlighted as coloured overlay bands
tip
For a regression, load the waveform of a passing run as the reference and compare it with the failing run. The overlay shows which signal differs and at what time.

Waveform Comparison

A reference file loaded with compare load can be compared signal by signal with compare diff:

Console
# Load reference waveform for comparison
routewave> compare load golden_run.vcd
# Show diff overlay on a signal
routewave> compare diff data_bus
T₆  //  automate

Automate

Console commands can be saved as scripts and replayed. A signal view that is set up once can then be restored with one command.

Console Commands

Ctrl+J moves the focus to the console. The most common commands are:

commanddescription
show <signal>Add signal to canvas
hide <signal>Remove signal from canvas
zoom <in|out|fit|start end>Zoom viewport
pan <start|end>Pan to trace boundary
measure <signal>Compute period/frequency/duty
handshake bind <valid> <ready>Bind handshake overlay
translate <ch> uart_8n1Attach protocol decoder
compare load <file>Load reference for diff
makebus <name>Create virtual bus from selection
find <channel> <value>Search for hex value on bus
bookmark [name]Save viewport position
goto <name|time>Jump to bookmark or timestamp
export <file.csv>Export visible data
record start <file> / stopRecord command macro
helpShow all commands

Macro Recording

Record a sequence of console commands to a .ltr file and replay them later:

Console
# Start recording to a file
routewave> record start my_setup.ltr
# Set up the view
routewave> show clk
routewave> show data[7:0]
routewave> handshake bind tvalid tready
routewave> zoom 0 10000
# Stop recording
routewave> record stop
# Replay the recorded macro
routewave> exec my_setup.ltr

Script Files

A setup saved as a script file (.ltr) can run at startup, so that a debugging session can be reproduced:

setup_uart_debug.ltr
# UART debugging session setup
show clk
show rst_n
show uart_tx
show uart_rx
show data[7:0]
translate uart_tx uart_8n1
translate uart_rx uart_8n1
handshake bind tx_valid tx_ready
zoom 0 100000
bookmark "first byte"
Terminal
# Execute the script at launch
routewave my_design.vcd --exec setup_uart_debug.ltr
# Or source it from the console
routewave> exec setup_uart_debug.ltr

CSV Export

Export the visible waveform data to CSV for post-processing in Python, MATLAB, or spreadsheet tools:

Console
# Export to CSV (format chosen by file extension)
routewave> export output.csv
# Export to VCD
routewave> export output.vcd
T₇  //  workflows

Workflows

Each workflow below is also published as a blog article; both pages render the same text.

T₁₀  //  chapter 10

RouteWave from rr: simulation waves with testbench markers

Also published on the blog: /blog/routewave-from-rr

Facts verified against RouteWave 2.4.0 and rr 5.1.1 on 2026-10-30.

rr sim run runs a cocotb test and writes the wave. rr sim waves opens that wave in RouteWave. A testbench marks points in simulation time with rr_mark; RouteWave lists them as anchors, and a click on an anchor moves the cursor to its time.

rr sim run writes the wave, the anchor sidecar and the source map; rr sim waves opens them in RouteWave
Files written by rr sim run and read by RouteWave

Requirements

ItemValue
RouteRTL SDKrr 5.1.1
RouteWave2.4.0, started by rr sim waves
Simulatornvc for the source map; the anchors do not depend on the simulator
Testcocotb test under simulation.test_dir of project.yml

The example is an 8-bit pulse counter, pulse_counter, with one test file, sim/cocotb/tests/test_pulse_counter.py.

Testbench markers

rr_mark(label) stores the label with the current simulation time in nanoseconds. emit_ltmeta(dut, wave_path) writes the stored anchors to <wave>.ltmeta.json beside the wave. In rr 5.1.1 the test calls emit_ltmeta itself; without that call no anchor reaches the sidecar.

from pathlib import Path

import cocotb
from cocotb.clock import Clock
from cocotb.triggers import ClockCycles, Timer

import engine.simulation
from sdk.engine.ltmeta import emit_ltmeta
from sdk.engine.ltsync import rr_mark

WAVE = Path(__file__).parents[2] / "waves" / Path(__file__).stem / "pulse_counter.fst"


@cocotb.test()
async def test_burst(dut):
    cocotb.start_soon(Clock(dut.clk, 10, unit="ns").start())
    dut.rst.value = 1
    dut.pulse_in.value = 0
    await ClockCycles(dut.clk, 4)
    dut.rst.value = 0
    rr_mark("reset released")

    await ClockCycles(dut.clk, 5)
    rr_mark("burst start")
    for _ in range(6):
        dut.pulse_in.value = 1
        await Timer(20, unit="ns")
        dut.pulse_in.value = 0
        await Timer(30, unit="ns")
    rr_mark("burst done")

    await ClockCycles(dut.clk, 3)
    emit_ltmeta(dut, WAVE)
    assert int(dut.count.value) == 6


if __name__ == "__main__":
    engine.simulation.run_simulation(top_level="pulse_counter", module=Path(__file__).stem)

WAVE is the path rr gives the wave of this test: sim/waves/<test module>/<top level>.fst.

Running the simulation

rr sim run test_pulse_counter --wait

--wait makes a queued run return the test's exit code. The run writes three files:

FileContentRead by
pulse_counter.fstSignal valuesRouteWave, on open
pulse_counter.ltmeta.jsonAnchors from rr_markRouteWave, on open
pulse_counter.srcmap.jsonSignal to RTL declaration (nvc only)whereis, sourcepeek, rr wave whereis

The anchors in pulse_counter.ltmeta.json from this test:

"anchors": [
  { "time_ns": 30, "label": "reset released" },
  { "time_ns": 80, "label": "burst start" },
  { "time_ns": 380, "label": "burst done" }
]

Opening the waves

rr sim waves sim/waves/test_pulse_counter/pulse_counter.fst --show clk,rst,pulse_in,cnt
PartEffect
Wave pathThe file to open. Without a path, the newest .fst, .vcd or .ghw under the wave directories.
--showComma-separated names or globs. rr checks them against the wave and passes them to RouteWave as -c "show clk; show rst; show pulse_in; show cnt". A pattern that matches no signal is reported; when none matches, RouteWave is not started.

rr starts RouteWave on the wave. RouteWave reads pulse_counter.ltmeta.json and lists the anchors under Mission Control > Anchors, collapsed by default. A click on an anchor row sets the cursor to the anchor time. When that time lies outside the view or within 10 % of its edges, the view is centred on it; the zoom stays.

RouteWave 2.4.0 opened by rr sim waves: the pulse counter wave, and Mission Control with three anchors from the testbench
RouteWave 2.4.0 started by rr sim waves. The click on the anchor 'burst start' set the cursor to 80 ns.

Items to confirm

ItemObservation
rr sim run <test> --view --show <patterns>Opens the wave after a passing single test through the same launcher as rr sim waves. Not run for this article.
Anchors without emit_ltmetaIn rr 5.1.1 no part of rr sim run writes the rr_mark anchors on its own; the explicit call above is needed.
T₁₃  //  chapter 13

Give the agents what they need: driving RouteWave from an agent

Also published on the blog: /blog/driving-routewave-from-an-agent

Facts verified against RouteWave 2.4.0 on 2026-10-30.

The RouteWave console (Ctrl+J) runs commands such as value, cursor, zoom_raw and note. The same command table serves three other entry points: routewave_cli -c without a window, a WCP connection to an open window, and routewave -c or -e at start. Commands that read state print one fact per line, with no decoration, so a script or an agent parses the output directly.

A script or an agent reaches the console engine through routewave_cli, WCP or routewave -c
Three entry points to one command table

Entry points

Entry pointWindowUseFailure signal
routewave_cli -c "<cmd>; <cmd>"NoneQueries on a wave file: values, edges, bounds, source mapExit code 1 at the first failing command
WCP, JSON over TCPOpenDrive and read back a window a person is looking atError text in output (see Items to confirm)
routewave <wave> -c "<cmds>", -e <script>OpensSet up a view at startMessage in the console

routewave_cli has no window: cursor, gui and the other window commands fail there.

Headless queries

The example wave is pulse_counter.fst: an 8-bit counter cnt that counts six pulses on pulse_in.

$ routewave_cli -c "open pulse_counter.fst; bounds; value pulse_counter.cnt 400; edges pulse_counter.pulse_in"
Loaded 8 channel(s) from 'pulse_counter.fst'.
Source map: 8 signal(s) from 'pulse_counter.srcmap.json' (whereis <signal>).
0 395
0x6
12
CommandOutput
boundsFirst and last time of the trace in ns
value <signal> <ns>Value at that time, in the signal's radix
edges <signal>Number of value changes

A failing command ends the run with exit code 1, so a shell or CI step stops on it:

$ routewave_cli -c "open pulse_counter.fst; value pulse_counter.nosuch; bounds"
...
Signal not found: pulse_counter.nosuch
Error: command failed: value pulse_counter.nosuch
$ echo $?
1

An open window over WCP

The RouteWave window starts a WCP server. Without --port, it listens on an ephemeral port on 127.0.0.1 and writes the port number to $XDG_RUNTIME_DIR/routewave/<pid>.port (Linux and macOS). --port <N> listens on all interfaces; --no-wcp turns the server off.

A request is one line of JSON, {"cmd": "<command>", "arg": "<arguments>"}. The reply is one line, {"status": "ok"}, with an output field when the command printed text.

import glob, json, socket

port = int(open(glob.glob("/run/user/1000/routewave/*.port")[0]).read())

def wcp(cmd, arg=""):
    with socket.create_connection(("127.0.0.1", port)) as s:
        s.sendall((json.dumps({"cmd": cmd, "arg": arg}) + "\n").encode())
        return json.loads(s.makefile().readline())

/run/user/1000 stands for the value of $XDG_RUNTIME_DIR. The session below set the view, moved the cursor and added a note; each reply is shown after its request:

RequestReply output
zoom_raw 60 260(none)
cursor set 130(none)
value pulse_counter.cnt0x2
measure pulse_counter.pulse_inpulse_in: Width = 20 ns, Period = 50 ns, Freq = 20.00 MHz, Duty = 40.0%
note add cnt[7:0] 130ns second pulse countedn1 note 130ns pulse_counter.cnt[7:0] - - default 100 open second pulse counted
view get60 260
RouteWave 2.4.0 after the WCP session: view 60 to 260 ns, cursor at 130 ns, a note on cnt and the gui state read-back in the console
RouteWave 2.4.0 driven over WCP. Every change in the window came from a request in the table.

Reading the window back

gui state prints one tab-separated line per open window, with its position and size in pixels, then the focused window and whether a text field has the keyboard:

window	OS Terminal	0,800,518,200
window	Signal Hierarchy	0,65,207,733
window	Waveform View	209,65,829,733
window	Mission Control	1040,65,560,935
window	RouteWave Console	520,800,518,200
focus	RouteWave Console
text_input	0

signals lists the shown rows as <id> <name> <radix>; view get and cursor get return the view and the cursor in ns. Together they let an agent check that a command had the effect it expected.

The command table

routewave_cli --dump-commands prints every console command as JSON, one object per command:

{"cmd": "value", "cat": "Navigation", "syn": "value <signal> [<ns>]",
 "desc": "Print the formatted value of a signal at the focal cursor (or a given time), per its radix. Bare value, for scripting.",
 "ex": "value axi_wdata"}

An agent reads this table instead of the documentation. commands prints the same list in the console.

Items to confirm

ItemObservation
WCP status of a failing commandIn 2.4.0, value nosuch over WCP replied {"status": "ok", "output": "Signal not found: nosuch"}. A WCP client checks output for the error text; status alone does not show the failure.
record and execTaken from the command table; not run for this article.
WindowsThe port file is not written on Windows; --port <N> is the way to reach the server there. Not checked on a Windows build for this article.
T₈  //  reference

Reference

Keyboard Shortcuts

shortcutaction
Ctrl + OOpen file
Ctrl + Z / Ctrl + YUndo / Redo
Ctrl + PCommand palette
Ctrl + JFocus console
+ / -Zoom in / out
FZoom to fit
Home / EndPan to start / end
N / Shift + NNext / previous edge
CPush cursor
RCreate measurement ruler
BDrop zoom bookmark
HBind handshake on selection
Z / Shift + ZZoom undo / redo
Scroll wheelZoom at cursor position

File Formats

formatdescriptionsource
VCDIEEE 1364 Value Change DumpAny Verilog/SV simulator
FSTFast Signal Trace (compressed)GTKWave-compatible tools
GHWGHDL Waveform (native)GHDL via libghw
ILA CSVIntegrated Logic Analyzer exportVivado
.ltraceRouteWave native JSON sessionRouteWave (save/load)

CLI Flags

CLI Flags
Usage: routewave [options] [file]
Options:
  -e, --exec <file.ltr>  Execute a script file on startup
  -c, --command <cmd>    Run a single command after loading
  -s, --signal <name>    Show a signal on startup
  -w, --workspace <file> Load a workspace (.ltws) file
  --port <n>            Set WCP server port

Memory Management

For large waveform files, RouteWave can compress channels in memory with delta-varint timestamps and run-length encoded values:

Console
# Check per-channel memory usage
routewave> memstat
# Compress a specific channel
routewave> compact sys_clk
# Compress all loaded channels
routewave> compact