
AESA Digital Brain v2 is an SPI frame engine for up to four ADAR1000 beamformers on one bus.
Each SPI frame is 24 bits, MSB first: a read/write bit, the 2-bit chip address (AD1, AD0, matching each chip's ADDR1/ADDR0 pins), a 13-bit register address, and an 8-bit data byte. Header bits [14:11] = 0001 writes all four chips at once. SPI runs in mode 0 by default: SDIO is valid before every SCLK rising edge, which is where the ADAR1000 samples it in write mode. SCLK is clk/10 (5 MHz at 50 MHz) by default.
Two kinds of transfer:
The ADAR1000 datasheet requires at least 6 SCLK cycles before a beam-memory load, at least 8 SCLK cycles
between load pulses, and RX_LOAD and TX_LOAD never tied together. Every load request therefore runs as a
sequence: a dummy write-all to the scratchpad register (frame 0x080AAA, 24 SCLK cycles), then the pulse.
A combined request becomes dummy, RX_LOAD, dummy, TX_LOAD, so the two pins are never high together and are
separated by 24 SCLK cycles. Both the manual load command and the automatic load after a burst use this
sequence. busy stays high and new commands are ignored until the last pulse has ended; then done is set.
Inputs pass through two-flop synchronizers and the control pins act on their rising edge only, so holding a
pin high does not repeat the action. done stays high until the next operation starts.
| sel | Register |
|---|---|
| 0 | Data byte for single frames |
| 1 | Header low byte (A7..A0) |
| 2 | Header high byte (R/W, AD1, AD0, A12..A8) |
| 3 | Bank write at the pointer, pointer then increments |
| 4 | Bank pointer (uio[3:0]) |
| 5 | Config: [1:0] stride-1, [2] RX_LOAD after burst, [3] TX_LOAD after burst, [4] CPHA (1 = v1 timing), [6:5] SCLK: 0 clk/10, 1 clk/4, 2 clk/50, 3 clk/100 |
| 6 | Load pulse now: uio[0] RX_LOAD, uio[1] TX_LOAD |
The cocotb tests include a behavioral ADAR1000 model that checks every frame, the register contents of four chips, write-all mode, readback, the load pulses, and that SDIO never changes on a sampling edge. It also checks the v2.1 load sequencing: RX-only, TX-only and combined requests, at least 6 SCLK cycles before each pulse and at least 8 between pulses, no overlap, no load pulse during an SPI frame, the busy/done handshake, and that commands are ignored while a sequence runs. The burst frames (unchanged from v2.0) and the load sequence are locked to SHA-256 golden hashes in test/golden/. A missing golden file fails the test; it is only written with GOLDEN_UPDATE=1.
ADAR1000 (or the ADAR1000-EVALZ board). The ADAR1000 uses 1.8 V logic, so level shifting is needed. Readback needs the chip's SDO enabled. Check against the datasheet before connecting: minimum CSB high time, load pulse width, and the I/Q register addresses for phase.
Multi-chip readback: the ADAR1000 has a silicon erratum where chips that are not being read do not tristate SDO. The host must enable SDO only on the chip being read and disable it afterwards (ADI's procedure, with a special case for chip 0), and the board should have a series resistor between each chip's SDO and the shared line. The cocotb model assumes an ideal bus and does not model this contention.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | wr | spi_sclk | data[0] |
| 1 | start_single | spi_sdio | data[1] |
| 2 | sel[0] | spi_csb | data[2] |
| 3 | sel[1] | done | data[3] |
| 4 | sel[2] | busy | data[4] |
| 5 | start_burst | rx_load | data[5] |
| 6 | spi_sdo | tx_load | data[6] |
| 7 | read_out_en | data[7] |