aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug0131/numstd02.vhdl
blob: 8f382e99cf531eb9e6357e5e79a12ab91a76c17d (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
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity numstd02 is
end;

architecture behav of numstd02 is
  constant va : unsigned (15 downto 0) := x"ab02";
  constant vb : unsigned (15 downto 0) := x"31_de";
  constant res : unsigned (15 downto 0) := minimum(va, vb);
  constant t : boolean := res = vb;
begin
  process
  begin
    case true is
      when t =>
        report "Test OK";
      when false =>
        assert false severity failure;
    end case;
    wait;
  end process;
end behav;