आAcharya LESSON

TSE/HVI / SYSTEM

Sequences, registers, compile and load

intermediate 30 min

What to understand

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).

Why it matters: Defining a sequence does nothing on hardware. Compile, load and run are separate stages with separate failure modes.

Key points

  • Defining ≠ executing: compile → writeMemory → START_REG → PU execution.
  • PU instructions: DELAY (counter advance), TRIGGER_WRITE, WAIT (stall on IRQ event).
  • Capabilities that bound sequences: SEQMEM_DEPTH 1024, HVIREG_COUNT 16, PU_HVITIMER_COUNT 3 (Denim-Lite).
  • Public sync APIs: ISyncSequence, ISyncMultiSequenceBlock, ISystemSync.
  • Capacity tests show compile() correctly throwing at resource limits.

Questions to explain aloud

  • How does ISequence differ from ISyncSequence?
  • When are registers loaded?

Watch for these misconceptions

  • A sequence is executed when it is defined.

PRACTISE

Complete this exercise

Read a sync-for loop.