TSE/HVI / READ-ONLY CURRICULUM
Learn the subject.
Keep every lesson available.
20 public-safe lessons across 6 tracks. Each lesson preserves its purpose, key points, misconception check, learning questions and a practical exercise. Implementation-specific modules, private source paths and credentials remain outside this export.
Foundations
What problem TSE/HVI solves
TSE/HVI makes several instruments, in one or many chassis or boxes, act on one time base, so triggers, timed events and measurements line up to nanoseconds. The timing runs in each instrument's HVI Engine hardware, not on the host CPU. The product spans from one public API down to the FPGAs.
Read lesson →beginner / 20 minTSE vs HVI vs HVI Core vs HVI Engine
TSE (KS2201A) is the commercial product/API and runtime. HVI is the technology and model (and also the name for a user-defined hard virtual instrument). HVI Core / HVI2 Core is the software library that implements the API layers. The HVI Engine is the per-instrument gateware IP that executes sequences.
Read lesson →beginner / 20 minOverloaded product and test-system words
Leader/follower, assembly, Cellini, sync and FDS each name several different things. There are at least four leader concepts: the AssemblyLink GW role, the TSE Service host role, the FrameLeader SW object, and the SSM topology leader. 'Assembly' means a box instrument, not a .NET binary.
Read lesson →beginner / 20 minThe six blocks of every HVI program
Every HVI test or program runs six blocks in order: Connect, Describe, Configure, Compile + load, Run + observe, Release. Describe and Configure create definition objects. After loadToHw the code must look up the runtime twin by name to change anything live.
Read lesson →intermediate / 25 minArchitecture layers: software, product and gateware
hvi-core is layered as language APIs → hourglass C ABI → public I*.h → vendor-agnostic TSE layer → vendor-specific product layer → infrastructure. Below that, IEngineConnector writes reach the HVI Engine over AXI4-Lite/SRI. Engine capabilities are fixed at GW build, register blocks are runtime-configurable, and compile/lifecycle is host-only.
Read lesson →Pxi
PXIe chassis anatomy
A PXIe chassis such as the M9046A (18 slots) has a system slot for the controller or PC link, a timing slot that originates star trigger and clock distribution, and peripheral/hybrid slots. Power and monitoring subsystems (PSUs, PPM, inhibit, fans) can show up as test failures.
Read lesson →beginner / 25 minPXI_TRIG, PXI_STAR and PXIe_DSTAR
Read lesson →intermediate / 25 minSSM and multi-chassis topology
An SSM (M9032A: 1 upstream/1 downstream; M9033A: 1 upstream/4 downstream) sits in each participating chassis's timing slot. System Sync cables run downstream to upstream, and the SSM with no upstream connection is the leader that distributes the reference replica.
Read lesson →intermediate / 30 minReference, system, analog and sample clocks
The four clock types are all synchronous but serve different purposes. Reference = 10 MHz root (frequency and close-in phase noise). System clocks drive digital logic (HVI Engine core, FDS, sandbox). Analog clocks are intermediate clocks behind analog performance. Sample clocks drive the ADCs/DACs. Schemes A-D choose how they are generated and distributed.
Read lesson →intermediate / 20 minResource IDs across VISA, TSE and KDI
Local resources use VISA IDs. Remote chassis, SSMs and TSE Service instances use tse://<host>/<VISA> (KDI-resolved. Needs KdiUser/KdiPassword) or tse-tcp://<host>:<port>/<VISA> (no KDI). Instruments use KDI resource IDs. SSM IDs derive from the chassis ID.
Read lesson →intermediate / 20 minPXI instrument families and FDS connectors
QA uses Denim (M5302x, commercial), DenimLite (internal, Cornerstone, fpga-denim-lite), SD1-GM and Cellini (sync). FDS is not one connector. hvi-core builds an InternalFdsConnector for PXI-backplane FDS when the engine driver exposes an FDS driver, while a product can register its own connector, and AssemblyLink FDS ports exist on Niagara.
Read lesson →System
Time slots, SyncX, Sync100, latency and timing
The time slot is the sequencer cycle time, the minimum time between instructions. All HVI delays are integer multiples of it. At 300 MHz one cycle is 3.333 ns, and one Sync100 (10 ns) step equals 3 cycles. Latency (a propagation delay such as routing) is different from deterministic delay (a programmed, quantized delay).
Read lesson →intermediate / 25 minTriggers, actions and events
Read lesson →intermediate / 30 minSequences, registers, compile and load
HVI Sequences are made of HVI Statements and are compiled by ICompiler into instruction blocks. They are written into GW sequence memory (segment 0, depth 1024 words × 4 lanes on Denim-Lite) at load and only execute after run(). A sync sequence runs coherently across engines; HVI registers are an engine resource (HVIREG_COUNT 16 on Denim-Lite).
Read lesson →advanced / 25 minRecording, debug sniffing and HVI logs
Register recording (HviRr) captures every register write, wait-for-time and wait-for-event the PU executes into a FIFO that SW reads back. The debug sniffer (HviDebugMux, hvi_sniffer_ip) is an embedded logic analyzer that also exposes SPU state, timer and address. HVI logs come from the process that did the work: on Niagara that is the DiagScpiServer, not the test exe.
Read lesson →Service
Operations
Provisioning and version checks
Read lesson →advanced / 30 minSymptom to evidence to known fix
Start with versions (TSE/Core, GW, engine settings, pip, conan pin) and bench state (stale DiagScpiServer, engine locks, wrong scope or setup). Then read the right log, from the server process and selected by content. Match against the known-fixes catalogue, which scopes each fix by SW/GW conditions and symptoms.
Read lesson →Capstone
End-to-end trace
Niagara: SystemDefinition (RPC client) → DiagScpiServer → FrameLeader::initialize() (reads calibration YAML, SyncIO 4 phases, FDS link alignment) → routing solved at compile → loadToHw writes sequence memory and router config → run/applyConfig → leader source fires → FDS/AssemblyLink → follower LocalOut pin. Two-chassis PXI: SystemDefinition with chassis and SSMs (local or tse:// IDs) → engine-settings checksum → leader SSM reference over System Sync/DSTARA → Hop Solver via SSM → load → run → destination pin.
Read lesson →senior / 60 minTopology design review
Adding a third Niagara follower affects GW (ASSEMBLYLINK_LEADER_COUNT and ports fixed at build), calibration (a new slot entry with its own latencies), routing (Tx port packing above 12 triggers, FDS capacity), bench wiring and scope mapping, and tests (follower keys and DiagScpiServer resources). Adding a second PXI chassis brings SSMs, System Sync cabling, clock scheme choice, Hop Solver SSM hops, possibly multi-host TSE Service and KDI, and two-chassis setups.
Read lesson →