parent
bef709a235
commit
122ceb2258
|
|
@ -872,21 +872,18 @@ class AssertVisitor final : public VNVisitor {
|
||||||
switch (nodep->ctlType()) {
|
switch (nodep->ctlType()) {
|
||||||
case VAssertCtlType::ON:
|
case VAssertCtlType::ON:
|
||||||
UINFO(9, "Generating assertctl for a module: " << m_modp);
|
UINFO(9, "Generating assertctl for a module: " << m_modp);
|
||||||
nodep->replaceWith(new AstCExpr{
|
nodep->replaceWith(
|
||||||
fl,
|
new AstCStmt{fl, "vlSymsp->_vm_contextp__->assertOnSet("s
|
||||||
"vlSymsp->_vm_contextp__->assertOnSet("s + std::to_string(nodep->ctlAssertTypes())
|
+ std::to_string(nodep->ctlAssertTypes()) + ", "s
|
||||||
+ ", "s + std::to_string(nodep->ctlDirectiveTypes()) + ");\n"s,
|
+ std::to_string(nodep->ctlDirectiveTypes()) + ");\n"s});
|
||||||
1});
|
|
||||||
break;
|
break;
|
||||||
case VAssertCtlType::OFF:
|
case VAssertCtlType::OFF:
|
||||||
case VAssertCtlType::KILL: {
|
case VAssertCtlType::KILL: {
|
||||||
UINFO(9, "Generating assertctl for a module: " << m_modp);
|
UINFO(9, "Generating assertctl for a module: " << m_modp);
|
||||||
nodep->replaceWith(new AstCExpr{fl,
|
nodep->replaceWith(
|
||||||
"vlSymsp->_vm_contextp__->assertOnClear("s
|
new AstCStmt{fl, "vlSymsp->_vm_contextp__->assertOnClear("s
|
||||||
+ std::to_string(nodep->ctlAssertTypes()) + " ,"s
|
+ std::to_string(nodep->ctlAssertTypes()) + " ,"s
|
||||||
+ std::to_string(nodep->ctlDirectiveTypes())
|
+ std::to_string(nodep->ctlDirectiveTypes()) + ");\n"s});
|
||||||
+ ");\n"s,
|
|
||||||
1});
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case VAssertCtlType::LOCK:
|
case VAssertCtlType::LOCK:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue