Commit ec44f901 authored by Oran Garrity's avatar Oran Garrity
Browse files

Lab#4_cntupen Complete

parent 66d4ef9f
...@@ -86,26 +86,27 @@ BEGIN -- tbench ...@@ -86,26 +86,27 @@ BEGIN -- tbench
ASSERT count_o = X"F" REPORT "Error: Expected count_o = F !" SEVERITY failure; ASSERT count_o = X"F" REPORT "Error: Expected count_o = F !" SEVERITY failure;
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- wait for a no. of count values WAIT FOR 5 * period; -- wait for a no. of count values -- then ...
-- then ...
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- 4. After another five periods: Deactivate Enable -- 4. After another five periods: Deactivate Enable
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- .... deactivate enable input en_pi en_pi <= '0'; -- .... deactivate enable input en_pi
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- 5. After another three periods: Activate Enable -- 5. After another three periods: Activate Enable
WAIT FOR 3 * period; -- wait for a no. of count values
en_pi <= '1';
-- 6. Simulate another complete counting cycle -- 6. Simulate another complete counting cycle
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
-- activate enable input en_pi WAIT FOR 15 * period; -- activate enable input en_pi
-- wait for at least one count cycle -- wait for at least one count cycle
-- ASSERT count_o = ??? REPORT "Error: Expected count_o = ??? !" SEVERITY failure; ASSERT count_o = X"4" REPORT "Error: Expected count_o = 4 !" SEVERITY failure;
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
......
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