आAcharya LESSON

TSE/HVI / SYSTEM

Recording, debug sniffing and HVI logs

advanced 25 min

What to understand

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.

Why it matters: A successful API call proves neither that a register was reached nor which file or config the engine used. These tools do.

Key points

  • RR flow: ISwRecording::start → HviRr enable → PU instructions captured → readMemory of the FIFO.
  • Niagara: set HVI_LOGGER_LEVEL=Trace on the server. Select the log by content, not by PID or mtime.
  • RunWorkflowSuites reruns failed rounds with Trace and keeps only 'Logger name: HviLog' files.
  • A native AccessViolation can leave no [error]. Look for the missing completion line (PlatformManager.cpp:2111).

Questions to explain aloud

  • How can you see what the engine executed?

Watch for these misconceptions

  • A successful API call proves every register was reached.

PRACTISE

Complete this exercise

Choose logs and registers for a support report.