aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/trans-chap4.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/vhdl/translate/trans-chap4.adb')
-rw-r--r--src/vhdl/translate/trans-chap4.adb8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vhdl/translate/trans-chap4.adb b/src/vhdl/translate/trans-chap4.adb
index 18f9546a7..0f455a83d 100644
--- a/src/vhdl/translate/trans-chap4.adb
+++ b/src/vhdl/translate/trans-chap4.adb
@@ -1847,12 +1847,12 @@ package body Trans.Chap4 is
when Iir_Kinds_Interface_Object_Declaration =>
Create_Object (Decl);
when Iir_Kind_Interface_Package_Declaration =>
- if Get_Generic_Map_Aspect_Chain (Decl) = Null_Iir then
+ if Get_Generic_Map_Aspect_Chain (Decl) /= Null_Iir then
+ -- The package is instantiated by the interface.
+ Chap2.Translate_Package_Instantiation_Declaration (Decl);
+ else
-- Need a formal
Create_Package_Interface (Decl);
- else
- -- Instantiated.
- Chap2.Translate_Package_Instantiation_Declaration (Decl);
end if;
when Iir_Kind_Interface_Type_Declaration
| Iir_Kinds_Interface_Subprogram_Declaration =>