The third project of Implementation of Digital Signal Processing (IDSP), done with Mathijs Polman. The assignment is a GFSK receiver written in Arx, with generated C++ (IT++) and VHDL models. The receiver chain has four blocks:
- Mixer: a CORDIC that brings the 1 MHz intermediate frequency down to baseband (I and Q)
- Low-pass filters: I/Q FIR filters, sampled at 8 MHz
- Delay-and-multiply (DAM): the demodulator
- Slicer: decides the bits
The receiver is tested with an interferer at 3 MHz. The main goal: make the fixed-point design handle an interferer of amplitude 10 while keeping the sensitivity (the SNR at a bit error rate of
Previous: Project MAP · Project TRA
GFS-1: Following the signal through the receiver
Spectrum of the received signal, centred at 1 MHz.
- The received signal sits around the 1 MHz carrier, and the ADC samples it at 8 MHz.
- The mixer outputs (I and Q) move the signal to 0 Hz, but also create a duplicate around 2 MHz.
- The low-pass filter suppresses everything above 1 MHz; small peaks around 2 MHz remain.
- The DAM output has an amplitude of about 0.25, as expected from
with . - The slicer oversamples by 4 and the first 16 outputs are garbage, so the system has a latency of 4 bits.
With the interferer at amplitude 1, a peak appears at 3 MHz in the spectrum. After mixing it lands at 2 and 4 MHz, and the low-pass filter removes it, so the DAM output looks the same as without the interferer.
GFS-2: How accurate is the BER estimate?
Comparing simulations with 1,000 up to 1,000,000 bits, we found that 100,000 bits estimate the BER to about 3 significant digits (4 digits with an uncertainty of about ±0.001). The input bitstream turned out to be the same on every run.
For synchronization, the default offsets are the only ones that work properly: other slicer or symbol offsets either cost several dB of sensitivity or make the BER collapse to about 0.5.
GFS-3 and GFS-4: Arx vs IT++, and flip-flops vs area
| Block | Arx vs IT++ |
|---|---|
| Mixer | IT++ computes sine and cosine directly; Arx uses a rotation-mode CORDIC |
| Filter | IT++ computes a dot product of 29 taps; Arx uses a multiplierless filter (shifts and adds) |
| Demodulator | Practically the same: multiply with a 4-deep FIFO |
| Slicer | Practically the same; Arx parallelizes the sum a bit and lets the counter overflow |
The Arx DAM output is scaled up compared to IT++. We think that’s the CORDIC gain
We counted the flip-flops from the register declarations and compared them with the synthesis results:
| Mixer | Filter | Demodulator | Slicer | |
|---|---|---|---|---|
| Area | 37,944 | 90,028 | 8,083 | 3,745 |
| Flip-flops | 189 | 504 | 49 | 24 |
| Area per flip-flop | 200.8 | 178.6 | 165.0 | 156.0 |
Area per flip-flop varies by almost 30% between blocks, so flip-flop count is a lower bound for area, not a good predictor. It says nothing about the combinational logic around the registers.
GFS-5: Fixed-point optimization for interferer amplitude 10
The input word length is
Then we tuned block by block, checking the sensitivity after every change:
- Mixer: the CORDIC adds a gain of 1.647, so a peak of 11 becomes ±18.1 and needs one more integer bit. With
in and out, CORDIC depth 8 and phase length we got 11.08 dB, with a smaller lookup table as a bonus. - Filter: the original
output clipped at 0.9375 because of the CORDIC gain. gave 11.76 dB (too high), while gave 11.09 dB. - Demodulator: its input was
while the filter now outputs . Input and output , with internal multiply and sum (truncation and saturation), gave 11.26 dB, still within the limit. - Slicer: matching its input to the demodulator output was enough to meet the requirement.
BER vs SNR after tuning the mixer: 11.08 dB sensitivity.
After re-synthesis:
| Mixer | Filter | Demodulator | Slicer | |
|---|---|---|---|---|
| Area | 54,493 | 107,175 | 8,285 | 3,289 |
| Flip-flops | 266 | 614 | 48 | 21 |
| Area per flip-flop | 204.9 | 174.6 | 172.6 | 156.6 |
GFS-6: Polyphase filter?
With downsampling by 4, a polyphase version would split the 29-tap filter into four subfilters (7, 7, 7 and 8 taps) running one after another on shared hardware. But that breaks the symmetry of the filter (which lets you add mirrored taps before multiplying), needs the multiplierless design reworked for the shared hardware, and needs control logic. Based on what we saw in MAP, where scheduled designs ended up bigger than parallel ones, we expected more area and power for no clear benefit, so we recommended against it.
GFS-7: A VLIW data path at 80 MHz
At an 80 MHz system clock there are 10 cycles per sample, so hardware can be shared. Our estimate of the minimum set of functional units:
| Functional unit | Word length | Amount |
|---|---|---|
| Adder (CORDIC) | 9 | 2 |
| Adder (CORDIC and phase accumulator) | 5 | 2 |
| Shifter (CORDIC) | 4-bit shift select, 9-bit data | 2 |
| Adder (filters) | 20 | 4 |
| Multiplier (filters) | 9-bit coefficients × 18-bit data | 4 |
| Multiplier (demodulator) | 5 | 1 |
| Adder (demodulator) | 11 | 1 |
| Adder (slicer) | 8 | 1 |
| Comparator (slicer) | 9 (compares against 0) | 1 |
Our VLIW data path sketch.