aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1319/tb_ent.vhdl
blob: db690ddf513bc8041ab44aa67396bb71966e7d89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

library work;

entity tb_ent is
end tb_ent;

architecture behave of tb_ent is
    signal insn: std_ulogic_vector(31 downto 0);
    signal ispr1: std_ulogic_vector(5 downto 0);
    signal ispr2: std_ulogic_vector(5 downto 0);
begin
    test: entity work.ent
	port map (
	    insn_i => insn,
	    ispr1_o => ispr1,
	    ispr2_o => ispr2
	);

    test_process: process
    begin
	insn <= x"7d8903a6";
	wait for 1 ns;
	report " ispr1=" & to_hstring(ispr1);
	report " ispr2=" & to_hstring(ispr2);
        assert ispr1 = 6x"21" severity failure;
        assert ispr2 = 6x"2c" severity failure;
        report "end of test";
        wait;
    end process;
end behave;