URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 42 |
Rev 44 |
Line 47... |
Line 47... |
{
|
{
|
#if VM_TRACE
|
#if VM_TRACE
|
|
|
// Setup the name of the VCD dump file
|
// Setup the name of the VCD dump file
|
string dumpNameDefault("vlt-dump.vcd");
|
string dumpNameDefault("vlt-dump.vcd");
|
string dumpSuffix("-vlt.vcd");
|
|
string dumpDir("../results/"); // Note: hardcoded to store all VCDs in the ../results dir
|
|
string testNameString;
|
string testNameString;
|
string vcdDumpFile;
|
string vcdDumpFile;
|
|
|
if (argc > 1) // If we were passed a name on the command line, use it
|
// Search through the command line parameters for the "-vcd" option
|
|
int cmdline_name_found=0;
|
|
if (argc > 1)
|
{
|
{
|
testNameString = (argv[1]);
|
for(int i=1; i<argc; i++)
|
vcdDumpFile = dumpDir + testNameString + dumpSuffix;
|
{
|
|
if (strcmp(argv[i], "-vcd")==0)
|
|
{
|
|
testNameString = (argv[i+1]);
|
|
vcdDumpFile = testNameString;
|
|
cmdline_name_found=1;
|
|
break;
|
|
}
|
}
|
}
|
else // otherwise use our default VCD dump file name
|
}
|
vcdDumpFile = dumpDir + dumpNameDefault;
|
|
|
if(cmdline_name_found==0) // otherwise use our default VCD dump file name
|
|
vcdDumpFile = dumpNameDefault;
|
|
|
Verilated::traceEverOn (true);
|
Verilated::traceEverOn (true);
|
|
|
cout << "Enabling VCD trace" << endl;
|
cout << "Enabling VCD trace" << endl;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.