blob: 9cc894275f842bb5c2560209a4d6fbc9ddc63032 (
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
|
package pkg3 is
type my_rec is record
adr : bit_vector (7 downto 0);
end record;
end pkg3;
use work.pkg3.all;
entity ent3 is
port (v : out my_rec;
b : in bit);
end ent3;
architecture behav of ent3 is
begin
v.adr <= (others => b);
end behav;
entity top3 is
end top3;
use work.pkg3.all;
architecture behav of top3 is
signal s : bit_vector (7 downto 0);
signal b : bit;
begin
dut : entity work.ent3
port map (
-- ERROR: missing 1 downto 0!
v.adr (3 downto 2) => s (3 downto 2),
v.adr (7 downto 6) => s (7 downto 6),
b => b);
b <= '0';
end behav;
|