Commit 609f56c6 authored by Oran Garrity's avatar Oran Garrity
Browse files

Test Kit 4-bit Adder

parent 40a8feb9
......@@ -84,6 +84,18 @@ BEGIN -- tbench
ASSERT sum_o = X"0" REPORT "Error: sum is not correct !" SEVERITY failure;
ASSERT co_o = '0' REPORT "Error: co is not correct !" SEVERITY failure;
a_i <= "0001"; -- change value of a_i as binary vector value
b_i <= "0001";
WAIT FOR period;
ASSERT sum_o = X"2" REPORT "Error: sum is not correct !" SEVERITY failure;
ASSERT co_o = '0' REPORT "Error: co is not correct !" SEVERITY failure;
a_i <= "0010"; -- change value of a_i as binary vector value
b_i <= "0100";
WAIT FOR period;
ASSERT sum_o = X"6" REPORT "Error: sum is not correct !" SEVERITY failure;
ASSERT co_o = '0' REPORT "Error: co is not correct !" SEVERITY failure;
-- prefix B is the default, hence not necessary to write
a_i <= "1111"; -- change value of a_i as binary vector value
WAIT FOR period;
......
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