Apply 'make format'

This commit is contained in:
github action 2022-11-23 09:08:02 +00:00
parent 06fdf7be58
commit 821dd070bf
4 changed files with 12 additions and 14 deletions

View File

@ -222,7 +222,7 @@ void VerilatedFst::declare(uint32_t code, const char* name, int dtypenum, fstVar
} }
void VerilatedFst::declEvent(uint32_t code, const char* name, int dtypenum, fstVarDir vardir, void VerilatedFst::declEvent(uint32_t code, const char* name, int dtypenum, fstVarDir vardir,
fstVarType vartype, bool array, int arraynum) { fstVarType vartype, bool array, int arraynum) {
declare(code, name, dtypenum, vardir, vartype, array, arraynum, false, 0, 0); declare(code, name, dtypenum, vardir, vartype, array, arraynum, false, 0, 0);
} }
void VerilatedFst::declBit(uint32_t code, const char* name, int dtypenum, fstVarDir vardir, void VerilatedFst::declBit(uint32_t code, const char* name, int dtypenum, fstVarDir vardir,
@ -285,8 +285,8 @@ void VerilatedFst::configure(const VerilatedTraceConfig& config) {
VL_ATTR_ALWINLINE VL_ATTR_ALWINLINE
void VerilatedFstBuffer::emitEvent(uint32_t code, VlEvent newval) { void VerilatedFstBuffer::emitEvent(uint32_t code, VlEvent newval) {
VL_DEBUG_IFDEF(assert(m_symbolp[code]);); VL_DEBUG_IFDEF(assert(m_symbolp[code]););
fstWriterEmitValueChange(m_fst, m_symbolp[code], "1"); fstWriterEmitValueChange(m_fst, m_symbolp[code], "1");
} }
VL_ATTR_ALWINLINE VL_ATTR_ALWINLINE

View File

@ -102,7 +102,7 @@ public:
// Internal interface to Verilator generated code // Internal interface to Verilator generated code
void declEvent(uint32_t code, const char* name, int dtypenum, fstVarDir vardir, void declEvent(uint32_t code, const char* name, int dtypenum, fstVarDir vardir,
fstVarType vartype, bool array, int arraynum); fstVarType vartype, bool array, int arraynum);
void declBit(uint32_t code, const char* name, int dtypenum, fstVarDir vardir, void declBit(uint32_t code, const char* name, int dtypenum, fstVarDir vardir,
fstVarType vartype, bool array, int arraynum); fstVarType vartype, bool array, int arraynum);
void declBus(uint32_t code, const char* name, int dtypenum, fstVarDir vardir, void declBus(uint32_t code, const char* name, int dtypenum, fstVarDir vardir,

View File

@ -107,7 +107,7 @@ public:
CHG_QDATA = 0x5, CHG_QDATA = 0x5,
CHG_WDATA = 0x6, CHG_WDATA = 0x6,
CHG_DOUBLE = 0x8, CHG_DOUBLE = 0x8,
CHG_EVENT = 0x9, CHG_EVENT = 0x9,
// TODO: full.. // TODO: full..
TIME_CHANGE = 0xc, TIME_CHANGE = 0xc,
TRACE_BUFFER = 0xd, TRACE_BUFFER = 0xd,
@ -458,9 +458,7 @@ public:
} }
} }
} }
VL_ATTR_ALWINLINE void chgEvent(uint32_t* oldp, VlEvent newval) { VL_ATTR_ALWINLINE void chgEvent(uint32_t* oldp, VlEvent newval) { fullEvent(oldp, newval); }
fullEvent(oldp, newval);
}
VL_ATTR_ALWINLINE void chgDouble(uint32_t* oldp, double newval) { VL_ATTR_ALWINLINE void chgDouble(uint32_t* oldp, double newval) {
// cppcheck-suppress invalidPointerCast // cppcheck-suppress invalidPointerCast
if (VL_UNLIKELY(*reinterpret_cast<double*>(oldp) != newval)) fullDouble(oldp, newval); if (VL_UNLIKELY(*reinterpret_cast<double*>(oldp) != newval)) fullDouble(oldp, newval);
@ -539,7 +537,7 @@ public:
VL_DEBUG_IF(assert(m_offloadBufferWritep <= m_offloadBufferEndp);); VL_DEBUG_IF(assert(m_offloadBufferWritep <= m_offloadBufferEndp););
} }
void chgEvent(uint32_t code, VlEvent newval) { void chgEvent(uint32_t code, VlEvent newval) {
m_offloadBufferWritep[0] = VerilatedTraceOffloadCommand::CHG_EVENT ; m_offloadBufferWritep[0] = VerilatedTraceOffloadCommand::CHG_EVENT;
m_offloadBufferWritep[1] = code; m_offloadBufferWritep[1] = code;
m_offloadBufferWritep += 2; m_offloadBufferWritep += 2;
VL_DEBUG_IF(assert(m_offloadBufferWritep <= m_offloadBufferEndp);); VL_DEBUG_IF(assert(m_offloadBufferWritep <= m_offloadBufferEndp););

View File

@ -702,11 +702,11 @@ void VerilatedVcdBuffer::emitEvent(uint32_t code, VlEvent newval) {
const bool triggered = newval.isTriggered(); const bool triggered = newval.isTriggered();
// TODO : It seems that untriggerd events are not filtered // TODO : It seems that untriggerd events are not filtered
// should be tested before this last step // should be tested before this last step
if(triggered) { if (triggered) {
// Don't prefetch suffix as it's a bit too late; // Don't prefetch suffix as it's a bit too late;
char* wp = m_writep; char* wp = m_writep;
*wp++ = '1' ; *wp++ = '1';
finishLine(code, wp); finishLine(code, wp);
} }
} }