Add the -s flag to start up interactive.

This commit is contained in:
steve 2005-01-29 06:28:19 +00:00
parent ade5bdcafe
commit bf3679b7d4
2 changed files with 16 additions and 4 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: main.cc,v 1.39 2004/10/04 01:10:59 steve Exp $"
#ident "$Id: main.cc,v 1.40 2005/01/29 06:28:19 steve Exp $"
#endif
# include "config.h"
@ -142,7 +142,7 @@ int main(int argc, char*argv[])
}
#endif
while ((opt = getopt(argc, argv, "+dhl:M:m:v")) != EOF) switch (opt) {
while ((opt = getopt(argc, argv, "+hl:M:m:sv")) != EOF) switch (opt) {
case 'h':
fprintf(stderr,
"Usage: vvp [options] input-file [+plusargs...]\n"
@ -152,6 +152,7 @@ int main(int argc, char*argv[])
" -M path VPI module directory\n"
" -M - Clear VPI module path\n"
" -m module Load vpi module.\n"
" -s $stop right away.\n"
" -v Verbose progress messages.\n" );
exit(0);
case 'l':
@ -168,6 +169,9 @@ int main(int argc, char*argv[])
case 'm':
module_tab[module_cnt++] = optarg;
break;
case 's':
schedule_stop(0);
break;
case 'v':
verbose_flag = true;
break;
@ -277,6 +281,9 @@ int main(int argc, char*argv[])
/*
* $Log: main.cc,v $
* Revision 1.40 2005/01/29 06:28:19 steve
* Add the -s flag to start up interactive.
*
* Revision 1.39 2004/10/04 01:10:59 steve
* Clean up spurious trailing white space.
*

View File

@ -1,10 +1,10 @@
.TH vvp 1 "$Date: 2004/10/04 01:11:00 $" Version "$Date: 2004/10/04 01:11:00 $"
.TH vvp 1 "$Date: 2005/01/29 06:28:19 $" Version "$Date: 2005/01/29 06:28:19 $"
.SH NAME
vvp - Icarus Verilog vvp runtime engine
.SH SYNOPSIS
.B vvp
[-dv] [-Mpath] [-mmodule] [-llogfile] inputfile [extended-args...]
[-sv] [-Mpath] [-mmodule] [-llogfile] inputfile [extended-args...]
.SH DESCRIPTION
.PP
@ -41,6 +41,11 @@ the module. However, if the name includes at least one directory
character, then the search path is not scanned and the name is assumed
to be a complete file name.
.TP 8
.B -s
Stop. This will cause the simulation to stop in the beginning, before
any events are scheduled. This allows the interactive user to get
hold of the simulation just before it starts.
.TP 8
.B -v
Turn on verbose messages. This will cause information about run time
progress to be printed to standard out.