From 8eba238aea9b2bffb6fa8372c0d7442c1d99871c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 17 Jan 2015 15:12:12 +0100 Subject: ghdlsimul: adjust after use of name for block_specification. --- src/ghdldrv/ghdlsimul.adb | 4 ++-- src/vhdl/simulate/elaboration.adb | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ghdldrv/ghdlsimul.adb b/src/ghdldrv/ghdlsimul.adb index 17cece726..bf886e0c2 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 d3e157d70..93998df81 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); -- cgit v1.2.3