Include: Allow external progs to test command args

This commit is contained in:
Wilson Snyder 2012-08-14 20:37:15 -04:00
parent d3601dd561
commit 1373b81e7c
3 changed files with 6 additions and 1 deletions

View File

@ -1056,6 +1056,10 @@ void Verilated::commandArgs(int argc, const char** argv) {
VerilatedImp::commandArgs(argc,argv);
}
const char* Verilated::commandArgsPlusMatch(const char* prefixp) {
return VerilatedImp::argPlusMatch(prefixp).c_str();
}
void Verilated::scopesDump() {
VerilatedImp::scopesDump();
}

View File

@ -271,6 +271,7 @@ public:
/// Record command line arguments, for retrieval by $test$plusargs/$value$plusargs
static void commandArgs(int argc, const char** argv);
static void commandArgs(int argc, char** argv) { commandArgs(argc,(const char**)argv); }
static const char* commandArgsPlusMatch(const char* prefixp);
/// For debugging, print text list of all scope names with
/// dpiImport/Export context. This function may change in future

View File

@ -8,7 +8,7 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
# Version 2.0.
compile (
v_flags => ["--lint-only"],
v_flags2 => ["--lint-only"],
fails=>1,
expect=>
'%Error: t/t_mem_packed_assign_bad.v:\d+: Unsupported: Assignment between packed arrays of different dimensions