diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-04-13 20:58:14 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-04-13 20:58:14 +0200 |
commit | 951f45147a203381e2b2d3aec51606c1a7657642 (patch) | |
tree | 61111aa7e484c9e050813db83763d09d5d79f29f /src/synth/elab-vhdl_insts.adb | |
parent | 3145f5665bf2aef67d9da88538e16d3790f3c377 (diff) | |
download | ghdl-951f45147a203381e2b2d3aec51606c1a7657642.tar.gz ghdl-951f45147a203381e2b2d3aec51606c1a7657642.tar.bz2 ghdl-951f45147a203381e2b2d3aec51606c1a7657642.zip |
synth: add support for subtype declaration in vunits. Fix #2033
Diffstat (limited to 'src/synth/elab-vhdl_insts.adb')
-rw-r--r-- | src/synth/elab-vhdl_insts.adb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/synth/elab-vhdl_insts.adb b/src/synth/elab-vhdl_insts.adb index 56fdfcacf..a16b0cdf2 100644 --- a/src/synth/elab-vhdl_insts.adb +++ b/src/synth/elab-vhdl_insts.adb @@ -381,6 +381,8 @@ package body Elab.Vhdl_Insts is Item : Node; Last_Type : Node; begin + Elab_Dependencies (Root_Instance, Get_Design_Unit (Unit)); + Unit_Inst := Make_Elab_Instance (Syn_Inst, Unit, Config => Null_Node); Add_Extra_Instance (Syn_Inst, Unit_Inst); @@ -409,7 +411,8 @@ package body Elab.Vhdl_Insts is | Iir_Kind_Attribute_Declaration | Iir_Kind_Attribute_Specification | Iir_Kind_Object_Alias_Declaration - | Iir_Kind_Non_Object_Alias_Declaration => + | Iir_Kind_Non_Object_Alias_Declaration + | Iir_Kind_Subtype_Declaration => Elab_Declaration (Unit_Inst, Item, Last_Type); when Iir_Kinds_Concurrent_Signal_Assignment | Iir_Kinds_Process_Statement |