mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
@@ -118,6 +118,17 @@ class EmitCModel final : public EmitCFunc {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(v3Global.opt.emitAccessors()) {
|
||||
puts("\n// ACCESSORS\n"
|
||||
"// The application code should use these methods to\n"
|
||||
"// propagate new values into/out from the Verilated model\n"
|
||||
"// instead of using signal variables directly.\n");
|
||||
for (const AstNode* nodep = modp->stmtsp(); nodep; nodep = nodep->nextp()) {
|
||||
if (const AstVar* const varp = VN_CAST(nodep, Var)) {
|
||||
if (varp->isPrimaryIO()) emitVarAccessors(varp);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (optSystemC() && v3Global.usesTiming()) puts("sc_core::sc_event trigger_eval;\n");
|
||||
|
||||
// Cells instantiated by the top level (for access to /* verilator public */)
|
||||
|
||||
Reference in New Issue
Block a user