refine man page treatment of -d

also renames config file option from scope to scopes,
for consistency with the source code, and adds a
wiki reference to the man page.
This commit is contained in:
Larry Doolittle 2008-02-06 15:42:41 -08:00 committed by Stephen Williams
parent 85229a6cdc
commit 63e2aa8d1a
2 changed files with 10 additions and 7 deletions

View File

@ -5,7 +5,7 @@ iverilog - Icarus Verilog compiler
.SH SYNOPSIS .SH SYNOPSIS
.B iverilog .B iverilog
[-ESVv] [-Bpath] [-ccmdfile|-fcmdfile] [-Dmacro[=defn]] [-pflag=value] [-ESVv] [-Bpath] [-ccmdfile|-fcmdfile] [-Dmacro[=defn]] [-pflag=value]
[-dflag=value] [-g1|-g2|-g2x|-gspecify|-gxtypes|-gio-range-error] [-dname] [-g1|-g2|-g2x|-gspecify|-gxtypes|-gio-range-error]
[-Iincludedir] [-mmodule] [-Mfile] [-Nfile] [-ooutputfilename] [-Iincludedir] [-mmodule] [-Mfile] [-Nfile] [-ooutputfilename]
[-stopmodule] [-ttype] [-Tmin/typ/max] [-Wclass] [-ypath] sourcefile [-stopmodule] [-ttype] [-Tmin/typ/max] [-Wclass] [-ypath] sourcefile
@ -45,8 +45,8 @@ Defines macro \fImacro\fP as \fIdefn\fP.
.TP 8 .TP 8
.B -d\fIname\fP .B -d\fIname\fP
Activate a class of compiler debugging messages. The \fB-d\fP switch may Activate a class of compiler debugging messages. The \fB-d\fP switch may
be used as often as necessary to activate all the desired classes. be used as often as necessary to activate all the desired messages.
Supported classes are scope, eval_tree, elaborate, and synth2; Supported names are scopes, eval_tree, elaborate, and synth2;
any other names are ignored. any other names are ignored.
.TP 8 .TP 8
.B -E .B -E
@ -366,7 +366,7 @@ and directory strings.
Variable values come from the operating system environment, and not Variable values come from the operating system environment, and not
from preprocessor defines elsewhere in the file or the command line. from preprocessor defines elsewhere in the file or the command line.
.SH PREDEFINED MACROS .SH PREDEFINED MACROS
The following macro is predefined by the compiler: The following macro is predefined by the compiler:
@ -402,9 +402,12 @@ Steve Williams (steve@icarus.com)
vvp(1), vvp(1),
.BR "<http://www.icarus.com/eda/verilog/>" .BR "<http://www.icarus.com/eda/verilog/>"
Tips on using, debugging, and developing the compiler can be found at
.BR "<http://iverilog.wikia.com/>"
.SH COPYRIGHT .SH COPYRIGHT
.nf .nf
Copyright \(co 2002 Stephen Williams Copyright \(co 2002-2008 Stephen Williams
This document can be freely redistributed according to the terms of the This document can be freely redistributed according to the terms of the
GNU General Public License version 2.0 GNU General Public License version 2.0

View File

@ -356,9 +356,9 @@ static void read_iconfig_file(const char*ipath)
basedir = strdup(cp); basedir = strdup(cp);
} else if (strcmp(buf, "debug") == 0) { } else if (strcmp(buf, "debug") == 0) {
if (strcmp(cp, "scope") == 0) { if (strcmp(cp, "scopes") == 0) {
debug_scopes = true; debug_scopes = true;
cerr << "debug: Enable scope debug" << endl; cerr << "debug: Enable scopes debug" << endl;
} else if (strcmp(cp,"eval_tree") == 0) { } else if (strcmp(cp,"eval_tree") == 0) {
debug_eval_tree = true; debug_eval_tree = true;
cerr << "debug: Enable eval_tree debug" << endl; cerr << "debug: Enable eval_tree debug" << endl;