Make debug output file parameters.
This commit is contained in:
parent
d3350c9b27
commit
32b52cbb97
27
main.cc
27
main.cc
|
|
@ -17,7 +17,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT)
|
#if !defined(WINNT)
|
||||||
#ident "$Id: main.cc,v 1.13 1999/02/01 00:26:49 steve Exp $"
|
#ident "$Id: main.cc,v 1.14 1999/04/23 04:34:32 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
|
|
@ -92,17 +92,15 @@ net_func name_to_net_func(const string&name)
|
||||||
|
|
||||||
int main(int argc, char*argv[])
|
int main(int argc, char*argv[])
|
||||||
{
|
{
|
||||||
bool dump_flag = false;
|
|
||||||
bool help_flag = false;
|
bool help_flag = false;
|
||||||
|
const char* net_path = 0;
|
||||||
const char* out_path = 0;
|
const char* out_path = 0;
|
||||||
|
const char* pf_path = 0;
|
||||||
int opt;
|
int opt;
|
||||||
unsigned flag_errors = 0;
|
unsigned flag_errors = 0;
|
||||||
queue<net_func> net_func_queue;
|
queue<net_func> net_func_queue;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "DF:f:ho:s:t:")) != EOF) switch (opt) {
|
while ((opt = getopt(argc, argv, "F:f:hN:o:P:s:t:")) != EOF) switch (opt) {
|
||||||
case 'D':
|
|
||||||
dump_flag = true;
|
|
||||||
break;
|
|
||||||
case 'F': {
|
case 'F': {
|
||||||
net_func tmp = name_to_net_func(optarg);
|
net_func tmp = name_to_net_func(optarg);
|
||||||
if (tmp == 0) {
|
if (tmp == 0) {
|
||||||
|
|
@ -120,9 +118,15 @@ int main(int argc, char*argv[])
|
||||||
case 'h':
|
case 'h':
|
||||||
help_flag = true;
|
help_flag = true;
|
||||||
break;
|
break;
|
||||||
|
case 'N':
|
||||||
|
net_path = optarg;
|
||||||
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
out_path = optarg;
|
out_path = optarg;
|
||||||
break;
|
break;
|
||||||
|
case 'P':
|
||||||
|
pf_path = optarg;
|
||||||
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
start_module = optarg;
|
start_module = optarg;
|
||||||
break;
|
break;
|
||||||
|
|
@ -161,8 +165,8 @@ int main(int argc, char*argv[])
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dump_flag) {
|
if (pf_path) {
|
||||||
ofstream out ("a.pf");
|
ofstream out (pf_path);
|
||||||
out << "PFORM DUMP MODULES:" << endl;
|
out << "PFORM DUMP MODULES:" << endl;
|
||||||
for (map<string,Module*>::iterator mod = modules.begin()
|
for (map<string,Module*>::iterator mod = modules.begin()
|
||||||
; mod != modules.end()
|
; mod != modules.end()
|
||||||
|
|
@ -202,8 +206,8 @@ int main(int argc, char*argv[])
|
||||||
func(des);
|
func(des);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dump_flag) {
|
if (net_path) {
|
||||||
ofstream out ("a.net");
|
ofstream out (net_path);
|
||||||
des->dump(out);
|
des->dump(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -228,6 +232,9 @@ int main(int argc, char*argv[])
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: main.cc,v $
|
* $Log: main.cc,v $
|
||||||
|
* Revision 1.14 1999/04/23 04:34:32 steve
|
||||||
|
* Make debug output file parameters.
|
||||||
|
*
|
||||||
* Revision 1.13 1999/02/01 00:26:49 steve
|
* Revision 1.13 1999/02/01 00:26:49 steve
|
||||||
* Carry some line info to the netlist,
|
* Carry some line info to the netlist,
|
||||||
* Dump line numbers for processes.
|
* Dump line numbers for processes.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue