ilo@chen_
← Projects
DCICD · Final project

16-QAM MIMO detector

A 3 × 3 16-QAM receiver has 4,096 possible transmit vectors. Software stacks the real and imaginary components, factors the resulting 6 × 6 channel as Hᵣ = QR, and forms z = Qᵀyᵣ. The hardware searches the triangular system from row six to row one, expanding each surviving path by four amplitudes. Six registered K-best rows accumulate absolute residuals and rank candidates with a bitonic network. The survivor budget narrows from sixteen paths to one. Once the channel is loaded, the pipeline accepts one observation per clock and emits a 12-bit Gray-coded decision six clocks later.

Drag to rotate · Scroll to zoom
CHANNEL INTERFACE / 96-BIT INPUT BUS Input bus6 × 16 bits Channel assemblyinsert at 6 × beat Staging registers21 coefficients Active channelfourth channel beat Accept zvalid · flag · have_R flag = 0 load R / flag = 1 accept observationSIX REGISTERED SEARCH ROWS / ONE OBSERVATION PER CLOCK R, z [0]accepted input Search row 04 → 4 survivors R, z [1]previous row valid Search row 116 → 16 survivors R, z [2]previous row valid Search row 264 → 8 survivors R, z [3]previous row valid Search row 332 → 8 survivors R, z [4]previous row valid Search row 432 → 2 survivors R, z [5]previous row valid Search row 58 → 1 survivors Gray mapper3 × 4 bits Each row registers path and cost. Select a row to inspect the candidate lanes.K-BEST SEARCH / ONE PARENT AND ITS FOUR CHILDREN3 complex symbols → 6 real coordinates → 4 choices per coordinateParent survivorsᵢ = +3sᵢ = +1sᵢ = −1sᵢ = −3Rank all parentsKeep K pathsRTL metric d(child) = d(parent) + | zᵢ − Σⱼ₌ᵢ⁶ Rᵢⱼ sⱼ |Live simulation shows the four siblings of the current winner and their rank after global pruning.SEARCH ROW / FOUR CHILDREN OF ONE PARENTRANK AND CAPTUREzᵢ ≪ Z_SHIFTΣ Rᵢⱼ sⱼ (j > i)−Diagonal terma = sign_extend(Rᵢᵢ)3a = a + (a ≪ 1)parent_cost → add in every lane+3 / 3a−|diff|+child 0+1 / a−|diff|+child 1−1 / −a−|diff|+child 2−3 / −3a−|diff|+child 3Repeat for every surviving parent.Tie key = 4 × parent rank + symbol rank.Bitonic sortSurvivor costsSurvivor symbolsCompare tuple (cost, order_id, path)Row-valid enables the survivor registers.BITONIC NETWORK / FIRST ROW · FOUR CANDIDATESchild 0Survivor 0child 1Survivor 1child 2Survivor 2child 3Survivor 3span 2 / stride 1↓↑↑↓span 4 / stride 2↓↑↓↑span 4 / stride 1↓↑↓↑Each vertical pair compares two packed candidates. ↓ marks the lower-cost output.Larger rows use the same span / stride construction before capturing their K lowest costs.
Triangular channel representation

Four valid channel beats carry the 21 row-major entries of R and three padding words. The fourth beat commits R. Each accepted observation captures six z coordinates and the active channel matrix. Both inputs use signed 16-bit words. R has twelve fractional bits and z has ten. The datapath aligns z to the coefficient scale before accumulating a 25-bit path cost.

Expand a path

Each symbol coordinate can take −3, −1, +1 or +3. The unresolved coordinate contributes a new residual after subtracting the contributions of coordinates already selected. Partial distances and symbol histories travel together through the search.

Budget the candidate paths

The exhaustive Euclidean baseline scores all 4,096 vectors using squared residuals. The RTL uses a sum of absolute residuals and keeps 4, 16, 8, 8, 2, and 1 paths in successive rows. This bounds the largest rank network at 64 candidates. Each candidate adds one row’s absolute residual to its parent’s cost. Equal costs retain the parent rank and amplitude order +3, +1, −1, −3, which fixes the ranking at constellation decision boundaries.

Recover the detected word

The winning path holds three real coordinates followed by three imaginary coordinates. The mapper pairs each stream’s real and imaginary amplitudes into a nibble. The word and its valid bit emerge six clocks after the observation is accepted. On the noiseless identity example, [3, −1, 1, −3, 3, −1] maps to 0x792. The RTL scoreboard checked every one of the 4,096 possible identity-channel words.