mirror of
https://github.com/verilator/verilator.git
synced 2026-09-05 08:42:46 +02:00
Add vl_mc_scan_plusargs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user