PHY CSR map
Index decomposition [spec: docsClean/02]:
group = i >> 16 rank = (i >> 12) & 0xf
lane = (i >> 8) & 0xf offset = i & 0xff
Group |
ARC base |
Role [spec] |
|---|---|---|
|
|
per-dbyte / per-bit DQ timing, VREF, ODT, eye centres |
|
|
PHY engine control, DevInit clock period, MemReset |
|
|
CA training (LPCA), CA TX drive |
|
|
ACSM SRAM ( |
|
|
IMEM/DMEM host windows |
|
|
PHY pattern generator (training), max read latency |
|
|
PHY / P-state configuration |
|
|
P-state SRAM |
|
|
mailbox, clocks ( |
|
|
live DQ mirror |
Discovered by experiment
PMU-side reads [exp 002]: every register of the phypara set (5170, all
groups below) and the ACSM SRAM read the same from the PMU
(0x90000000 | index << 1, ACSM at 0x90082000 + 2*j) as from the host,
on both controllers, without stalling. A PMU CSR read takes about 0.5 µs.
State seen by the PMU when it starts (after the SPL pre-training tables), identical on PMU0 and PMU1:
Group |
Read |
Non-zero |
Notes |
|---|---|---|---|
|
1468 |
1116 |
|
|
338 |
69 |
|
|
152 |
78 |
|
|
101 |
0 |
|
|
1693 |
8 |
|
|
57 |
13 |
|
|
1180 |
1024 |
non-zero although “never written by host tables” |
|
52 |
17 |
|
|
88 |
32 |
|
|
41 |
0 |
Full values: logsRefs/002-csr-readout-pmu-vs-host/baseline/phypara-pmu0.csv
(k,index,value), the reference for later diffs against trained states.
Compared with the trained sample quoted in docsClean/09, only 0x100d9 differs
among the first twelve values (128 before training, 156 trained).
Write behaviour (R/W masks, side effects) is still [open].
Range scans
[exp 004] read every index of 0x20000–0x203ff, 0x40000–0x401ff
and 0xc0000–0xc00ff from the PMU at start: no read stalls; every
register the host pre-training table writes reads back its table value; the
ACSM control range 0x40000–0x401ff is all zero; 46 non-zero registers
are not written by any host table (reset/status values, listed in
logsRefs/004-csr-range-scan/readme.md). 0x20047 differs between the two
controllers (0x00bd/0x00ff) and looks like a live status.
Individual registers
Detailed pages: PHY clock modes and DLL recalibration (clock mode, DLL, strobes), ACSM command sequencer
(sequencer), DQ data path: group 0x01 registers, address map, eye (group 0x01).
Index |
Value |
Notes |
|---|---|---|
|
|
saved and masked |
|
|
bit 10 falling edge latches the period counters [exp 007] |
|
|
CA / DQ period counters; |
|
|
never polled by the PMU [spec] |
|
|
host-side ECC control; the full-training PMU never touches it [spec, exp 010] |
|
|
|
|
|
|
|
|
step 3.6 selection on all dbytes [exp 010] |
|
|
copy of |
|
|
DLL code, live only while |
|
|
stored DLL code (PHY0 / PHY1) [exp 019] |
|
|
read-only calibration outputs, source of the ACSM dividers [exp 012] |
|
|
ACSM routing; |
|
|
|
|
|
|
|
|
|
|
host table |
seven values; candidate PHY PLL settings (matches the seven |
PHY version: 0xc00ee & 0xfff = 0x240 decodes to version code 9; the
signature 0x6745 / 0x00f2 is written to and read back from
0x9002e / 0x9002f [exp 008].