Commit 9dc566c0 authored by Oran Garrity's avatar Oran Garrity
Browse files

lab#4_de1_cntupen_step

parent ec44f901
...@@ -63,19 +63,29 @@ BEGIN ...@@ -63,19 +63,29 @@ BEGIN
-- KEY(1) ist low-active -- KEY(1) ist low-active
long_pulse <= KEY(1); long_pulse <= KEY(1);
DUT : ENTITY work.falling_edge_detector(rtl)
PORT MAP (
x_i => long_pulse,
clk_i => clk_i,
rst_ni => rst_ni,
rise_o => en_pi
);
-- connecting device under test with peripheral elements -- connecting device under test with peripheral elements
DUT : ENTITY work.cntupen(rtl) DUT : ENTITY work.cntupen(rtl)
PORT MAP ( PORT MAP (
clk_i => clk_i, clk_i => clk_i,
rst_ni => rst_ni, rst_ni => rst_ni,
en_pi => long_pulse, en_pi => rise_o,
count_o => count_o
);
-- connecting count value to HEX display -- connecting count value to HEX display
count_value : ENTITY work.binto7segment(truthtable) count_value : ENTITY work.binto7segment(truthtable)
PORT MAP ( PORT MAP (
bin_i => count_o,
segments_o => HEX0
);
END structure; END structure;
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- Revisions: -- Revisions:
......
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