Repository navigation
Conversation
Removing VX_CFG_FPU_QUEUE_SIZE changes the resolved config, so every perf entry's config_hash moves; the core synthesis entries move with the FPU header pipeline and the commit arbiter. Re-recorded with: pytest ci -m perf_gate --update-baselines (all 51 cases) ci/logic_gate.py --update-baseline (core, core_ldst, top_vortex) ci/logic_gate.py --tool beacon_asic --update-baseline (core, top) ci/asic_gate.py --update-baseline (core, top) ci/fpga_gate.py --update-baseline (core, top) gfx, gfxvm and tensor were re-run too; they contain no FPU and their metrics did not move, so they are not re-recorded. Tools: TOOLCHAIN_REV v3.0.4, beacon 134d03b9e, CIRCT 90c5fd313, Yosys 0.69, OpenSTA 3.1.0 (asap7 rvt tt), Vivado 2024.2 (xcu55c). Re-recorded by: agent, authorized by jel221 2026-12-03.
jel221
marked this pull request as ready for review
December 4, 2026 08:28
This branch has not been deployed
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.
Human comment: Just to repeat my last PR, copy pasted here. The next reason is that it removes the tag and the 2 ops in flight limitation from the FPU. So you can remove this by carrying the tag like any other unit like ALU in the FPU pipeline registers. However, the 17 stages of FDIV and FSQRT makes the area blow up immensely if you do this. So, we make it a pipeline. Because of this, it actually gives you a speedup because FMA is fully pipelined and has better throughput.
Summary
Stacked on the FDIV/FSQRT-to-TFU PR (#587), which removes the FPU's 17- and 32-stage divide and square-root pipelines. With those gone, two changes become affordable.
1. The FPU carries the instruction header through its pipeline (
VX_fpu_block). Before, the header waited in a tag store (VX_index_buffer,VX_CFG_FPU_QUEUE_SIZE= 2 × SIMD width / FPU lanes) while the operands were in the backend. That capped each FPU block at 2 operations in flight, even though the FMA pipeline is several stages deep. Now the header rides the backend's pipeline registers, like the ALU's does, so an FMA block keeps its whole pipeline busy.VX_CFG_FPU_QUEUE_SIZEis removed. SimX models the same.This only works if every FPU backend is a fixed-length pipeline. With the iterative divide and sqrt in the FPU, the header would need 17 or 32 extra pipeline stages, which costs much of the area PR1 saves.
2. Commit is granted round-robin instead of FPU first (
VX_commit_slice, and the commit path in SimXcore.cpp). The FPU-first priority existed because of the tag store: a finished FPU result held one of only two tags. Once the tags are gone, FPU-first lets a busy FPU starve ALU and LSU commits.Performance
perf_gate(51 rtlsim cases, re-recorded):tensor:perf_gate-sgemm_tcu-ldmtensor:perf_gate-fp16-mc-nt4tensor:perf_gate-fp16core:sgemmx-nt4dxa:perf_gate-wgmma-dxa-mcast-nt4core:sgemm-nt16dxa:perf_gate-wgmma-dxatensor:perf_gate-fp16-mc-nt16fp16-mc-nt16is a real regression, explained below. Its cause is not root-caused yet.FMA throughput microbenchmark (rtlsim, 16 warps, 4–8 independent FMA chains, cycles vs master, measured before the rebase onto #584):
10-app geomean (rtlsim, measured before the rebase):
The biggest gains were stencil3d (−6.5% / −8.3%), raycast (−4.2%) and conv3 (−4.2%). The worst was sgemm2: +1.4% / +3%.
Area
Cost over PR1:
core, 16 threads × 16 warpscorecorecoretopMax logic depth is unchanged at 15 levels.
V-ISO-6: the round-robin commit change
fp16-mc-nt16fp16-mc-nt4sgemm_tcu-ldmfp16-mc-nt1616.4% and helps the other TCU cases by 12–20%. Under round-robin, the 16-thread TCU results likely wait their turn at commit behind the other units; this is not yet confirmed with a trace, and it is the follow-up.Baselines re-recorded
The last commit re-records, on top of PR1's, the golden baselines this PR moves. Each was recorded with its update command and is authorized by jel221:
ci/baselines/perf/*.json:pytest ci -m perf_gate --update-baselines. All 51 entries, because removingVX_CFG_FPU_QUEUE_SIZEchanges every entry'sconfig_hash.ci/baselines/synthesis/beacon/core.json:ci/logic_gate.py --update-baseline(core,core_ldst,top_vortex).ci/baselines/synthesis/beacon_asic/core.json:ci/logic_gate.py --tool beacon_asic --update-baseline(core,top).ci/baselines/synthesis/yosys/core.json:ci/asic_gate.py --update-baseline(core,top).ci/baselines/synthesis/xilinx/core.json:ci/fpga_gate.py --update-baseline(core,top).Impact and evidence
Impact class: R3 (
detector:config-knobs,detector:pipeline-stage; fromci/change_impact.py)Contracts touched:
VX_config.toml:VX_CFG_FPU_QUEUE_SIZEremoved.VX_commit_slice, with the SimX commit path changed alongside it. See the V-ISO-6 section above.make -C tests/regressionrun-simx and run-rtlsim, and the rv32 ISA suites on both, all pass; every app passes at 4×4, 8×16 and 32×16. After the rebase: the 51perf_gateworkloads pass on rtlsim. The full suite was not re-run locally after the rebase; CI runs it. xrt not run.model_parityperf_gate--update-baselines; table abovelogic_gatecore,core_ldst,top_vortex: no deeper unit, max 15 levels as beforefpga_gate/asic_gate)core,topon Vivado 2024.2 and Yosys/OpenSTA (ASAP7)Self-check:
ci/precheck.shsummary: precheck: 7 pass, 0 with findings, 0 fail, 0 not runDepartures from SHOULD rules: V-ISO-3. The commit arbitration change is not gated by a knob (see V-ISO-6 item 5).
Design note: docs/designs/floating_point_unit.md and docs/designs/microarchitecture.md, updated in this PR.
known_issue:, wider tolerance, smaller args, removed case) without a root-cause plan.