Line 695... |
Line 695... |
}
|
}
|
for (i = 0; i < prof_nfuncs; i++)
|
for (i = 0; i < prof_nfuncs; i++)
|
if (func[i] && func_v[i]) generate_function (func[i], prof_func[i].name, filename_cut);
|
if (func[i] && func_v[i]) generate_function (func[i], prof_func[i].name, filename_cut);
|
generate_main (prof_nfuncs, func, filename_cut);
|
generate_main (prof_nfuncs, func, filename_cut);
|
|
|
|
/* list command */
|
|
} else if (strcmp (tmp1, "l") == 0 || strcmp (tmp1, "list") == 0) {
|
|
/* check for function dependencies */
|
|
for (i = 0; i < prof_nfuncs; i++)
|
|
if (func_v[i]) {
|
|
PRINTF ("%s\n", prof_func[j].name);
|
|
}
|
|
|
/* selectall command */
|
/* selectall command */
|
} else if (strcmp (tmp1, "sa") == 0 || strcmp (tmp1, "selectall") == 0) {
|
} else if (strcmp (tmp1, "sa") == 0 || strcmp (tmp1, "selectall") == 0) {
|
char tmp[50], ch;
|
char tmp[50], ch;
|
int p, o, b, f;
|
int p, o, b, f;
|
for (f = 0; f < prof_nfuncs; f++) if (func[f]) {
|
for (f = 0; f < prof_nfuncs; f++) if (func[f]) {
|
Line 801... |
Line 809... |
PRINTF (" d | debug # sets debug level (0-9)\n");
|
PRINTF (" d | debug # sets debug level (0-9)\n");
|
PRINTF (" o | options displays available options\n");
|
PRINTF (" o | options displays available options\n");
|
PRINTF (" s | select func [option] selects an option/function\n");
|
PRINTF (" s | select func [option] selects an option/function\n");
|
PRINTF (" u | unselect func [option] unselects an option/function\n");
|
PRINTF (" u | unselect func [option] unselects an option/function\n");
|
PRINTF (" g | generate generates verilog file\n");
|
PRINTF (" g | generate generates verilog file\n");
|
|
PRINTF (" l | list displays selected functions\n");
|
}
|
}
|
}
|
}
|
|
|
/* Dispose memory */
|
/* Dispose memory */
|
for (i = 0; i < prof_nfuncs -1; i++)
|
for (i = 0; i < prof_nfuncs -1; i++)
|