| |
LCS-2016-086 |
| |
3 |
| |
16-Feb-2017 |
| |
Voting |
| |
Kevin Jennings |
| |
Main.KevinJennings examples: Main.JimLewis |
| |
OrderingAllInterfaceLists |
| |
History |
| |
Allow an interface object to be used in the same interface where it is defined |
entity E is
generic (G1: INTEGER; G2: INTEGER := G1; G3, G4, G5, G6: INTEGER);
port (P1: STRING(G3 to G4); P2: STRING(P1'RANGE); P3: P1'SUBTYPE);
procedure X (Y1, Y2: INTEGER; Y3: INTEGER range Y1 to Y2; Y4: Y1'SUBTYPE);
end E;
---+++++ Edit 086.5 Delete
entity E is
port (P1: STRING; P2: STRING(P1'RANGE)); -- Illegal
procedure X (Y1, Y2: INTEGER; Y3: INTEGER range Y1 to Y2); -- Illegal
end E;
However, the following interface lists are legal:
entity E is
generic (G1: INTEGER; G2: INTEGER := G1; G3, G4, G5, G6: INTEGER);
port (P1, P2: STRING (G3 to G4));
procedure X (Y3: INTEGER range G5 to G6);
end E;