5 use ieee.std_logic_1164.all;
7 architecture behav of tb_asgn08 is
9 signal clk : std_logic;
10 signal ce : std_logic;
11 signal r : std_logic_vector (65 downto 0);
13 dut: entity work.asgn08
14 port map (clk => clk, ce => ce, s0 => s0, r => r);
28 assert r (0) = '1' severity failure;
29 assert r (65) = '0' severity failure;
33 assert r (0) = '1' severity failure;
34 assert r (64 downto 1) = x"ffff_eeee_dddd_cccc" severity failure;
35 assert r (65) = '1' severity failure;
40 assert r (0) = '1' severity failure;
41 assert r (64 downto 1) = x"ffff_eeee_dddd_cccc" severity failure;
42 assert r (65) = '1' severity failure;
46 assert r (0) = '1' severity failure;
47 assert r (64 downto 1) = x"ffff_eeee_dddd_cc7c" severity failure;
48 assert r (65) = '0' severity failure;