aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug094/topb.vhdl
blob: 13c5d01c03acd0484a3188c3eb72437efd5d21fe (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
entity topb is
end topb;

architecture behav of topb is
  signal clk : bit;
  signal v : natural;
  signal done : boolean := false;
begin
  dut : entity work.entb
    port map (clk => clk,
              val => v);

  process
  begin
    clk <= '0';
    wait for 10 ns;
    clk <= '1';
    wait for 10 ns;
    if done then
      wait;
    end if;
  end process;

  process
  begin
    v <= 2;
    wait for 40 ns;
    v <= 4;
    wait for 80 ns;
    done <= true;
    wait;
  end process;
end behav;