We have a need for xrun to exit during the simulation step of our system verilog design when an error occurs. The error we want to exit on is generally from an assertion (*E,ASRTST) but also could be from a $error in the verilog. The solution seemed to be upgrading the error to a fatal using -xmfatal ASRTST, but this seems to only elevate errors that occur during compile or elaboration, but not in the simulate step. Are there any other methods of getting an error to cause the simulator to exit? the only other solution we've found is to change $error to $fatal, but this doesn't seem like a good long term solution as the code that will generate the error is not maintained by us.
↧