mrdimm-fetch-arbitration.md 2.7 KB

Shared queue-fetch arbitration

The accepted change separates one-bit eligibility and circular priority from the wide queue-address/descriptor construction in motor_engine. It retains the original winner, one-clock arbitration, urgent-before-queued behavior and the held descriptor/consumer handshake. STEP and synchronized-limit logic are unchanged.

Native TD at d4e2595ff2:

Metric Previous765fb54 Factored arbitration
LUT utilization 5517 5449
Registers 3930 3929
BRAM9K 8 8
DSP 1 1
Device LUT limit 4480 4480

The 68-LUT reduction is observed in the full production build. It is not a fit: 969 LUT remain above capacity and no MR bitstream or setup/hold acceptance exists. Native receipt: /data/prod2u/runs/fetch-factor-td-d4e2595/native/td-receipt.json.

The complete MR regression at the same source passed31 compile/behavior checks in /data/prod2u/runs/fetch-factor-sim-d4e2595/native/RESULT.json. It includes the production I2C test and3/12-axis cases. The12-axis startup load remained152 clocks and common START preparation314 clocks. An explicit preparation bound496 clocks now accounts for queue reads, candidate selection, consumer scans and publication. This is a regression bound, not a hardware timing measurement.

Verilator5.032 also compiled and ran the12-axis engine test at8dd96e8, reporting the same152/314 cycle observations and exact queue/step assertions. The receipt is /data/prod2u/runs/fetch-validation-8dd96e8/native/RESULT.json. This supplements Icarus behavior evidence; it is not a vendor gate simulation.

tools/verify_motor_arithmetic.py --selector extracts the actual eligibility and winner block and compares it with minimum circular distance. For3 and12 axes, the proof, reversed-priority mutation rejection and nonempty cover all passed in /data/prod2u/runs/fetch-proof-133d884/证明 空格/RESULT.json. Only the round pointer range is constrained; control, pause, queue depth and eligibility inputs are otherwise arbitrary. These are combinational selector proofs, not sequential queue, STEP, timestamp or full motor proofs. The source/export identity and generated miters are bound in the receipt.

A preceding sequential-candidate experiment71452ed increased native LUT to5619. It was reverted in637da5b before the accepted factorization. Its12-axis preparation was318 clocks; its production I2C simulation hit the chosen60-second process budget, with no assertion output. That timeout is not a functional failure diagnosis or a pass. The accepted factorization was tested with180 seconds per simulation and completed the I2C case. Do not repeat the rejected experiment without new evidence.

Hardware/COM/JTAG/physical I2C/motor testing remains NOT_RUN.