Add tests for INC and DEC
This commit is contained in:
parent
4f3b29892a
commit
fdedf7b657
@ -133,6 +133,30 @@ begin
|
||||
wait for period;
|
||||
assert result = "0000101111001001" report "SUB failed";
|
||||
|
||||
info("INC");
|
||||
accu <= "0000000000000000";
|
||||
func <= "1001";
|
||||
wait for period;
|
||||
assert result = "0000000000000001" report "INC failed";
|
||||
|
||||
info("INC-O");
|
||||
accu <= "1111111111111111";
|
||||
func <= "1001";
|
||||
wait for period;
|
||||
assert result = "0000000000000000" report "INC-O failed";
|
||||
|
||||
info("DEC");
|
||||
accu <= "0000000000000001";
|
||||
func <= "1010";
|
||||
wait for period;
|
||||
assert result = "0000000000000000" report "DEC failed";
|
||||
|
||||
info("DEC-O");
|
||||
accu <= "0000000000000000";
|
||||
func <= "1010";
|
||||
wait for period;
|
||||
assert result = "1111111111111111" report "DEC-O failed";
|
||||
|
||||
-- terminate test
|
||||
wait;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user