aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/trans-chap9.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-03-31 20:44:40 +0200
committerTristan Gingold <tgingold@free.fr>2015-03-31 20:44:40 +0200
commit1469686228b35ca0793ed28d1614d41a01e9cdb5 (patch)
tree6a082e12c961cac0f2fea48b82a2ca213d5cef63 /src/vhdl/translate/trans-chap9.adb
parentd43f982a3168b554fd0745c23c59f94503c0a211 (diff)
downloadghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.tar.gz
ghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.tar.bz2
ghdl-1469686228b35ca0793ed28d1614d41a01e9cdb5.zip
Fix entity instantiation with extended identifier.
From a patch by Ole Myren Rohne.
Diffstat (limited to 'src/vhdl/translate/trans-chap9.adb')
-rw-r--r--src/vhdl/translate/trans-chap9.adb8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vhdl/translate/trans-chap9.adb b/src/vhdl/translate/trans-chap9.adb
index f6ee22bbc..146bb818a 100644
--- a/src/vhdl/translate/trans-chap9.adb
+++ b/src/vhdl/translate/trans-chap9.adb
@@ -1420,15 +1420,17 @@ package body Trans.Chap9 is
function Get_Arch_Name return String is
begin
if Arch /= Null_Iir then
- return "ARCH__" & Image_Identifier (Arch);
+ return "ARCH__" & Identifier_To_String (Arch);
else
return "LASTARCH";
end if;
end Get_Arch_Name;
+ Entity_Library : constant Iir :=
+ Get_Library (Get_Design_File (Entity_Unit));
Str : constant String :=
- Image_Identifier (Get_Library (Get_Design_File (Entity_Unit)))
- & "__" & Image_Identifier (Entity) & "__"
+ Identifier_To_String (Entity_Library) & "__"
+ & Identifier_To_String (Entity) & "__"
& Get_Arch_Name & "__";
Sub_Inter : O_Inter_List;
Arg : O_Dnode;