Add --pins-sc-uint-bool to force SystemC uint type (#5192)

This commit is contained in:
Bartłomiej Chmiel
2024-06-25 05:27:09 -04:00
committed by GitHub
parent 4c584c17e6
commit 9e2c8aefc8
11 changed files with 129 additions and 15 deletions
+1 -1
View File
@@ -694,7 +694,7 @@ class EmitCTrace final : EmitCFunc {
const AstVarRef* const varrefp = VN_CAST(nodep->declp()->valuep(), VarRef);
if (!varrefp) return false;
AstVar* const varp = varrefp->varp();
return varp->isSc() && varp->isScUint();
return varp->isSc() && (varp->isScUint() || varp->isScUintBool());
}
void emitTraceInitOne(AstTraceDecl* nodep, int enumNum) {