Skip to main content

Module probe

Module probe 

Source
Expand description

Probes, their records and the measurements over them, re-exported so a host that decodes or draws a scope needs one dependency, not two. Named points in the circuit and the measurements taken from them.

The board records every net transition while a trace is running and, with analog co-simulation on, the solved voltage on each probed net at every settle. A Channel is one probe’s slice of that record plus the numbers a scope or a test reports: edges, period, duty, pulse widths, voltage range. Nothing here drives or observes a part; the board owns the record and this module turns it into something a host can print or draw.

Structs§

Channel
One probe with its record and the measurements over that record.
Measurements
The numbers a channel reports.
Probe
One watched point, as the board resolved it.
Series
What was recorded for one probe’s net, in time order.
Trigger
Where a logic analyzer starts its window: the first transition of channel to level, with pre_ticks of history kept before it and post_ticks recorded after it (zero means “to the end of the record”).

Functions§

channels
Build the channels for probes from the board’s net trace and analog samples. initial is the level every net held when recording started, emitted at start so a channel begins with the state it actually had.
measure
The measurements a series carries.
summary
One line per channel for a terminal report, e.g. pwm: 1.000 kHz, duty 50.0%, 20 edges, pulse 500us..500us, 0.000..3.300 V.
to_csv
A CSV with one column per channel, one row per time any channel changes, and values held between changes.
triggered
Cut every channel down to one trigger’s window and measure the result again. The point before the window is kept so the level at the window’s start is known, and a channel with no points inside the window still reports the level it held there.