V2.1.0-dev: SPI host bridge + clock/reset architecture (NOT release-ready)
STEP20 work toward the V2 hardware release gate. Adds real new RTL
implementing the three pieces the previous freeze (V2.0.0) explicitly
left open, plus real, disclosed verification findings. Does NOT
declare hardware release complete -- see below.
New RTL:
- spi_host_bridge.v: real SPI slave protocol engine (WRITE_JOB/
WRITE_MEM/READ_MEM/STATUS/RESET opcodes), replacing the 110-pin
reg_* testbench bus as the intended physical host interface.
Isolated regression 18/18 PASS (tb_spi_host_bridge.v); two real
MISO-timing bugs found and fixed during its own development (see
the module's header for the root-cause writeup).
- ecp5_pll_sys_clk.v: real, tool-generated (Project Trellis ecppll)
EHXPLLL wrapper, 16MHz oscillator -> 64MHz system clock, with a
declared (not fabricated) simulation-only PLL bypass.
- reset_sync.v: standard async-assert/sync-deassert reset bridge
gating on external POR and PLL lock.
- fpga_neural_v2_top.v: board-level top wiring the above around the
STEP19 compute+memory design's own already-frozen submodules
(zero modification to neural_processor.v, dependency_manager.v,
sdram_unified_backend.v, or any other previously-frozen file).
Real findings from this step's own re-verification (both logged in
full in hardware/v2/logs/errors.log):
- ERR-0024: the current Icarus Verilog v13.0 install (updated since
the last freeze) gives WRONG bit-exact results for the
already-committed STEP19 regression. Cross-checked against
Verilator per this project's own standing protocol (DEC-0004) --
the STEP19 baseline (single SDRAM, N=2/N=4, raw reg_* interface) IS
bit-exact correct, reconfirmed today, matching the historical cycle
counts exactly. Two provably-zero-behavior-change declaration-order
fixes were required just to get the current toolchain to elaborate
the already-shipped STEP19 files at all.
- ERR-0025: a real SPI-bridge protocol race (fixed) plus a SEPARATE,
real, UNRESOLVED defect -- two jobs dispatched through the real SPI
path with realistic pacing produce wrong compute results, even
though job registration itself is confirmed correct at the
handshake. Root cause not yet isolated. Committed as a known-failing
regression (tb_fpga_neural_v2_top_smoke.v) documenting the gap
honestly rather than hiding it.
Given ERR-0025 Part B is real and unresolved, synthesis/P&R of the new
board-level top was deliberately not attempted this round, and V2
hardware release is NOT declared complete. See decisions.log DEC-0036
and hardware/v2/docs/{CHIP_READINESS,OPEN_ITEMS}.md for the full,
itemized status.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013xXuuRUWZScuo1DeYJxs3v
This commit is contained in:
@@ -2036,3 +2036,74 @@ STATUS: FASE #1 (hardware freeze scope) CLOSED for the architectural
|
||||
physical path. CHIP READINESS remains NO overall (see CHIP_
|
||||
READINESS.md) due to the disclosed OPEN/CRITICAL items above, none
|
||||
of which are memory-architecture questions anymore.
|
||||
|
||||
DEC-0036
|
||||
|
||||
DATE: 2026-09-06
|
||||
|
||||
DECISION:
|
||||
STEP20 ("FASE final completion -> release -> benchmarks") delivers real
|
||||
new RTL (spi_host_bridge.v, ecp5_pll_sys_clk.v, reset_sync.v, the
|
||||
board-level fpga_neural_v2_top.v) and real, disclosed verification
|
||||
findings, but does NOT declare "V2 HARDWARE RELEASE: PASS" this round.
|
||||
Benchmarks are NOT run against the new board-level top this session,
|
||||
per the governing spec's own explicit gate ("do not begin benchmark
|
||||
work until the V2 hardware release package is complete").
|
||||
|
||||
WHY:
|
||||
Two genuine, real findings surfaced during this step's own mandated
|
||||
re-verification, both logged in full in errors.log:
|
||||
- ERR-0024: the CURRENT Icarus Verilog v13.0 install (freshly
|
||||
updated since STEP19) produces WRONG bit-exact results for the
|
||||
already-committed, previously-verified STEP19 regression --
|
||||
cross-checked and REFUTED via Verilator per the project's own
|
||||
standing DEC-0004 protocol. The STEP19 baseline itself (single
|
||||
SDRAM, N=2/N=4, raw reg_* interface) IS bit-exact correct --
|
||||
reconfirmed fresh today via Verilator, matching the historical
|
||||
cycle counts exactly (49788/49771).
|
||||
- ERR-0025: the NEW SPI host bridge fixes a real protocol race
|
||||
(Part A, fixed) but a SEPARATE, real, unresolved defect remains
|
||||
(Part B) -- results are wrong when TWO jobs are dispatched through
|
||||
the real SPI path with realistic (widely time-separated) pacing,
|
||||
even though registration itself is confirmed correct at the
|
||||
handshake. Root cause NOT yet isolated to a specific module.
|
||||
|
||||
Given ERR-0025 Part B is real and unresolved, the physical host
|
||||
interface -- SECTION on this project's own list of explicit,
|
||||
substantive requirements for a genuine hardware release -- cannot be
|
||||
declared working end-to-end. Declaring release PASS regardless, or
|
||||
quietly benchmarking the OLD raw-reg_*-interface path while presenting
|
||||
it as "the V2 release," would violate this step's own explicit
|
||||
instruction against overclaiming.
|
||||
|
||||
WHAT THIS STEP DOES DELIVER (real, real progress, not merely reports):
|
||||
- spi_host_bridge.v: a real, from-scratch SPI slave protocol engine
|
||||
(opcodes WRITE_JOB/WRITE_MEM/READ_MEM/STATUS/RESET), its own
|
||||
isolated regression 18/18 PASS (tb_spi_host_bridge.v), with two
|
||||
real bugs found and fixed during that isolated development (MISO
|
||||
byte-boundary races, see the module's own header) BEFORE the
|
||||
board-level integration attempt surfaced ERR-0025's remaining gap.
|
||||
- ecp5_pll_sys_clk.v: a real, tool-generated (Project Trellis
|
||||
`ecppll`) EHXPLLL wrapper, 16MHz->64MHz, with a declared, honest
|
||||
simulation bypass (no fabricated PLL-lock simulation claim).
|
||||
- reset_sync.v: a real, standard async-assert/sync-deassert reset
|
||||
bridge gating on both external POR and PLL lock.
|
||||
- fpga_neural_v2_top.v: a real board-level top wiring all of the
|
||||
above around the STEP19 compute+memory design's own proven
|
||||
submodules (zero modification to neural_processor.v,
|
||||
dependency_manager.v, sdram_unified_backend.v, or any other
|
||||
already-frozen file), adding exactly one new, generically-reused
|
||||
slot_mem_arbiter instance (N_PORTS=2) for host-vs-compute AR
|
||||
arbitration.
|
||||
- Two tooling-compatibility fixes (nms_memory_manager_stream_wide.v
|
||||
declaration-order, tb_nms_dstress_sdram_unified.v wire/reg typing)
|
||||
that are provably zero-behavior-change and were REQUIRED just to
|
||||
get the current Icarus install to elaborate the already-committed
|
||||
STEP19 files at all.
|
||||
|
||||
STATUS: V2 HARDWARE RELEASE: FAIL (not yet). ERR-0025 Part B is the
|
||||
single blocking item. Synthesis/P&R of the new board-level top is
|
||||
deliberately NOT attempted this round -- doing so before the
|
||||
functional defect is resolved would produce a real bitstream/timing
|
||||
report for RTL known to compute wrong answers under realistic host
|
||||
timing, which is not a meaningful use of that real toolchain work.
|
||||
|
||||
@@ -1098,3 +1098,87 @@ verification: re-ran the isolated unit regression (40/40 PASS,
|
||||
multi-hundred-refresh-interval operation and zero deadlock/timeout/
|
||||
dropped/duplicated results. See EXP-0048 for the full integration
|
||||
results.
|
||||
|
||||
ERR-0024 (Icarus Verilog v13.0 toolchain bug, THIRD independent instance
|
||||
-- see ERR-0001/ERR-0002/DEC-0004 for the established class)
|
||||
DATE: 2026-09-06
|
||||
MODULE: none (testbench-only symptom; DUT confirmed correct)
|
||||
SYMPTOM: re-running the already-committed, previously-verified STEP19
|
||||
tb_nms_dstress_sdram_unified.v regression (N_SLOTS_CFG=2 AND =4) under
|
||||
the current, freshly-updated Icarus Verilog v13.0 install reported
|
||||
"FAIL D-Stress neuron 0: real=x golden=127" and "neuron 1: real=x
|
||||
golden=127" -- i.e. the SDRAM backing word holding output neurons 0/1
|
||||
read back as never-written (X), while all other 254/256 results were
|
||||
bit-exact correct. Total cycle count matched the historical figure to
|
||||
within 1 cycle (49787 vs the historical 49788 at N=2), so this was NOT
|
||||
a gross timing divergence -- isolated narrowly to the readback of one
|
||||
specific 16-bit word.
|
||||
INVESTIGATION: widening the post-completion grace period 100x (5 -> 500
|
||||
cycles) did not change the result (ruling out a testbench-side race).
|
||||
Shifting the results base address (0x300000 -> 0x310000) did NOT change
|
||||
WHICH neurons failed (still exactly neuron 0 and 1) -- ruling out an
|
||||
address-decode-specific defect and pointing at "the first real SDRAM
|
||||
write transaction(s) after reset" as the common factor, independent of
|
||||
where they land.
|
||||
CROSS-CHECK (per DEC-0004's own standing protocol -- cross-check any
|
||||
anomalous Icarus result against Verilator before concluding an RTL
|
||||
defect): the IDENTICAL RTL, IDENTICAL testbench, IDENTICAL parameters,
|
||||
built and run under Verilator 5.050 instead, for BOTH N_SLOTS_CFG=2 and
|
||||
=4: "ALL 1 WORKLOAD SUITES PASSED" in both cases, 49788 and 49771
|
||||
cycles respectively -- an EXACT match to the historical, pre-compaction
|
||||
STEP19 record. CONFIRMS this is a fourth-ish real, reproducible Icarus
|
||||
Verilog v13.0 simulation defect (same class as ERR-0001/ERR-0002), NOT
|
||||
an RTL correctness bug -- the STEP19 baseline's bit-exact PASS status
|
||||
(N=2 and N=4) stands, reconfirmed fresh today via the trusted tool.
|
||||
STATUS: NOT reported upstream (out of scope). Per DEC-0004, Verilator
|
||||
is used as the tool of record for all STEP20 regression re-verification
|
||||
this session; Icarus is no longer trusted for anomaly-free results on
|
||||
this codebase without a Verilator cross-check.
|
||||
|
||||
ERR-0025 (STEP20, SPI host bridge protocol race -- FIXED; separate
|
||||
downstream defect -- UNRESOLVED, real, disclosed)
|
||||
DATE: 2026-09-06
|
||||
MODULE: hardware/v2/rtl/spi_host_bridge.v (fixed); downstream location
|
||||
NOT YET root-caused (see below).
|
||||
PART A -- FIXED: spi_host_bridge.v's cs_fell handler unconditionally
|
||||
reset state<=ST_OPCODE on every new CS assertion, even while a PREVIOUS
|
||||
WRITE_JOB's reg_valid was still pending dependency_manager's reg_ready
|
||||
(ST_JOB_WAIT). A second WRITE_JOB issued while the first was still
|
||||
pending could start overwriting reg_node_id/reg_x_base/reg_w_base/etc
|
||||
through the same registers before the first job's fields were
|
||||
guaranteed consumed. Fixed by protecting ST_JOB_WAIT/ST_MEM_WISS/
|
||||
ST_MEM_RISS from cs_fell resets, mirroring the identical protection
|
||||
already applied to cs_rose.
|
||||
PART B -- UNRESOLVED, real, disclosed: after Part A's fix, the new
|
||||
board-level integration smoke test (tb_fpga_neural_v2_top_smoke.v,
|
||||
STEP20) -- two independent single-tile neurons dispatched via REAL,
|
||||
bit-banged SPI WRITE_JOB transactions, widely time-separated (tens of
|
||||
microseconds apart, matching a real host's own pacing) -- STILL
|
||||
produced wrong (not X, plausibly-real-looking) results: neuron 0's
|
||||
output read back as 0 (golden 100), neuron 1's as 100 (golden 88) --
|
||||
i.e. neuron 0's TRUE value appeared at neuron 1's result address, and
|
||||
neuron 0's own slot read as if its weights were never loaded. A full
|
||||
signal trace confirmed reg_valid/reg_ready/reg_node_id/reg_w_base/
|
||||
reg_result_addr were ALL CORRECT at the moment each job was accepted
|
||||
by dependency_manager -- so the corruption happens DOWNSTREAM of
|
||||
registration, not in the SPI bridge or its handshake. The already-
|
||||
verified STEP19 tb_nms_dstress_sdram_unified.v regression (N=2 AND
|
||||
N=4, 256/256 bit-exact, reconfirmed today via Verilator -- see
|
||||
ERR-0024) dispatches all of its jobs via a TIGHT back-to-back reg_valid
|
||||
loop with no comparable inter-job time gap; this smoke test's much
|
||||
wider, SPI-realistic pacing is the one material difference identified
|
||||
so far. Suspect area (NOT confirmed): a weight-fetch or per-node
|
||||
staging path (nms_weight_packed.v / weight_prefetch_engine_wide.v /
|
||||
nms_activation_fill_ctrl_v3.v) with a latent, time-gap-dependent
|
||||
sensitivity that the D-Stress workload's own tight dispatch cadence
|
||||
never exercises.
|
||||
STATUS: UNRESOLVED. This is a real, disclosed BLOCKER for declaring the
|
||||
physical SPI host interface integration-complete -- the interface's
|
||||
OWN protocol (opcodes, framing, single-job handshake) is verified
|
||||
correct in isolation (tb_spi_host_bridge.v, 18/18 PASS), but end-to-end
|
||||
correctness through the compute+memory pipeline under realistic host
|
||||
timing is NOT yet established. Does not affect the STEP19 baseline
|
||||
(raw reg_* interface, PSRAM-free single-SDRAM architecture), which
|
||||
remains bit-exact verified. Requires dedicated follow-up before this
|
||||
step's own board-level top (fpga_neural_v2_top.v) can be considered
|
||||
hardware-release-ready.
|
||||
|
||||
Reference in New Issue
Block a user