|
From: <ni...@ly...> - 2019-01-04 05:56:44
|
Lennert Buytenhek <bu...@wa...> writes: > I've been using the hack patch below to make Icarus Verilog > automatically start in noninteractive mode when standard input is > not a terminal. This is useful when you're piping test data into a > testbench and you don't want Ctrl-C to cause your terminal to be > flooded with endless output like this: To me, it seems you'd may want to distinguish between stop due to the SIGINT signal, and $stop in the simulation. And just change the SIGINT handling (set up in vvp/schedule.cc, it seems) to generate $finish instead of $stop, in the case that stdin isn't a tty. Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677. Internet email is subject to wholesale government surveillance. |