diff options
author | Friedrich Beckmann <friedrich.beckmann@hs-augsburg.de> | 2024-04-28 13:11:57 +0200 |
---|---|---|
committer | Friedrich Beckmann <friedrich.beckmann@hs-augsburg.de> | 2024-04-28 13:11:57 +0200 |
commit | d4e117939818af4ed0e148f6352a81c19fa4631c (patch) | |
tree | 1e22b7f579296af034f4fb9449a5f1f8920fe374 /src/t_top_shift.vhd | |
parent | e367cceeadc06e7007e1ff9757dfd568184dae02 (diff) |
top_shift: add edge.vhd and ringcnt.vhd as empty modules
Diffstat (limited to 'src/t_top_shift.vhd')
-rw-r--r-- | src/t_top_shift.vhd | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/t_top_shift.vhd b/src/t_top_shift.vhd index 996b6d1..ddf76a1 100644 --- a/src/t_top_shift.vhd +++ b/src/t_top_shift.vhd @@ -37,10 +37,21 @@ begin sim_rst_n <= '0', '1' after 55 ns; -- Stimuli key push - sim_x <= '0', '1' after 135 ns, '0' after 195 ns; - - -- Simulation stopper - simstop <= true after 300 ns; + stim_p : process + begin + sim_x <= '0'; + wait until rising_edge(sim_rst_n); + for i in 0 to 5 loop + wait until falling_edge(sim_clk); + end loop; + sim_x <= '1'; + wait until falling_edge(sim_clk); + wait until falling_edge(sim_clk); + sim_x <= '0'; + wait for 200 ns; + simstop <= true; + wait; + end process ; -- Device under test instantiation dut : entity work.top_shift @@ -57,7 +68,7 @@ begin sim_key(0) <= sim_rst_n; sim_key(1) <= sim_x; sim_key(3 downto 2) <= "00"; - sim_sw <= "1010000101"; + sim_sw <= "1010000001"; -- Check the expansion port y output sim_y <= sim_exp(3); |