aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-19 18:28:54 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-19 18:28:54 +0100
commit863f50775bb63bcea435535c58a8e04ff4bfc135 (patch)
tree944e77ca9be16e51bcf40328d3bbd8766c2c6f62 /src/synth
parent8f4b4ff52a47a432c6ed0a2e151a81c02fb66ac7 (diff)
downloadghdl-863f50775bb63bcea435535c58a8e04ff4bfc135.tar.gz
ghdl-863f50775bb63bcea435535c58a8e04ff4bfc135.tar.bz2
ghdl-863f50775bb63bcea435535c58a8e04ff4bfc135.zip
synth-insts: also handle indexed name for synth_type_of_object. Fix #1164
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/synth-insts.adb8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/synth/synth-insts.adb b/src/synth/synth-insts.adb
index 95597ea5d..b5f0a58aa 100644
--- a/src/synth/synth-insts.adb
+++ b/src/synth/synth-insts.adb
@@ -821,6 +821,14 @@ package body Synth.Insts is
end if;
return Create_Onedimensional_Array_Subtype (Pfx_Typ, Res_Bnd);
end;
+ when Iir_Kind_Indexed_Name =>
+ declare
+ Pfx_Typ : Type_Acc;
+ begin
+ Pfx_Typ := Synth_Type_Of_Object (Syn_Inst, Get_Prefix (Expr));
+ return Get_Array_Element (Pfx_Typ);
+ end;
+
when others =>
Vhdl.Errors.Error_Kind ("synth_type_of_object", Expr);
end case;