blob: ec684fba0dfc768de2f543937b31764fe5d53558 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
entity tb_slice01 is
end tb_slice01;
library ieee;
use ieee.std_logic_1164.all;
architecture behav of tb_slice01 is
signal di : std_logic_vector (7 downto 0);
signal do : std_logic_vector (3 downto 0);
begin
dut: entity work.slice01
port map (di, do);
process
begin
di <= b"11_10_01_00";
wait for 1 ns;
assert do = b"10_11" severity error;
wait;
end process;
end behav;
|