summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ghdldrv/ghdlsimul.adb4
-rw-r--r--src/vhdl/simulate/elaboration.adb3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ghdldrv/ghdlsimul.adb b/src/ghdldrv/ghdlsimul.adb
index 17cece7..bf886e0 100644
--- a/src/ghdldrv/ghdlsimul.adb
+++ b/src/ghdldrv/ghdlsimul.adb
@@ -108,8 +108,8 @@ package body Ghdlsimul is
-- hierarchy.
declare
Conf_Unit : constant Iir := Get_Library_Unit (Top_Conf);
- Arch : constant Iir :=
- Get_Block_Specification (Get_Block_Configuration (Conf_Unit));
+ Arch : constant Iir := Get_Named_Entity
+ (Get_Block_Specification (Get_Block_Configuration (Conf_Unit)));
Entity : constant Iir := Iirs_Utils.Get_Entity (Arch);
begin
Configuration.Check_Entity_Declaration_Top (Entity);
diff --git a/src/vhdl/simulate/elaboration.adb b/src/vhdl/simulate/elaboration.adb
index d3e157d..93998df 100644
--- a/src/vhdl/simulate/elaboration.adb
+++ b/src/vhdl/simulate/elaboration.adb
@@ -2526,7 +2526,8 @@ package body Elaboration is
Conf_Unit := Get_Default_Configuration_Declaration (Unit);
when Iir_Kind_Configuration_Declaration =>
Conf_Unit := Design;
- Arch := Get_Block_Specification (Get_Block_Configuration (Unit));
+ Arch := Get_Named_Entity
+ (Get_Block_Specification (Get_Block_Configuration (Unit)));
Elaborate_Dependence (Design);
when others =>
Error_Kind ("elaborate_design", Unit);