MU-MIMO whitening with CG

Status: under construction. These pages state the problem and the algorithm. The accelerator is not yet designed and nothing here is built yet. The code in examples/mimo_cg/ is the earlier study, recorded on The 2024 CG detector.

Long-Term MU-MIMO

A base station with many antennas serves several users on the same uplink resource: multi-user MIMO or MU-MIMO. A challenge in MU-MIMO is the computation. In a given time-frequency resource element, let H be the Nrx x K channel where Nrx is the number of RX antennas and K is the number of UEs scheduled in that element. Instantaneous MIMO requires computing the MMSE inverse of H over each coherence period, which can be computationally demanding for large numbers of antennas.

A common solution is long-term beamforming or LTBF. In LTBF, the system estimates a subspace with some low-rank r for the user channel so that the small-scale channels are largely within that r-dimensional subspace over a period that only depends on large-scale path parameters. In the simulations below, we will use r=1. The large-scale parameters are typically stable over many milliseconds. Given a set of K users, the system computes a whitening matrix G of dimension K x Nrx that projects each symbol to scalar signals for each of the K users. Each user can then perform a simple scalar channel estimate and demodulation.

The whitening matrix depends on the set of users scheduled in a given resource block. The base station keeps every user’s channel in memory, and a store of whitening matrices, one per user set. When the scheduler picks a set that has no matrix, it asks an accelerator to compute one. It does not grant the users their uplink transmission until the matrix is ready, so the accelerator’s delay becomes the users’ scheduling delay. A new channel estimate for a user invalidates every matrix that includes that user, so the work comes in bursts.

The whitening matrix for K users needs only a K × K inverse, which the accelerator finds by conjugate gradient (CG). The number of CG iterations trades the matrix’s accuracy against the delay.

The problem is how to select the parameters and architecture for the whitening matrix accelerator to trade off accuracy, resources and delay.

Why this problem

This example will be used to explore agentic design-space exploration with Waveflow: an agent chooses the accelerator’s design, the policy that feeds it, or both. Here the result is a delay distribution, and its tail depends on queueing behind bursts of work. Neither can be read from an untimed model, so every candidate needs a timed simulation, which is the case for a calibrated, fast simulator (pysim) over RTL simulation alone.

Pages

Page What it covers
The problem The users’ channels in memory, the whitening matrix, the scheduler and the matrix store, invalidation, and the delay that is measured.
Conjugate gradient The CG iteration that computes the whitening matrix, and why CG.
The accelerator Not written yet: the architecture is still to be decided.
The 2024 CG detector The earlier design and its study (Vitis 2024.1), kept as a record.

Table of contents

  • The problem - The problem statement. Every user's channel is held in memory as one vector and a power, estimated beforehand. A scheduler pairs users for multi-user MIMO and needs, for each user set, a whitening (MMSE) matrix G = P Hᴴ with P = (I + HᴴH)⁻¹ (K × K). Each scheduling decision sends the accelerator a computation request, and the uplink grant waits for the result. A new channel invalidates every stored matrix that uses it, so requests come in bursts. What is measured is the delay from a request to its result in memory (the accelerator's response time, independent of the scheduling policy) and the accuracy the iteration count buys.
  • Conjugate gradient - How the whitening matrix's inverse is computed. Multi-right-hand-side conjugate gradient on A P = I, with A = I + HᴴH Hermitian positive definite and K × K: each iteration is one matrix product S = A·D and a few vector steps per column with two divides. Why CG: it fits A's structure, its iteration count is a latency/accuracy knob that depends on how correlated the users are, it can warm-start after a channel update, and it splits into two reusable hardware blocks. Honest costs: in multiply count CG is no cheaper than a direct inverse, and with K ≪ N_rx neither dominates a job; the reasons are structure and the knob, not operation count.
  • The 2024 CG detector - The earlier study, kept as a record (Vitis 2024.1). A conjugate-gradient MMSE detector for the massive-MIMO uplink. A bit-exact fixed-point Python model reproduces Vitis ap_fixed arithmetic, and a free-running hardware detector is composed from Waveflow's two linear-algebra components, a systolic matrix multiply and a CG vector unit. The RTL matches the Python model bit for bit at K = 4, 8 and 16 users and every iteration count, and meets 4 ns on the RFSoC xczu48dr.