FIR and IIR filter and test benches are now working
This commit is contained in:
@@ -22,7 +22,7 @@ use ieee.numeric_std.all; --use this library if arithmetic required
|
||||
entity sin_gen is
|
||||
generic
|
||||
(
|
||||
phase_width : integer := 9;
|
||||
phase_width : integer := 9;
|
||||
data_width : integer := 16;
|
||||
sampling_f : integer := 4535; -- 100MHz/22050
|
||||
clock_cnt_width : integer := 13
|
||||
@@ -585,9 +585,9 @@ begin --define the operation of the module!
|
||||
else
|
||||
if clock_cnt <= sampling_f then
|
||||
clock_cnt <= unsigned(clock_cnt) + 1;
|
||||
if clock_cnt = (sampling_f-1)/2 then
|
||||
clock_out <= not clock_out;
|
||||
end if;
|
||||
--if clock_cnt = (sampling_f-1)/2 then
|
||||
-- clock_out <= not clock_out;
|
||||
--end if;
|
||||
else
|
||||
phase_cnt <= unsigned(phase_cnt) + unsigned(phase_incr);
|
||||
clock_cnt <= (others => '0');
|
||||
|
||||
Reference in New Issue
Block a user