mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Merge branch 'master' into develop-v5
This commit is contained in:
+8
-8
@@ -752,26 +752,26 @@ class EmitCTrace final : EmitCFunc {
|
||||
const string func = nodep->full() ? "full" : "chg";
|
||||
bool emitWidth = true;
|
||||
if (nodep->dtypep()->basicp()->isDouble()) {
|
||||
puts("tracep->" + func + "Double");
|
||||
puts("bufp->" + func + "Double");
|
||||
emitWidth = false;
|
||||
} else if (nodep->isWide() || emitTraceIsScBv(nodep) || emitTraceIsScBigUint(nodep)) {
|
||||
puts("tracep->" + func + "WData");
|
||||
puts("bufp->" + func + "WData");
|
||||
} else if (nodep->isQuad()) {
|
||||
puts("tracep->" + func + "QData");
|
||||
puts("bufp->" + func + "QData");
|
||||
} else if (nodep->declp()->widthMin() > 16) {
|
||||
puts("tracep->" + func + "IData");
|
||||
puts("bufp->" + func + "IData");
|
||||
} else if (nodep->declp()->widthMin() > 8) {
|
||||
puts("tracep->" + func + "SData");
|
||||
puts("bufp->" + func + "SData");
|
||||
} else if (nodep->declp()->widthMin() > 1) {
|
||||
puts("tracep->" + func + "CData");
|
||||
puts("bufp->" + func + "CData");
|
||||
} else {
|
||||
puts("tracep->" + func + "Bit");
|
||||
puts("bufp->" + func + "Bit");
|
||||
emitWidth = false;
|
||||
}
|
||||
|
||||
const uint32_t offset = (arrayindex < 0) ? 0 : (arrayindex * nodep->declp()->widthWords());
|
||||
const uint32_t code = nodep->declp()->code() + offset;
|
||||
puts(v3Global.opt.useTraceOffloadThread() && !nodep->full() ? "(base+" : "(oldp+");
|
||||
puts(v3Global.opt.useTraceOffload() && !nodep->full() ? "(base+" : "(oldp+");
|
||||
puts(cvtToStr(code - nodep->baseCode()));
|
||||
puts(",");
|
||||
emitTraceValue(nodep, arrayindex);
|
||||
|
||||
Reference in New Issue
Block a user