I am working on a project to design filter circuit for ECG detection system. I have generated ECG waveforms through cadence using VPWLF/PWL file. But I also want to add noise to my ECG waveform, and I am stuck at how to add NOISE of 400 Hz to my ECG signal using cadence which will be the input for filter design.
I am stuck at this point, any help in this matter will be highly appreciated.
You can use the $random() function of Verilog-a to generate some random numbers and use these numbers as the amplitude of a sine with the desired frequency. For example, ($random() % 100 ) / 100 produces a random number between 0 to 1. You can easily use the schematic from this Verilog-a code inside your top-level schematic.