library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity hw1_q1_tb is end hw1_q1_tb; architecture behav of hw1_q1_tb is component hw1_q1 port (A: in std_logic; B: out std_logic); end component; for hw1_q1_0: hw1_q1 use entity work.hw1_q1; signal A_tb, B_tb : std_logic; begin hw1_q1_0: hw1_q1 port map (A => A_tb, B => B_tb); process begin assert false report "Running testbench" severity note; A_tb <= '0'; wait for 1 ns; assert B_tb = '0' report "A was driven to 0, B should have matched it, B did not get driven to 0" severity error; A_tb <= '1'; wait for 1 ns; assert B_tb = '1' report "A was driven to 1, B should have matched it, B did not get driven to 1" severity error; wait for 1 ns; assert false report "End of testbench run" severity note; wait; end process; end behav;