IC Design - Part 7: 2022 Contest — Building an ECG QRS Detector

This post reviews how I approached the 2022 IC Design Contest final. The problem was to process an ECG waveform and identify the positions of its Q, R, and S components. Problem overview The proposed processing flow had three stages: A 16-tap moving average: MV(n)=x(n)+x(n−1)+⋯+x(n−15)16MV(n)=\frac{x(n)+x(n-1)+\cdots+x(n-15)}{16} DC-bias removal: DelDC(n)=x(n)−MV(n)DelDC(n)=x(n)-MV(n) A 15-tap windowing filter, with symmetric triangular weights: WF(n)=DelDC(n−7)+2DelDC(n−6)+⋯+8DelDC(n)+⋯+DelDC(n+7)64WF(n)=\frac{DelDC(n-7)+2DelDC(n-6)+\cdots+8DelDC(n)+\cdots+DelDC(n+7)}{64} Hardware architecture Interface Signal Description din 10-bit input data busy The host can send data when this is 0 Q, R, S 12-bit position values, output together valid Indicates that the Q, R, and S positions are valid Implementing the moving average A direct 16-tap moving average sums 16 samples, which suggests a fairly large adder network. I wanted to avoid that. ...

July 11, 2023 · 4 min · AI translation-rewrite, human-reviewed