diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-01-12 21:28:17 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-01-12 21:28:17 +0100 |
commit | 3439e17389eeedf793cf930b642c539b73766a10 (patch) | |
tree | e0e8b19e09024dca1ef858c9d062a5872ca21013 /src/synth/synth-decls.adb | |
parent | 10f07155f071a53ebd6e45a70c449a8a262f9701 (diff) | |
download | ghdl-3439e17389eeedf793cf930b642c539b73766a10.tar.gz ghdl-3439e17389eeedf793cf930b642c539b73766a10.tar.bz2 ghdl-3439e17389eeedf793cf930b642c539b73766a10.zip |
synth-decls: do subtype conversion for signal default value.
Diffstat (limited to 'src/synth/synth-decls.adb')
-rw-r--r-- | src/synth/synth-decls.adb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synth/synth-decls.adb b/src/synth/synth-decls.adb index 5644d220f..26d6f164b 100644 --- a/src/synth/synth-decls.adb +++ b/src/synth/synth-decls.adb @@ -640,6 +640,8 @@ package body Synth.Decls is if Is_Valid (Def) then Obj_Type := Get_Value_Type (Syn_Inst, Get_Type (Decl)); Init := Synth_Expression_With_Type (Syn_Inst, Def, Obj_Type); + Init := Synth_Subtype_Conversion + (Init, Obj_Type, False, Decl); else Init := null; end if; |