Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oran Garrity
vlsilab21_garrity_mikschl
Commits
ec44f901
Commit
ec44f901
authored
Mar 29, 2021
by
Oran Garrity
Browse files
Lab#4_cntupen Complete
parent
66d4ef9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_cntupen.vhd
View file @
ec44f901
...
...
@@ -86,26 +86,27 @@ BEGIN -- tbench
ASSERT
count_o
=
X"F"
REPORT
"Error: Expected count_o = F !"
SEVERITY
failure
;
---------------------------------------------------------------------------
-- wait for a no. of count values
-- then ...
WAIT
FOR
5
*
period
;
-- wait for a no. of count values -- then ...
---------------------------------------------------------------------------
---------------------------------------------------------------------------
-- 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
WAIT
FOR
3
*
period
;
-- wait for a no. of count values
en_pi
<=
'1'
;
-- 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
--
ASSERT count_o =
???
REPORT "Error: Expected count_o =
???
!" SEVERITY failure;
ASSERT
count_o
=
X"4"
REPORT
"Error: Expected count_o =
4
!"
SEVERITY
failure
;
---------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment