aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1139/ent.vhdl
blob: 0bee9533dbc64e6a1b623b66be98446154241c22 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
library ieee;
use ieee.std_logic_1164.all;

entity child is
	port (
		x : in std_logic;
		y : out std_logic
	);
end;

architecture a of child is
begin
	y <= x;
end;

-----------------------------------

library ieee;
use ieee.std_logic_1164.all;

entity ent is
	port (
		a : in std_logic;
		b : in std_logic;
		q : out std_logic
	);
end;

architecture a of ent is
	component child_comp is
		port (
			x : in std_logic;
			y : out std_logic
		);
	end component;
begin
	child_inst: child_comp
		port map (
			x => a and b,
			y => q
		);
end;

-----------------------------------

configuration conf of ent is
	for a
		for child_inst : child_comp
			use entity work.child;
		end for;
	end for;
end configuration;