Link PlusArg to emulator command line options
- adds a mutable singleton (PlusArgArtefacts) to store information about Rocket PlusArgs - adds methods to PlusArgArtefacts to emit C snippets that are consumed by emulator.cc for correct argument parsing and help text generation - emits snippets in $(CONFIG).plusArgs via BaseCoreplex-set ElaborationArtefacts - modify emulator/Makefrag-verilator to include $(CONFIG).plusArgs - cleanup help text (docstring) for existing PlusArgs Signed-off-by: Schuyler Eldridge <schuyler.eldridge@gmail.com>
This commit is contained in:
@ -442,7 +442,8 @@ class TLMonitor(args: TLMonitorArgs) extends TLMonitorBase(args)
|
||||
inflight := (inflight | a_set) & ~d_clr
|
||||
|
||||
val watchdog = RegInit(UInt(0, width = 32))
|
||||
val limit = PlusArg("tilelink_timeout")
|
||||
val limit = PlusArg("tilelink_timeout",
|
||||
docstring="Kill emulation after INT waiting TileLink cycles. Off if 0.")
|
||||
assert (!inflight.orR || limit === UInt(0) || watchdog < limit, "TileLink timeout expired" + extra)
|
||||
|
||||
watchdog := watchdog + UInt(1)
|
||||
|
Reference in New Issue
Block a user