mrdimm-axis-state.md 3.9 KB

Axis state write path and rotation

Resource values below are stage measurements. Current resource decisions are recorded in the control-context audit.

The six32-bit state values (half period, remaining, executed, position, total and last executed), two16-bit tags,34-bit deadline and two32-bit hit counters form one322-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, due, hit_memory 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 now compares all322 bits with a separately indexed reference for1/3/12 axes, using changing data and reset every37 iterations;1167 active comparisons per configuration passed. Later integration with EVENT_READ counted18 physical STEP rises exactly; see the event byte-view audit.

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
5320f3d / direct-descriptor-td 6372 4254 Descriptor duplicate removed
1ca1afb / rotate-deadline-td 6370 4254 Deadline included in rotating word
417ce17 / rotate-hits-td 6216 4443 Hit counters included in rotating word
48cdd40 / event-byte-td 5772 4205 Byte-addressed frozen view; still no fit

The current choice is the rotating register implementation with the event byte-view change. It uses9 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.