📄 cpu_test_bench.vhd
字号:
deallocate (write_line2); assert false report "VHDL STOP" severity failure; end if; end if; end if; end process; process (clk) VARIABLE write_line3 : line; begin if clk'event and clk = '1' then 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(W_pcb) then write(write_line4, now); write(write_line4, string'(": ")); write(write_line4, string'("ERROR: cpu_test_bench/W_pcb 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) = '1' then if is_x(W_iw) then write(write_line5, now); write(write_line5, string'(": ")); write(write_line5, string'("ERROR: cpu_test_bench/W_iw 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) VARIABLE write_line6 : line; begin if clk'event and clk = '1' then if std_logic'(reset_n) = '1' then if is_x(std_ulogic(M_en)) then write(write_line6, now); write(write_line6, string'(": ")); write(write_line6, string'("ERROR: cpu_test_bench/M_en 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) VARIABLE write_line7 : line; begin if clk'event and clk = '1' then if std_logic'(reset_n) = '1' then if is_x(std_ulogic(E_valid)) then write(write_line7, now); write(write_line7, string'(": ")); write(write_line7, string'("ERROR: cpu_test_bench/E_valid 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(M_valid)) then write(write_line8, now); write(write_line8, string'(": ")); write(write_line8, string'("ERROR: cpu_test_bench/M_valid 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'(((M_valid AND M_en) AND M_wr_dst_reg)) = '1' then if is_x(M_wr_data_unfiltered) then write(write_line9, now); write(write_line9, string'(": ")); write(write_line9, string'("WARNING: cpu_test_bench/M_wr_data_unfiltered is 'x'")); write(output, write_line9.all & CR); deallocate (write_line9); end if; end if; end if; end process; process (clk) VARIABLE write_line10 : 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_line10, now); write(write_line10, string'(": ")); write(write_line10, string'("ERROR: cpu_test_bench/i_read 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, reset_n) VARIABLE write_line11 : line; begin if reset_n = '0' then elsif clk'event and clk = '1' then if std_logic'(i_read) = '1' then if is_x(i_address) then write(write_line11, now); write(write_line11, string'(": ")); write(write_line11, string'("ERROR: cpu_test_bench/i_address is 'x'")); write(output, write_line11.all & CR); deallocate (write_line11); assert false report "VHDL STOP" severity failure; end if; end if;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -