EXE tb
This commit is contained in:
parent
21e157377d
commit
ac26672bf8
16
exec_tb.vhdl
16
exec_tb.vhdl
|
@ -159,7 +159,7 @@ begin
|
|||
wait;
|
||||
|
||||
vexe_res <= x"0000001E";
|
||||
assert (exe_res = vexe_res) report "[error] lsl. vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
assert (exe_res = vexe_res) report "[error] vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
|
||||
-- add lsl
|
||||
ck <= '0';
|
||||
|
@ -204,7 +204,7 @@ begin
|
|||
wait;
|
||||
|
||||
vexe_res <= x"00000780";
|
||||
assert (exe_res = vexe_res) report "[error] lsl. vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
assert (exe_res = vexe_res) report "[error] vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
|
||||
-- and
|
||||
ck <= '0';
|
||||
|
@ -249,7 +249,7 @@ begin
|
|||
wait;
|
||||
|
||||
vexe_res <= x"01000000";
|
||||
assert (exe_res = vexe_res) report "[error] lsl. vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
assert (exe_res = vexe_res) report "[error] vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
|
||||
|
||||
-- and lsr
|
||||
|
@ -295,7 +295,7 @@ begin
|
|||
wait;
|
||||
|
||||
vexe_res <= x"0000000";
|
||||
assert (exe_res = vexe_res) report "[error] lsl. vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
assert (exe_res = vexe_res) report "[error] vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
|
||||
|
||||
-- mov
|
||||
|
@ -343,7 +343,7 @@ begin
|
|||
wait;
|
||||
|
||||
vexe_res <= x"FFFFFFFF";
|
||||
assert (exe_res = vexe_res) report "[error] lsl. vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
assert (exe_res = vexe_res) report "[error] vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
|
||||
|
||||
-- or asr
|
||||
|
@ -393,7 +393,7 @@ begin
|
|||
wait;
|
||||
|
||||
vexe_res <= x"08000000";
|
||||
assert (exe_res = vexe_res) report "[error] lsl. vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
assert (exe_res = vexe_res) report "[error] vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
|
||||
|
||||
-- or
|
||||
|
@ -439,7 +439,7 @@ begin
|
|||
wait;
|
||||
|
||||
vexe_res <= x"01000001";
|
||||
assert (exe_res = vexe_res) report "[error] lsl. vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
assert (exe_res = vexe_res) report "[error] vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
|
||||
|
||||
-- xor
|
||||
|
@ -485,7 +485,7 @@ begin
|
|||
wait;
|
||||
|
||||
vexe_res <= x"00000001";
|
||||
assert (exe_res = vexe_res) report "[error] lsl. vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
assert (exe_res = vexe_res) report "[error] vexe_res = " & integer'image(to_integer(unsigned(vexe_res))) & " versus exe_res = " & integer'image(to_integer(unsigned(exe_res))) severity error;
|
||||
|
||||
end process;
|
||||
|
||||
|
|
Loading…
Reference in New Issue