mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 04:57:25 -04:00
[DV] Update simulation terminate argument
Add description to usage output. Add short option '-c'.
This commit is contained in:
parent
c808fed7d1
commit
0728fb7e9f
1 changed files with 7 additions and 6 deletions
|
@ -68,12 +68,13 @@ void VerilatorSimCtrl::PrintHelp() const {
|
|||
<< "\n"
|
||||
"\n";
|
||||
if (tracing_possible_) {
|
||||
std::cout << "-t|--trace Write a trace file from the start\n";
|
||||
std::cout << "-t|--trace Write trace file from the start\n";
|
||||
}
|
||||
std::cout << "-r|--rominit=VMEMFILE Initialize the ROM with VMEMFILE\n"
|
||||
"-m|--raminit=VMEMFILE Initialize the RAM with VMEMFILE\n"
|
||||
"-f|--flashinit=VMEMFILE Initialize the FLASH with VMEMFILE\n"
|
||||
"-h|--help Show help\n"
|
||||
std::cout << "-r|--rominit=VMEMFILE Initialize the ROM with VMEMFILE\n"
|
||||
"-m|--raminit=VMEMFILE Initialize the RAM with VMEMFILE\n"
|
||||
"-f|--flashinit=VMEMFILE Initialize the FLASH with VMEMFILE\n"
|
||||
"-c|--term-after-cycles=N Terminate simulation after N cycles\n"
|
||||
"-h|--help Show help\n"
|
||||
"\n"
|
||||
"All further arguments are passed to the design and can be used "
|
||||
"in the \n"
|
||||
|
@ -154,7 +155,7 @@ bool VerilatorSimCtrl::ParseCommandArgs(int argc, char **argv, int &retcode) {
|
|||
{nullptr, no_argument, nullptr, 0}};
|
||||
|
||||
while (1) {
|
||||
int c = getopt_long(argc, argv, ":r:m:f:th", long_options, nullptr);
|
||||
int c = getopt_long(argc, argv, ":r:m:f:c:th", long_options, nullptr);
|
||||
if (c == -1) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue