
The beam steering engine turns a steering direction into the phase setting of every element of a 4x4 phased array with half-wavelength spacing. Phases come out as 7-bit words in 2.8125 degree steps, the resolution of the ADAR1000 beamformer, ready to be converted to I/Q codes and loaded by the AESA Digital Brain v2.1 SPI engine.
Element n = iy*4 + ix. The engine holds two signed 12-bit phase increments, Dx and Dy, in 1/16 of a phase step, and computes
phase(n) = floor((8 - (ix*Dx + iy*Dy)) / 16) mod 128
which is the steering phase -pi*(ixsin(theta_x) + iysin(theta_y)) rounded to the nearest step.
Dx and Dy can be written directly, or set from an angle: in angle mode the input byte is a signed angle in degrees (clamped to +/-90) and a 91-entry sine table gives D = round(1024*sin(angle)). The table is generated by tools/gen_sin_lut.py.
| sel | Action |
|---|---|
| 0 | Dx[7:0] |
| 1 | Dx[11:8] (uio[3:0]) |
| 2 | Dy[7:0] |
| 3 | Dy[11:8] (uio[3:0]) |
| 4 | Angle in x: uio = signed degrees, sets Dx |
| 5 | Angle in y: uio = signed degrees, sets Dy |
| 6 | Clear Dx and Dy |
uo[7] toggles on every accepted write. Holding ui[0] high writes only once.
Put the element index on ui[7:4]; its phase appears on uo[6:0] three clock cycles later.
The cocotb tests check every angle from -90 to +90 degrees bit-exactly against a Python model, check a 2-D grid of angles and 40 random direct settings, compare against the ideal phase (worst error 0.57 steps, 1.6 degrees), and lock the full angle table to a SHA-256 golden hash. A missing golden fails the test.
None required. Pairs with AESA Digital Brain v2.1 (tt_um_kennanlau_aesa_brain_v2), which sends the resulting settings to ADAR1000 beamformers over SPI.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | wr | phase[0] | data[0] |
| 1 | sel[0] | phase[1] | data[1] |
| 2 | sel[1] | phase[2] | data[2] |
| 3 | sel[2] | phase[3] | data[3] |
| 4 | element[0] | phase[4] | data[4] |
| 5 | element[1] | phase[5] | data[5] |
| 6 | element[2] | phase[6] | data[6] |
| 7 | element[3] | write_ack | data[7] |