|
From: Martin W. <ic...@ma...> - 2019-01-15 20:53:01
|
Lennert Buytenhek wrote: > Hello! > > 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: > > $ ./gen | vvp ./detect > [...] > [1117850] 0 x x x > [1119450] 0 x x x > ^C** VVP Stop(0) ** > ** Flushing output streams. > ** Current simulation time is 1120750 ticks. > > 0 > Unknown command: 0 > Try the help command to get a summary > of available commands. > > 0 > Unknown command: 0 > Try the help command to get a summary > of available commands. > > 0 > Unknown command: 0 > Try the help command to get a summary > of available commands. > > 0 > Unknown command: 0 > Try the help command to get a summary > of available commands. > [...] > > Specifying -n by hand achieves the same thing, but there doesn't seem > to be a legitimate reason to make Ctrl-C cause piped (noninteractive) > input to be treated as commands if you don't explicitly pass in an > option to prevent that from happening, IMHO. I was about to agree with you, but then thought, what if someone piped in a set of commands they wanted to be executed when simulation stopped, i.e. some sort of semi-automatic debugging aid. As "vvp -n" provides the behaviour you want, I'm inclined to leave well alone. |