Skip to content

Commit

Permalink
Improve `resetall support (verilator#5728) (verilator#5730)
Browse files Browse the repository at this point in the history
  • Loading branch information
sifferman authored Jan 12, 2025
1 parent fdf29b9 commit dc43071
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/verilog.l
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,11 @@ vnum {vnum1}|{vnum2}|{vnum3}|{vnum4}|{vnum5}
"`protect" { FL_FWD; FL_BRK; }
"`remove_gatenames" { FL_FWD; FL_BRK; } // Verilog-XL compatibility
"`remove_netnames" { FL_FWD; FL_BRK; } // Verilog-XL compatibility
"`resetall" { FL; PARSEP->lexFileline()->warnOn(V3ErrorCode::I_DEF_NETTYPE_WIRE, true);
"`resetall" { FL;
PARSEP->lexFileline()->warnOn(V3ErrorCode::I_DEF_NETTYPE_WIRE, true);
v3Global.rootp()->timeInit();
PARSEP->lexFileline()->celldefineOn(false);
PARSEP->unconnectedDrive(VOptionBool::OPT_DEFAULT_FALSE);
return yaT_RESETALL; } // Rest handled by preproc
"`suppress_faults" { FL_FWD; FL_BRK; } // Verilog-XL compatibility
"`timescale"{ws}+[^\n\r]* { FL; PARSEP->lexTimescaleParse(yylval.fl,
Expand Down

0 comments on commit dc43071

Please sign in to comment.