aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/dispout01/tb_rec06.vhdl
blob: 9da1579bcbbc25a6727ccb9d9054dfda024bc635 (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
entity tb_rec06 is
end tb_rec06;

library ieee;
use ieee.std_logic_1164.all;
use work.rec06_pkg.all;

architecture behav of tb_rec06 is
  signal inp : std_logic;
  signal r : myrec;
begin
  dut: entity work.rec06
    port map (inp => inp, o => r);

  process
  begin
    inp <= '1';
    wait for 1 ns;
    assert r = (a => (c => 2, d => "1000"), b => '0') severity failure;

    inp <= '0';
    wait for 1 ns;
    assert r = (a => (c => 3, d => "0000"), b => '1') severity failure;

    wait;
  end process;
end behav;