diff options
-rw-r--r-- | src/synth/synth-decls.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/synth/synth-decls.adb b/src/synth/synth-decls.adb index 1f252bd1f..92670c49f 100644 --- a/src/synth/synth-decls.adb +++ b/src/synth/synth-decls.adb @@ -767,10 +767,12 @@ package body Synth.Decls is Warning_Msg_Synth (+Decl, "%n is never assigned and has no default value", (1 => +Decl)); + Def_Val := Build_Const_X (Get_Build (Syn_Inst), + Get_Width (Gate_Net)); else Warning_Msg_Synth (+Decl, "%n is never assigned", (1 => +Decl)); - Connect (Get_Input (Gate, 0), Def_Val); end if; + Connect (Get_Input (Gate, 0), Def_Val); end if; Free_Wire (Val.W); |