FIR Filter Sampling Frequency

OP #3896122
Rate this post
• ▲ useful
▼ not useful
I am multiplying a 2kHz sinewave with another 100khz sinewave to obtain 
a dsb-sc signal. These sinewaves were designed using DDS cores.

I am also using a 50mHz clock.  I would like to demodulate this dsb-sc 
signal.  I am doing this by multiplying the dsb-sc signal with the 
carrier (100khz signal).  Now i have to pass this signal through a low 
pass filter.

I have generated a coefficient file (.coe) from matlab and am using the 
FIR compiler to actually generate the low pass filter.

I have put 50mhz as the input clock frequency but the problem is that i 
am not exactly sure what to put in as the sampling frequency.  Could 
anyone provide some help regarding this.

Thanks a million
Attached files:
Guest #3898524
Rate this post
• ▲ useful
▼ not useful
Roger Swan wrote:
> So you are telling me that for both the sampling frequency and clock
> frequency i should enter 50 mhz?

If you provide a new sample every CLK-Cycle, then the answer is: Yes

If you provide a new sample only every nth CLK-Cycle, then the answer 
is: No.

You may e.g. have a sampling rate of 500kHz and a CLK of 50MHz. Then you 
enter the corresponding numbers and tell the FIR every 100th CLK cycle, 
that there is a new sample at its input. If think the corresponding pin 
is named ND (New Data).

If your data comes from an external ADC, the sample rate will often be 
lower than 50MHz. If all your data generation and data handling is done 
internally in the FPGA, then you could of course provide a new sample 
every 20ns. But you're the only one who knows. We may only guess...

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.