Repository navigation
feat(vsa): iverilog full-chip validation — 16/16 tokens PASS, 1193 tok/s - #15
Merged
Merged
Conversation
iverilog simulation of complete vsa_matmul_top design: - plle2_base_sim.v: behavioural PLL stub for iverilog (50->81.25 MHz) - tb_vsa_matmul_top_direct.v: direct FSM observation testbench - Validates: MMCM lock, autoregressive loop, argmax, UART TX activity - Result: 16/16 tokens in 13.4ms = 1193 tok/s (sim) - No UART RX dependency — reads internal state directly Fix: debug_state changed from wire to reg (procedural assignment)
This was referenced May 6, 2026
Open
This was referenced May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #14 (Step 1 alternative: iverilog simulation in lieu of Docker synthesis)
Full functional simulation of
vsa_matmul_topusing iverilog with behavioural PLL stub.Files
plle2_base_sim.v— behavioural PLLE2_BASE stub for iverilog (50→81.25 MHz)tb_vsa_matmul_top_direct.v— direct FSM validation testbench (no UART RX dependency)vsa_matmul_top.v— fix:debug_statewire→reg for procedural assignmentResults
Why iverilog instead of Docker synthesis
Docker Desktop not available in current environment. This simulation validates the complete design functionality — PLL, autoregressive loop, VSA matmul, argmax, UART TX — without requiring Yosys/nextpnr.
When Docker is available,
trios-fpga synth-vsawill produce the physical bitstream.Verification
iverilog tb_vsa_matmul_top_direct: 16/16 PASSiverilog tb_vsa_matmul: 64/64 PASS (unchanged)φ² + φ⁻² = 3 | TRINITY