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/synth-vhdl_stmts.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/synth-vhdl_stmts.adb')
-rw-r--r-- | src/synth/synth-vhdl_stmts.adb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/synth/synth-vhdl_stmts.adb b/src/synth/synth-vhdl_stmts.adb index 114d98ec1..93748d952 100644 --- a/src/synth/synth-vhdl_stmts.adb +++ b/src/synth/synth-vhdl_stmts.adb @@ -3806,7 +3806,8 @@ package body Synth.Vhdl_Stmts 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 => Synth_Concurrent_Declaration (Syn_Inst, Item); when Iir_Kinds_Concurrent_Signal_Assignment | Iir_Kinds_Process_Statement @@ -3851,7 +3852,8 @@ package body Synth.Vhdl_Stmts 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 => Finalize_Declaration (Syn_Inst, Item, False); when others => Error_Kind ("synth_verification_unit(2)", Item); |