Tag Info

A low-pass filter is one way to do it. Due to the interpolation done in the repeat block, you are representing a symbol with 1000 samples, and your sample rate is 2 million samples per second (the samp_rate variable). So your square wave has a frequency of:  \require{cancel} {2000000\ \cancel{\text{samples}} \over \text{second}} {1\ \text{symbol} \over ...