vahidkh6222
Full Member level 2
i wanna write a code for FIR filter, and i know the algorithm somehow... but i'm not sure of how to use the multipliers in this devise. should i use COREGENERATOR and make my costumized adder and then instantiate it 50 times for every MUL function i need? is there any other easier way?
also for shift register... is it true to write just this simple code:
if clk='1' and clk'event then
x[2]<= x[1];
x[3]<=x[2];
...
...
..
endif?!!!!!
how about the adder ?
is it true to write:
a <= b + C; ?!!!
or again use the COREGEN and instantiations?!!!
tnx in advance.
also for shift register... is it true to write just this simple code:
if clk='1' and clk'event then
x[2]<= x[1];
x[3]<=x[2];
...
...
..
endif?!!!!!
how about the adder ?
is it true to write:
a <= b + C; ?!!!
or again use the COREGEN and instantiations?!!!
tnx in advance.