Add vl_mc_scan_plusargs

This commit is contained in:
Wilson Snyder
2010-02-03 06:33:00 -05:00
parent 5d5952d354
commit 56a03e1a10
3 changed files with 10 additions and 2 deletions
+6
View File
@@ -913,6 +913,12 @@ IData VL_VALUEPLUSARGS_IW(int rbits, const char* prefixp, char fmt, WDataOutP rw
return 1;
}
const char* vl_mc_scan_plusargs(const char* prefixp) {
string match = VerilatedImp::argPlusMatch(prefixp);
if (match == "") return 0;
else return match.c_str()+strlen(prefixp)+1; // +1 to skip the "+"
}
//===========================================================================
// Heavy functions