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
62360a61
Commit
62360a61
authored
Mar 22, 2021
by
Manuel Mikschl
Browse files
lab#1_mux2to1
parent
d9bd6a5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
sim/mux2to1/makefile.sources
View file @
62360a61
...
...
@@ -11,7 +11,7 @@
## ----------------------------------------------------------------------------
SYN_SOURCE_FILES
=
\
../../src/mux2to1_
equation
.vhd
\
../../src/mux2to1_
rtl
.vhd
\
# do not delete this line
# -----------------------------------------------------------------------------
src/t_mux2to1.vhd
View file @
62360a61
...
...
@@ -52,14 +52,17 @@ BEGIN -- tbench
stimuli_p
:
PROCESS
BEGIN
-- 000
a_i
<=
'0'
;
-- set a value to input a_i
b_i
<=
'0'
;
-- set a value to input b_i
sel_i
<=
'0'
;
-- set a value to input ci_i
WAIT
FOR
period
;
-- values are assigned here
-- 001
a_i
<=
'1'
;
-- change value of a_i
WAIT
FOR
period
;
-- 010
a_i
<=
'0'
;
-- change value of a_i
b_i
<=
'1'
;
-- change value of b_i
WAIT
FOR
period
;
...
...
@@ -67,6 +70,28 @@ BEGIN -- tbench
-- add the missing stimuli here ...
-- 011
a_i
<=
'1'
;
WAIT
FOR
period
;
-- 100
a_i
<=
'0'
;
b_i
<=
'0'
;
sel_i
<=
'1'
;
WAIT
FOR
period
;
-- 101
a_i
<=
'1'
;
WAIT
FOR
period
;
-- 110
a_i
<=
'0'
;
b_i
<=
'1'
;
WAIT
FOR
period
;
-- 111
a_i
<=
'1'
;
WAIT
FOR
period
;
WAIT
;
...
...
Write
Preview
Supports
Markdown
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