mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 01:52:17 +02:00
DPI: Support strings in DPI Imports
This commit is contained in:
@@ -592,6 +592,9 @@ private:
|
||||
stmt += "(void*)";
|
||||
}
|
||||
stmt += portp->name()+frSuffix;
|
||||
if (portp->basicp() && portp->basicp()->keyword()==AstBasicDTypeKwd::STRING) {
|
||||
stmt += ".c_str()";
|
||||
}
|
||||
}
|
||||
stmt += ";\n";
|
||||
return new AstCStmt(portp->fileline(), stmt);
|
||||
|
||||
Reference in New Issue
Block a user