diff --git a/pform.cc b/pform.cc index d34877855..d6acae6d4 100644 --- a/pform.cc +++ b/pform.cc @@ -1864,8 +1864,8 @@ void pform_make_pgassign_list(list*alist, void pform_make_reginit(const struct vlltype&li, perm_string name, PExpr*expr) { - if (! pform_at_module_level()) { - VLerror(li, "variable declaration assignments are only " + if (! pform_at_module_level() && !gn_system_verilog()) { + VLerror(li, "error: variable declaration assignments are only " "allowed at the module level."); delete expr; return;