aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1428/rec3.vhdl
blob: 4b7cf9ec54ab9125201de968c711594b48351927 (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;

entity rec3 is
  port (a : out std_logic;
        b : std_logic_vector(7 downto 0));
end;

architecture behav of rec3 is
  type my_rec is record
    a : std_logic;
    b : std_logic;
    c : std_logic;
  end record;

  signal s : my_rec;
begin
  s.a <= b (0);
  s.b <= b (1);
  s.c <= b (2);
  a <= s.a;

  s.b <= '0';
end behav;