diff options
Diffstat (limited to 'src/vhdl/simulate')
-rw-r--r-- | src/vhdl/simulate/annotations.adb | 3 | ||||
-rw-r--r-- | src/vhdl/simulate/elaboration.adb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/vhdl/simulate/annotations.adb b/src/vhdl/simulate/annotations.adb index 4b6270afd..4758b5bed 100644 --- a/src/vhdl/simulate/annotations.adb +++ b/src/vhdl/simulate/annotations.adb @@ -1078,8 +1078,7 @@ package body Annotations is if Get_Kind (Decl) = Iir_Kind_Package_Instantiation_Declaration then declare - Uninst : constant Iir := - Get_Named_Entity (Get_Uninstantiated_Package_Name (Decl)); + Uninst : constant Iir := Get_Uninstantiated_Package_Decl (Decl); Uninst_Info : constant Sim_Info_Acc := Get_Info (Uninst); begin -- There is not corresponding body for an instantiation, so diff --git a/src/vhdl/simulate/elaboration.adb b/src/vhdl/simulate/elaboration.adb index 7ca7063cf..bc3fe1896 100644 --- a/src/vhdl/simulate/elaboration.adb +++ b/src/vhdl/simulate/elaboration.adb @@ -390,8 +390,7 @@ package body Elaboration is if Get_Kind (Decl) = Iir_Kind_Package_Instantiation_Declaration then -- Elaborate the body now. declare - Uninst : constant Iir := - Get_Named_Entity (Get_Uninstantiated_Package_Name (Decl)); + Uninst : constant Iir := Get_Uninstantiated_Package_Decl (Decl); begin Elaborate_Declarative_Part (Instance, Get_Declaration_Chain (Get_Package_Body (Uninst))); |