Commit 62360a61 authored by Manuel Mikschl's avatar Manuel Mikschl
Browse files

lab#1_mux2to1

parent d9bd6a5b
......@@ -11,7 +11,7 @@
## ----------------------------------------------------------------------------
SYN_SOURCE_FILES = \
../../src/mux2to1_equation.vhd \
../../src/mux2to1_rtl.vhd \
# do not delete this line
# -----------------------------------------------------------------------------
......@@ -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;
......
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