aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1273/assert2.vhdl
blob: 48843d0e9a3a2d7609a1e68fd2ff379da64db20f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
entity assert2 is
  port (v : natural;
        en : boolean;
        res : out natural);
end assert2;

architecture behav of assert2 is
begin
  process (v, en)
  begin
    if en then
      assert v < 10 report "bad v value";
      res <= v + 1;
    else
      res <= 0;
    end if;
  end process;
end behav;