Commit 371ab8f9 authored by Manuel Mikschl's avatar Manuel Mikschl
Browse files

lab#8 triangular wave testing

parent 6973db2f
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
SYN_SOURCE_FILES = \ SYN_SOURCE_FILES = \
../../src/sequence_detector_qfsm.vhd \ ../../src/sequence_detector_qfsm.vhd \
../../src/lfsr_fibonacci.vhd ../../src/lfsr_fibonacci.vhd \
../../src/cntupen_rtl.vhd
# do not delete this line # do not delete this line
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
...@@ -40,6 +40,7 @@ ARCHITECTURE tbench OF t_sequence_detector IS ...@@ -40,6 +40,7 @@ ARCHITECTURE tbench OF t_sequence_detector IS
noise_o : OUT std_ulogic; noise_o : OUT std_ulogic;
eoc_po : OUT std_ulogic); eoc_po : OUT std_ulogic);
END COMPONENT lfsr_fibonacci; END COMPONENT lfsr_fibonacci;
-- component ports -- component ports
SIGNAL clk_i : std_ulogic; SIGNAL clk_i : std_ulogic;
...@@ -74,6 +75,7 @@ BEGIN -- ARCHITECTURE tbench ...@@ -74,6 +75,7 @@ BEGIN -- ARCHITECTURE tbench
lfsr_o => lfsr_o, lfsr_o => lfsr_o,
noise_o => noise_o, noise_o => noise_o,
eoc_po => eoc_po); eoc_po => eoc_po);
-- clock generation -- clock generation
clock_p : PROCESS clock_p : PROCESS
......
...@@ -29,7 +29,7 @@ begin ...@@ -29,7 +29,7 @@ begin
count_ouput : count_o <= count_i + 1 WHEN count_rst = '0' ELSE to_unsigned(0, count_o'length); count_ouput : count_o <= count_i + 1 WHEN count_rst = '0' ELSE to_unsigned(0, count_o'length);
count_input : count_i <= to_unsigned(0, count_i'length) WHEN rst_n = '0' ELSE count_input : count_i <= to_unsigned(0, count_i'length) WHEN rst_n = '0' OR count_rst = '1' ELSE
count_o WHEN rising_edge(clk); count_o WHEN rising_edge(clk);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment