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;
|
wait;
|
||||||
|
|
||||||
vexe_res <= x"0000001E";
|
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
|
-- add lsl
|
||||||
ck <= '0';
|
ck <= '0';
|
||||||
|
@ -204,7 +204,7 @@ begin
|
||||||
wait;
|
wait;
|
||||||
|
|
||||||
vexe_res <= x"00000780";
|
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
|
-- and
|
||||||
ck <= '0';
|
ck <= '0';
|
||||||
|
@ -249,7 +249,7 @@ begin
|
||||||
wait;
|
wait;
|
||||||
|
|
||||||
vexe_res <= x"01000000";
|
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
|
-- and lsr
|
||||||
|
@ -295,7 +295,7 @@ begin
|
||||||
wait;
|
wait;
|
||||||
|
|
||||||
vexe_res <= x"0000000";
|
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
|
-- mov
|
||||||
|
@ -343,7 +343,7 @@ begin
|
||||||
wait;
|
wait;
|
||||||
|
|
||||||
vexe_res <= x"FFFFFFFF";
|
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
|
-- or asr
|
||||||
|
@ -393,7 +393,7 @@ begin
|
||||||
wait;
|
wait;
|
||||||
|
|
||||||
vexe_res <= x"08000000";
|
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
|
-- or
|
||||||
|
@ -439,7 +439,7 @@ begin
|
||||||
wait;
|
wait;
|
||||||
|
|
||||||
vexe_res <= x"01000001";
|
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
|
-- xor
|
||||||
|
@ -485,7 +485,7 @@ begin
|
||||||
wait;
|
wait;
|
||||||
|
|
||||||
vexe_res <= x"00000001";
|
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;
|
end process;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue