From: Martin W. <ic...@ma...> - 2019-10-14 20:50:51
|
The IEEE standard seems quite clear on this (for once!) - it should return an error code. Stephen Williams wrote: > I have a bug report for Icarus Verilog requesting that $fatal cause > the vvp program to return EXIT_FAILURE or some-such, instead of > EXIT_SUCCESS like all other variants of $finish. It's easy enough to > implement that, and I have done so, but that has led to at least one > test in ivtest to "fail to run" even though it ran fine and is just > returning a failure status. > > So I guess my question is, will we be asking for trouble if $fatal() > causes vvp to "fail" in the eyes of the command line or shell script > that executes it? It is after all a success in the sense that it > successfully ran the simulation program. > > Humm... |