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:

  1. Mixer: a CORDIC that brings the 1 MHz intermediate frequency down to baseband (I and Q)
  2. Low-pass filters: I/Q FIR filters, sampled at 8 MHz
  3. Delay-and-multiply (DAM): the demodulator
  4. 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 ) within 0.5 dB of the baseline 10.8 dB, with word lengths no larger than necessary.

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

BlockArx vs IT++
MixerIT++ computes sine and cosine directly; Arx uses a rotation-mode CORDIC
FilterIT++ computes a dot product of 29 taps; Arx uses a multiplierless filter (shifts and adds)
DemodulatorPractically the same: multiply with a 4-deep FIFO
SlicerPractically 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 , which the Arx mixer doesn’t correct for.

We counted the flip-flops from the register declarations and compared them with the synthesis results:

MixerFilterDemodulatorSlicer
Area37,94490,0288,0833,745
Flip-flops1895044924
Area per flip-flop200.8178.6165.0156.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 (9 bits, 4 integer bits), so the range is . Signal plus an interferer of amplitude 7 just fits, but amplitude 10 clips. Going to gives . For the other blocks we estimated the integer bits with Bouganis’ peak value formula, rounded up to avoid overflow:

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:

MixerFilterDemodulatorSlicer
Area54,493107,1758,2853,289
Flip-flops2666144821
Area per flip-flop204.9174.6172.6156.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 unitWord lengthAmount
Adder (CORDIC)92
Adder (CORDIC and phase accumulator)52
Shifter (CORDIC)4-bit shift select, 9-bit data2
Adder (filters)204
Multiplier (filters)9-bit coefficients × 18-bit data4
Multiplier (demodulator)51
Adder (demodulator)111
Adder (slicer)81
Comparator (slicer)9 (compares against 0)1

Our VLIW data path sketch.