README-physical-verification.md 4.0 KB

Production endpoint and physical connector verification

These tests drive production Verilog through external UART and I2C pins. They do not write DUT memories, force internal state, or substitute a behavioral transaction core. Each runner records exact source hashes, commands and logs.

Correct CT7428 physical path

The 6400 V2 board has one active CT7428, U6. Its SCL/SDA reach FPGA balls B14/A15 through populated R1888/R1889. The apparent alternative M8/N9 path contains R744/R745 marked NC, so it must not be used as the default physical sensor connection. The corresponding unused top-level branch stays high impedance. The acquisition fixture reads the actual ADC and connects the BFM to physical B14/A15; an incorrect ADC does not get silently corrected by the test fixture.

U6 AD0 is pin 9, tied to VCC through populated R578=0 ohm. R579 to GND, R830 to SCL and R832 to SDA are NC. It is a single four-choice address strap, not a pair of A0/A1 pins. The historical MCU/RTL contract assigns this strap 7-bit address 0x49, reads registers 0..8 and converts the 16-bit raw word with raw >> 7 after invalid/sign checks. The available vendor brief confirms the pin choices and 13-bit/0.0625 C capability but does not fully publish the numeric address table or register packing. Therefore the BFM validates that recorded digital contract; it does not independently establish the missing parts of the chip datasheet.

MRDIMM uses the same physical B14/A15 shared I2C path. Its U6/U24/U25 address straps are VCC/GND/SCL, corresponding to the historical 0x49/0x48/0x4B map. Another connected MCU must release the shared bus to high impedance while the FPGA master is used. The 6400 acquisition BFM does not claim coverage of the other two MRDIMM chips.

Tests

  1. run_uart_nominal.py: 921600/460800/230400/115200, two RX ports, one broadcast TX, nominal independent wire timing, simultaneous RX/TX CRC, synchronous RAM and exactly one tx_done after each complete final stop.
  2. run_6400_connector.py: actual ADC assignments, 2N7002 digital sink and pull-up model, eight distinct fan duties, 24 distinct PTC duties, all unused PTC pads, SSR1/2/4 and complete GET/ACK CRC validation.
  3. run_6400_acquisition.py: actual ADC connects a real open-drain U6 BFM; nine nonidentical raw temperature registers include fractions and zero. Full production I2C master/scanner/arbiter/RAM/GET paths must return CT0..8 = 0/25/40/70/100/15/16/17/18 and CT9..26 = FF. A BMC BFM first verifies the exact 43-byte command over actual 115200 UART bits, then sends an echo, 48 hex tokens across three lines, and a prompt. GET must contain all 24 expected BMC values. The next poll receives no response; every previously returned BMC value must become FF while CT continues normally.

The acquisition test accelerates only two elaboration-time BMC timers: POLL_SECONDS=0 and ROUND_TIMEOUT_CLKS=750000 (30 ms). The physical clock is still 25 MHz, host UART is 921600, BMC UART is 115200 and I2C half-period is 125 clocks. The protocol, state machines and storage paths run unmodified.

For a repository layout with runners under tools and Verilog under tests/sim:

python3 tools/run_uart_nominal.py --repo . --out /tmp/uart-nominal
python3 tools/run_6400_connector.py --repo . --out /tmp/6400-connectors
python3 tools/run_6400_acquisition.py --repo . --out /tmp/6400-acquisition

The old ct7428_scan_single_tb.v did not implement an ACK/data-returning slave despite its comments. It connected the master to its own inverted drive-low signals and checked only read-valid, so all-NACK/FF could pass. The new acquisition BFM requires actual address, register order, ACK/NACK timing, raw bytes and exact final temperatures through external ports.

Limits

Passing a digital fixture does not prove analog RS232 margins, USB adapter quality, real I2C rise times, physical fan direction/FG harness identity, or temperature accuracy on fitted silicon. These tests keep those unmeasured claims separate from reproducible RTL and wiring checks.