Sfoglia il codice sorgente

Include current implementation audits and acceptance boundaries in analysis replay

codex 2 mesi fa
parent
commit
2ed2aef7c9

+ 11 - 0
docs/audits/mrdimm-header-word-copy.md

@@ -0,0 +1,11 @@
+# Snapshot header word copy
+
+The original schema places BMC raw words at byte30 and CT raw words at odd byte81. Metadata masks and timestamps also cross word boundaries. The copy engine now writes aligned16-bit RAM words rather than assembling each word from two three-clock byte transfers.
+
+Aligned metadata pairs are selected from the same atomic header shadow. BMC words bypass directly. CT's first low byte pairs with the BMC mask's last byte at80/81; subsequent words combine the previous CT high byte with the next low byte. The final CT high byte pairs with the CT mask at134/135. No wire offsets or payload length changed.
+
+The header phase falls from480 to240 clocks. For the fake continuously scanning twelve-axis source, the copy bound is636 clocks and the eight adversarial phases completed within1906 request clocks. Production history-read arbitration still uses the conservative axis revisit bound; full-copy bounds become1008 clocks for3 axes and10224 for12. Full sequential formal remains pending.
+
+`header-word-test` passed113 Python and31 RTL checks. The later strengthened `header-check` Sentinel varies both CT high and low bytes, compares all352 bytes, changes sources after capture, and verifies complete retry across epochFFFF-to0. Raw I2C and real UART/BMC integration are included in the main current regression. These are software results, not physical validation.
+
+Native `header-word-td` at765fb54 reports5517LUT/3930registers/8BRAM/1DSP, down25LUT from the prior baseline but still fails device packing. A separate `min_ripple_len64` run (`carry-map-td`) raised LUT to5587; that setting was reverted. No MRDIMM BIT or setup/hold qualification was produced.

+ 14 - 0
docs/current-analysis-status.md

@@ -0,0 +1,14 @@
+# Current analysis scope
+
+This is a multi-repository source-analysis/replay snapshot, not a firmware release or Full acceptance. Exact repository commits and trees are in WORKSPACE-SNAPSHOT.json.
+
+- MRDIMM current RTL has unified16-bit frames, shared motor execution, held command contexts, rotating axis state, persistent limit history and byte-addressed event responses. Latest native resource run `header-word-td` at765fb54 reports5517 LUT,3930 registers,8 BRAM,1 DSP. Device fit failed; no qualified MRDIMM BIT or Windows release EXE exists.
+- Header copy now uses16-bit words and correctly bridges CT's odd byte81 boundary. Full352-byte Sentinel and3/12-axis current regression passed; source77e6616 only restores default carry mapping and strengthens/tests the same RTL. Full formal, fuzz/soak and vendor simulation remain incomplete.
+- A6400 Quick BIT exists from source388278a9, SHA2560791b8c6bf9d618f6c22524fd9bea333acec6bfcbdc630daa5303d5012b5297e. A newer shared-UI6400 EXE was built at12945f1d, SHA25604c7eb2f75ea59d65c1f06e3d9045867534a787056c19cd1741b19f88656c24f. Binaries are not included in this analysis archive. Full GUI resolution/OS-DPI coverage is pending.
+- HTH source97ada756ee7b10ff913e51953656fa08edbbafb0 includes the Python façade and existing Go consumers. Prior isolated SDK installation passed with mock transactions. This package replay does not imply physical transport acceptance.
+- Generic MRDIMM logic exercises UART/TTL/I2C and BMC. The physical V1.2 wrapper exports only confirmed pads; BMC/TTL/Host-I2C remain unbound. Disabled BMC telemetry matches the initialized idle decoder.
+- Runner/container lifecycle recovery, all remaining public-tool smokes, package/Delivery refresh after final code, and final clean-dev integration are still pending.
+
+Hardware, COM/JTAG programming, real I2C/BMC, motors, fans and heaters are NOT_RUN. Do not interpret archive integrity, simulation, a synthesis run, or an old Quick artifact as end-to-end hardware or Full software acceptance.
+
+Read the active product requirements and audit notes for implementation details and evidence boundaries. The public replay commands are `python3 tools/fw_cli.py generate all --check` and `python3 tools/fw_cli.py test all --run-root <external-directory>`. Building requires the documented Linux TD/toolchain environment. Current alone requires the exact declared Base; use the supplied overlay/self-check workflow.

+ 3 - 1
tests/unit/test_source_package_closure.py

@@ -10,7 +10,9 @@ def test_current_closure_contains_public_replay_dependencies():
     required={'tools/fw_targets.py','tools/source_identity.py','tools/source_package_closure.py',
     required={'tools/fw_targets.py','tools/source_identity.py','tools/source_package_closure.py',
         'contracts/mrdimm-status.yaml','contracts/ct7428-format.json','config/current-product-tests.json',
         'contracts/mrdimm-status.yaml','contracts/ct7428-format.json','config/current-product-tests.json',
         'generated/mrdimm/snapshot-layout.json','tools/_vendor/prod2u_status.py',
         'generated/mrdimm/snapshot-layout.json','tools/_vendor/prod2u_status.py',
-        'tests/sim/i2c_master_tasks.vh','tests/sim/motor_queue_storage_tb.v','tools/td2026'}
+        'tests/sim/i2c_master_tasks.vh','tests/sim/motor_queue_storage_tb.v','tools/td2026',
+        'docs/current-analysis-status.md','docs/audits/mrdimm-header-word-copy.md',
+        'tests/sim/motor_control_hold_monitor.vh','tools/prod2u_gui.py'}
     assert required<=set(paths)
     assert required<=set(paths)
     assert len(paths)==len(set(paths))
     assert len(paths)==len(set(paths))
     assert not any('/legacy/' in p or p.startswith('src/generated/') for p in paths)
     assert not any('/legacy/' in p or p.startswith('src/generated/') for p in paths)

+ 5 - 1
tools/source_package_closure.py

@@ -16,7 +16,11 @@ DATA_INPUTS=(
     'contracts/fan-control-parameters.yaml','contracts/channel-map.yaml','contracts/host-i2c-pin-evidence.json',
     'contracts/fan-control-parameters.yaml','contracts/channel-map.yaml','contracts/host-i2c-pin-evidence.json',
     'contracts/mrdimm-wire.yaml','contracts/mrdimm-status.yaml','contracts/ct7428-format.json',
     'contracts/mrdimm-wire.yaml','contracts/mrdimm-status.yaml','contracts/ct7428-format.json',
     'config/pin_inventory.prod2u_door_temp_v1_2.json','config/current-product-tests.json','projects/registry.json',
     'config/pin_inventory.prod2u_door_temp_v1_2.json','config/current-product-tests.json','projects/registry.json',
-    'pyproject.toml','tools/requirements-verify.txt','containers/6400-dev/requirements-verify.lock.txt')
+    'pyproject.toml','tools/requirements-verify.txt','containers/6400-dev/requirements-verify.lock.txt',
+    'docs/current-analysis-status.md','docs/audits/mrdimm-header-word-copy.md',
+    'docs/audits/mrdimm-axis-state.md','docs/audits/mrdimm-control-context.md',
+    'docs/audits/mrdimm-event-byte-view.md','docs/audits/mrdimm-seek-context.md',
+    'docs/audits/mrdimm-shared-history.md','docs/audits/td-undriven-summary.md')
 ENTRYPOINTS=(
 ENTRYPOINTS=(
     'tools/fw_cli.py','tools/package_prod2u.py','tools/td2026',
     'tools/fw_cli.py','tools/package_prod2u.py','tools/td2026',
     'tools/6400_hex_gui.py','tools/mrdimm_hex_gui.py','tools/build_6400_hex_gui.py','tools/build_mrdimm_hex_gui.py',
     'tools/6400_hex_gui.py','tools/mrdimm_hex_gui.py','tools/build_6400_hex_gui.py','tools/build_mrdimm_hex_gui.py',