diff --git a/include/verilated_fst_c.cpp b/include/verilated_fst_c.cpp index de5f4bbc4..6dd5bbd84 100644 --- a/include/verilated_fst_c.cpp +++ b/include/verilated_fst_c.cpp @@ -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, - fstVarType vartype, bool array, int arraynum) { + fstVarType vartype, bool array, int arraynum) { declare(code, name, dtypenum, vardir, vartype, array, arraynum, false, 0, 0); } 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 void VerilatedFstBuffer::emitEvent(uint32_t code, VlEvent newval) { - VL_DEBUG_IFDEF(assert(m_symbolp[code]);); - fstWriterEmitValueChange(m_fst, m_symbolp[code], "1"); + VL_DEBUG_IFDEF(assert(m_symbolp[code]);); + fstWriterEmitValueChange(m_fst, m_symbolp[code], "1"); } VL_ATTR_ALWINLINE diff --git a/include/verilated_fst_c.h b/include/verilated_fst_c.h index 9e92f12bf..dea14aeb6 100644 --- a/include/verilated_fst_c.h +++ b/include/verilated_fst_c.h @@ -102,7 +102,7 @@ public: // Internal interface to Verilator generated code 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, fstVarType vartype, bool array, int arraynum); void declBus(uint32_t code, const char* name, int dtypenum, fstVarDir vardir, diff --git a/include/verilated_trace.h b/include/verilated_trace.h index 2a19c6795..b9cf68c6c 100644 --- a/include/verilated_trace.h +++ b/include/verilated_trace.h @@ -107,7 +107,7 @@ public: CHG_QDATA = 0x5, CHG_WDATA = 0x6, CHG_DOUBLE = 0x8, - CHG_EVENT = 0x9, + CHG_EVENT = 0x9, // TODO: full.. TIME_CHANGE = 0xc, TRACE_BUFFER = 0xd, @@ -458,9 +458,7 @@ public: } } } - VL_ATTR_ALWINLINE void chgEvent(uint32_t* oldp, VlEvent newval) { - fullEvent(oldp, newval); - } + VL_ATTR_ALWINLINE void chgEvent(uint32_t* oldp, VlEvent newval) { fullEvent(oldp, newval); } VL_ATTR_ALWINLINE void chgDouble(uint32_t* oldp, double newval) { // cppcheck-suppress invalidPointerCast if (VL_UNLIKELY(*reinterpret_cast(oldp) != newval)) fullDouble(oldp, newval); @@ -539,7 +537,7 @@ public: VL_DEBUG_IF(assert(m_offloadBufferWritep <= m_offloadBufferEndp);); } 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 += 2; VL_DEBUG_IF(assert(m_offloadBufferWritep <= m_offloadBufferEndp);); diff --git a/include/verilated_vcd_c.cpp b/include/verilated_vcd_c.cpp index c313e044c..69e7b0654 100644 --- a/include/verilated_vcd_c.cpp +++ b/include/verilated_vcd_c.cpp @@ -702,11 +702,11 @@ void VerilatedVcdBuffer::emitEvent(uint32_t code, VlEvent newval) { const bool triggered = newval.isTriggered(); // TODO : It seems that untriggerd events are not filtered // should be tested before this last step - if(triggered) { - // Don't prefetch suffix as it's a bit too late; - char* wp = m_writep; - *wp++ = '1' ; - finishLine(code, wp); + if (triggered) { + // Don't prefetch suffix as it's a bit too late; + char* wp = m_writep; + *wp++ = '1'; + finishLine(code, wp); } }