summaryrefslogtreecommitdiff
path: root/testsuite/gna/bug16287/16287.vhd
blob: abf64a8050ac4f8dff26a2841251ef8c240d857c (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
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity test is
end test;

architecture a of test is

signal bt_addr : unsigned(6 downto 0) := "1010101";
alias dw_addr : unsigned(4 downto 0) is bt_addr(6 downto 2 ) ;

signal s64 : std_logic_vector(63 downto 0) := (others => '0');
alias a32 : std_logic_vector(31 downto 0) is s64(31 downto 0); 

begin
   s64 <= X"fedcba9876543210";

   dw_addr <= "00000", "01010" after 1 ns, "11111" after 2 ns;

   process(a32, bt_addr) is
   begin
      report "A32 = " & integer'image(to_integer(unsigned(a32))) severity note;
      report "bt_addr = " & integer'image(to_integer(bt_addr)) severity note;
   end process;

end a;