mrdimm-axis-state.md 3.3 KB

Axis state write path and rotation

The six32-bit state values (half period, remaining, executed, position, total and last executed) and the two16-bit tags form one224-bit word. A single combinational write path preserves the former priority order: STEP accounting, limit position zero, stop/load/START/completion effects, explicit position load, then counter clear. The existing fast limit/Abort/Preempt path still runs every clock.

The production storage is a resettable rotating register bank. Its head always corresponds to scan_axis; both advance on every active clock. The updated word enters the tail. This removes wide indexed reads and per-axis write selection without adding service cycles. Reset seeds every word with half-period1 and all other fields0. Startup subsequently loads the product periods. Diagnostic copies remain logically indexed and are excluded from production.

Private r_total, r_position and related array aliases are diagnostic-only. Production STEP-count tests use the selected real counter at each X-axis scan. The one-axis overflow test deposits into the actual packed storage. The independent bank test compares all224 bits with a separately indexed reference for1/3/12 axes, using changing data and reset every37 iterations;1167 active comparisons per configuration passed. Integration still counted15 physical STEP rises exactly.

Load, START and STEP renewal also share the34-bit deadline addition. Operand selection preserves the existing branch priority and unsigned32-bit duration range. The arithmetic proof covers the actual expressions and catches four mutations, including loss of duration bit31. Scan periods remain3/12 clocks and pending timestamp parity assumptions remain unchanged.

Measurements and scope

Source / native run LUT Registers Result
8c0b507 / history-isolated-td 6946 4339 Fit failure
97c1b86 / axis-bank-td: inferred state RAM 7041 3670 Fit failure; LUT cost increased
3f4d119 / axis-register-td: common register write data 6737 4339 Fit failure
b2a426d / shared-deadline-td 6713 4339 Fit failure
b8f7ddd / axis-rotate-td 6466 4339 Fit failure;1986 LUT above4480

The current choice is the rotating register implementation. It uses8 BRAM and1 DSP. No MRDIMM BIT, place/route or setup/hold qualification exists yet.

/data/prod2u/runs/axis-rotate-test/RESULT.json records113 Python tests and27 RTL compilation/behavior checks passing at b8f7ddd110160754b5b854c8e292549e3a01783f. The later added bank test passed separately at cc90dd0acd8d89b8b91af3ffaaf755b1ebf11162; receipt /data/prod2u/runs/axis-bank-check/RESULT.json. This gives29 executed RTL checks across unchanged production content. The arithmetic proof and four mutations passed at b2a426d in /data/prod2u/runs/shared-deadline-arithmetic; those arithmetic expressions are unchanged by the rotation.

Whole-core sequential equivalence attempts /data/prod2u/runs/axis-bank-equivalence and axis-bank-equivalence-short both reached90 seconds and remain UNKNOWN_TIMEOUT. They are not proof of sequential equivalence or Full acceptance. Current regression and narrow arithmetic results do not close the remaining formal, fuzz, soak, vendor simulation, environment, GUI and packaging requirements. Hardware remains NOT_RUN.