diff options
author | Tristan Gingold | 2015-01-17 15:12:12 +0100 |
---|---|---|
committer | Tristan Gingold | 2015-01-17 15:12:12 +0100 |
commit | 8eba238aea9b2bffb6fa8372c0d7442c1d99871c (patch) | |
tree | 2375c98af38f1c5a56e9b96e371e60debdd0c4c4 /src | |
parent | 8976998d628e1af5300d9e4156e3cb8800b5150e (diff) | |
download | ghdl-8eba238aea9b2bffb6fa8372c0d7442c1d99871c.tar.gz ghdl-8eba238aea9b2bffb6fa8372c0d7442c1d99871c.tar.bz2 ghdl-8eba238aea9b2bffb6fa8372c0d7442c1d99871c.zip |
ghdlsimul: adjust after use of name for block_specification.
Diffstat (limited to 'src')
-rw-r--r-- | src/ghdldrv/ghdlsimul.adb | 4 | ||||
-rw-r--r-- | src/vhdl/simulate/elaboration.adb | 3 |
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); |