📄 cpu_test_bench.vhd
字号:
if std_logic'(reset_n) = '1' then
if is_x(std_ulogic(W_valid)) then
write(write_line3, now);
write(write_line3, string'(": "));
write(write_line3, string'("ERROR: cpu_test_bench/W_valid is 'x'"));
write(output, write_line3.all & CR);
deallocate (write_line3);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk, reset_n)
VARIABLE write_line4 : line;
begin
if reset_n = '0' then
elsif clk'event and clk = '1' then
if std_logic'(W_valid) = '1' then
if is_x(std_ulogic(R_wr_dst_reg)) then
write(write_line4, now);
write(write_line4, string'(": "));
write(write_line4, string'("ERROR: cpu_test_bench/R_wr_dst_reg is 'x'"));
write(output, write_line4.all & CR);
deallocate (write_line4);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk, reset_n)
VARIABLE write_line5 : line;
begin
if reset_n = '0' then
elsif clk'event and clk = '1' then
if std_logic'((W_valid AND R_wr_dst_reg)) = '1' then
if is_x(W_wr_data) then
write(write_line5, now);
write(write_line5, string'(": "));
write(write_line5, string'("ERROR: cpu_test_bench/W_wr_data is 'x'"));
write(output, write_line5.all & CR);
deallocate (write_line5);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk, reset_n)
VARIABLE write_line6 : line;
begin
if reset_n = '0' then
elsif clk'event and clk = '1' then
if std_logic'((W_valid AND R_wr_dst_reg)) = '1' then
if is_x(R_dst_regnum) then
write(write_line6, now);
write(write_line6, string'(": "));
write(write_line6, string'("ERROR: cpu_test_bench/R_dst_regnum is 'x'"));
write(output, write_line6.all & CR);
deallocate (write_line6);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk, reset_n)
VARIABLE write_line7 : line;
begin
if reset_n = '0' then
elsif clk'event and clk = '1' then
if std_logic'((W_valid AND R_ctrl_ld)) = '1' then
if is_x(R_dst_regnum) then
write(write_line7, now);
write(write_line7, string'(": "));
write(write_line7, string'("ERROR: cpu_test_bench/R_dst_regnum is 'x'"));
write(output, write_line7.all & CR);
deallocate (write_line7);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk)
VARIABLE write_line8 : line;
begin
if clk'event and clk = '1' then
if std_logic'(reset_n) = '1' then
if is_x(std_ulogic(internal_d_write1)) then
write(write_line8, now);
write(write_line8, string'(": "));
write(write_line8, string'("ERROR: cpu_test_bench/internal_d_write1 is 'x'"));
write(output, write_line8.all & CR);
deallocate (write_line8);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk, reset_n)
VARIABLE write_line9 : line;
begin
if reset_n = '0' then
elsif clk'event and clk = '1' then
if std_logic'(internal_d_write1) = '1' then
if is_x(d_byteenable) then
write(write_line9, now);
write(write_line9, string'(": "));
write(write_line9, string'("ERROR: cpu_test_bench/d_byteenable is 'x'"));
write(output, write_line9.all & CR);
deallocate (write_line9);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk, reset_n)
VARIABLE write_line10 : line;
begin
if reset_n = '0' then
elsif clk'event and clk = '1' then
if std_logic'((internal_d_write1 OR d_read)) = '1' then
if is_x(d_address) then
write(write_line10, now);
write(write_line10, string'(": "));
write(write_line10, string'("ERROR: cpu_test_bench/d_address is 'x'"));
write(output, write_line10.all & CR);
deallocate (write_line10);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk)
VARIABLE write_line11 : line;
begin
if clk'event and clk = '1' then
if std_logic'(reset_n) = '1' then
if is_x(std_ulogic(d_read)) then
write(write_line11, now);
write(write_line11, string'(": "));
write(write_line11, string'("ERROR: cpu_test_bench/d_read is 'x'"));
write(output, write_line11.all & CR);
deallocate (write_line11);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end if;
end process;
process (clk)
VARIABLE write_line12 : line;
begin
if clk'event and clk = '1' then
if std_logic'(reset_n) = '1' then
if is_x(std_ulogic(i_read)) then
write(write_line12, now);
write(write_line12, string'(": "));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -