aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-09-15 03:13:23 +0200
committerTristan Gingold <tgingold@free.fr>2022-09-15 03:13:23 +0200
commit8ada97528f410837465f61128fadda39d2c854ee (patch)
tree5425f6ca45b2ff79db28aaa3d9eb159ad580d07f /src/synth
parent05570966dd67fa303302bfb3664b7027fea9084c (diff)
downloadghdl-8ada97528f410837465f61128fadda39d2c854ee.tar.gz
ghdl-8ada97528f410837465f61128fadda39d2c854ee.tar.bz2
ghdl-8ada97528f410837465f61128fadda39d2c854ee.zip
synth: handle access subtypes
Diffstat (limited to 'src/synth')
-rw-r--r--src/synth/elab-vhdl_types.adb8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/synth/elab-vhdl_types.adb b/src/synth/elab-vhdl_types.adb
index 33b5feb8c..8aeb33d37 100644
--- a/src/synth/elab-vhdl_types.adb
+++ b/src/synth/elab-vhdl_types.adb
@@ -617,6 +617,14 @@ package body Elab.Vhdl_Types is
(Syn_Inst, Get_Range_Constraint (Atype));
return Create_Float_Type (Rng);
end;
+ when Iir_Kind_Access_Subtype_Definition =>
+ declare
+ Acc_Typ : Type_Acc;
+ begin
+ Acc_Typ := Synth_Subtype_Indication
+ (Syn_Inst, Get_Designated_Type (Atype));
+ return Create_Access_Type (Acc_Typ);
+ end;
when others =>
Vhdl.Errors.Error_Kind ("synth_subtype_indication", Atype);
end case;