aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vhdl/simulate/simul-annotations.adb4
-rw-r--r--src/vhdl/simulate/simul-elaboration.adb3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/vhdl/simulate/simul-annotations.adb b/src/vhdl/simulate/simul-annotations.adb
index eac35f50f..879ca0470 100644
--- a/src/vhdl/simulate/simul-annotations.adb
+++ b/src/vhdl/simulate/simul-annotations.adb
@@ -596,8 +596,10 @@ package body Simul.Annotations is
procedure Annotate_Declaration (Block_Info: Sim_Info_Acc; Decl: Iir) is
begin
case Get_Kind (Decl) is
- when Iir_Kind_Package_Declaration =>
+ when Iir_Kind_Package_Declaration
+ | Iir_Kind_Package_Instantiation_Declaration =>
Annotate_Package_Declaration (Block_Info, Decl);
+
when Iir_Kind_Package_Body =>
Annotate_Package_Body (Decl);
diff --git a/src/vhdl/simulate/simul-elaboration.adb b/src/vhdl/simulate/simul-elaboration.adb
index 58764d301..586549b5c 100644
--- a/src/vhdl/simulate/simul-elaboration.adb
+++ b/src/vhdl/simulate/simul-elaboration.adb
@@ -2672,7 +2672,8 @@ package body Simul.Elaboration is
when Iir_Kind_Protected_Type_Body =>
null;
- when Iir_Kind_Package_Declaration =>
+ when Iir_Kind_Package_Declaration
+ | Iir_Kind_Package_Instantiation_Declaration =>
Elaborate_Package_Declaration (Instance, Decl);
when Iir_Kind_Package_Body =>
Elaborate_Package_Body (Instance, Decl);