185 lines
8.3 KiB
C++
185 lines
8.3 KiB
C++
// Verilated -*- C++ -*-
|
|
// DESCRIPTION: Verilator output: Tracing implementation internals
|
|
#include "verilated_vcd_c.h"
|
|
#include "Vtop__Syms.h"
|
|
|
|
|
|
void Vtop___024root__trace_chg_0_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp);
|
|
|
|
void Vtop___024root__trace_chg_0(void* voidSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_0\n"); );
|
|
// Init
|
|
Vtop___024root* const __restrict vlSelf VL_ATTR_UNUSED = static_cast<Vtop___024root*>(voidSelf);
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
if (VL_UNLIKELY(!vlSymsp->__Vm_activity)) return;
|
|
// Body
|
|
Vtop___024root__trace_chg_0_sub_0((&vlSymsp->TOP), bufp);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_0_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_0_sub_0\n"); );
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
auto& vlSelfRef = std::ref(*vlSelf).get();
|
|
// Init
|
|
uint32_t* const oldp VL_ATTR_UNUSED = bufp->oldp(vlSymsp->__Vm_baseCode + 1);
|
|
// Body
|
|
if (VL_UNLIKELY((vlSelfRef.__Vm_traceActivity[1U]))) {
|
|
bufp->chgIData(oldp+0,(vlSelfRef.top__DOT__flash_address),24);
|
|
bufp->chgBit(oldp+1,(vlSelfRef.top__DOT__flash_read));
|
|
bufp->chgIData(oldp+2,(vlSelfRef.top__DOT__counter),24);
|
|
}
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_1_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp);
|
|
|
|
void Vtop___024root__trace_chg_1(void* voidSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_1\n"); );
|
|
// Init
|
|
Vtop___024root* const __restrict vlSelf VL_ATTR_UNUSED = static_cast<Vtop___024root*>(voidSelf);
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
if (VL_UNLIKELY(!vlSymsp->__Vm_activity)) return;
|
|
// Body
|
|
Vtop___024root__trace_chg_1_sub_0((&vlSymsp->TOP), bufp);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_1_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_1_sub_0\n"); );
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
auto& vlSelfRef = std::ref(*vlSelf).get();
|
|
// Init
|
|
uint32_t* const oldp VL_ATTR_UNUSED = bufp->oldp(vlSymsp->__Vm_baseCode + 4);
|
|
// Body
|
|
bufp->chgBit(oldp+0,(vlSelfRef.sysclk));
|
|
bufp->chgBit(oldp+1,(vlSelfRef.sys_rst_n));
|
|
bufp->chgCData(oldp+2,(vlSelfRef.led),6);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_2_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp);
|
|
|
|
void Vtop___024root__trace_chg_2(void* voidSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_2\n"); );
|
|
// Init
|
|
Vtop___024root* const __restrict vlSelf VL_ATTR_UNUSED = static_cast<Vtop___024root*>(voidSelf);
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
if (VL_UNLIKELY(!vlSymsp->__Vm_activity)) return;
|
|
// Body
|
|
Vtop___024root__trace_chg_2_sub_0((&vlSymsp->TOP), bufp);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_2_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_2_sub_0\n"); );
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
auto& vlSelfRef = std::ref(*vlSelf).get();
|
|
// Init
|
|
uint32_t* const oldp VL_ATTR_UNUSED = bufp->oldp(vlSymsp->__Vm_baseCode + 7);
|
|
// Body
|
|
bufp->chgBit(oldp+0,(vlSelfRef.cs));
|
|
bufp->chgBit(oldp+1,(vlSelfRef.mosi));
|
|
bufp->chgBit(oldp+2,(vlSelfRef.sclk));
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_3_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp);
|
|
|
|
void Vtop___024root__trace_chg_3(void* voidSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_3\n"); );
|
|
// Init
|
|
Vtop___024root* const __restrict vlSelf VL_ATTR_UNUSED = static_cast<Vtop___024root*>(voidSelf);
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
if (VL_UNLIKELY(!vlSymsp->__Vm_activity)) return;
|
|
// Body
|
|
Vtop___024root__trace_chg_3_sub_0((&vlSymsp->TOP), bufp);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_3_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_3_sub_0\n"); );
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
auto& vlSelfRef = std::ref(*vlSelf).get();
|
|
// Init
|
|
uint32_t* const oldp VL_ATTR_UNUSED = bufp->oldp(vlSymsp->__Vm_baseCode + 10);
|
|
// Body
|
|
bufp->chgBit(oldp+0,(vlSelfRef.miso));
|
|
bufp->chgBit(oldp+1,(vlSelfRef.tcs));
|
|
bufp->chgBit(oldp+2,(vlSelfRef.tmosi));
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_4_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp);
|
|
|
|
void Vtop___024root__trace_chg_4(void* voidSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_4\n"); );
|
|
// Init
|
|
Vtop___024root* const __restrict vlSelf VL_ATTR_UNUSED = static_cast<Vtop___024root*>(voidSelf);
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
if (VL_UNLIKELY(!vlSymsp->__Vm_activity)) return;
|
|
// Body
|
|
Vtop___024root__trace_chg_4_sub_0((&vlSymsp->TOP), bufp);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_4_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_4_sub_0\n"); );
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
auto& vlSelfRef = std::ref(*vlSelf).get();
|
|
// Init
|
|
uint32_t* const oldp VL_ATTR_UNUSED = bufp->oldp(vlSymsp->__Vm_baseCode + 13);
|
|
// Body
|
|
bufp->chgBit(oldp+0,(vlSelfRef.tmiso));
|
|
bufp->chgBit(oldp+1,(vlSelfRef.tsclk));
|
|
bufp->chgCData(oldp+2,(vlSelfRef.top__DOT__sequencer),8);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_5_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp);
|
|
|
|
void Vtop___024root__trace_chg_5(void* voidSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_5\n"); );
|
|
// Init
|
|
Vtop___024root* const __restrict vlSelf VL_ATTR_UNUSED = static_cast<Vtop___024root*>(voidSelf);
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
if (VL_UNLIKELY(!vlSymsp->__Vm_activity)) return;
|
|
// Body
|
|
Vtop___024root__trace_chg_5_sub_0((&vlSymsp->TOP), bufp);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_5_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_5_sub_0\n"); );
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
auto& vlSelfRef = std::ref(*vlSelf).get();
|
|
// Init
|
|
uint32_t* const oldp VL_ATTR_UNUSED = bufp->oldp(vlSymsp->__Vm_baseCode + 16);
|
|
// Body
|
|
bufp->chgCData(oldp+0,(vlSelfRef.top__DOT__state),2);
|
|
bufp->chgWData(oldp+1,(vlSelfRef.top__DOT__f0__DOT__bits_out),101);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_6_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp);
|
|
|
|
void Vtop___024root__trace_chg_6(void* voidSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_6\n"); );
|
|
// Init
|
|
Vtop___024root* const __restrict vlSelf VL_ATTR_UNUSED = static_cast<Vtop___024root*>(voidSelf);
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
if (VL_UNLIKELY(!vlSymsp->__Vm_activity)) return;
|
|
// Body
|
|
Vtop___024root__trace_chg_6_sub_0((&vlSymsp->TOP), bufp);
|
|
}
|
|
|
|
void Vtop___024root__trace_chg_6_sub_0(Vtop___024root* vlSelf, VerilatedVcd::Buffer* bufp) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_chg_6_sub_0\n"); );
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
auto& vlSelfRef = std::ref(*vlSelf).get();
|
|
// Init
|
|
uint32_t* const oldp VL_ATTR_UNUSED = bufp->oldp(vlSymsp->__Vm_baseCode + 21);
|
|
// Body
|
|
bufp->chgBit(oldp+0,(vlSelfRef.top__DOT__f0__DOT__fin));
|
|
bufp->chgCData(oldp+1,(vlSelfRef.top__DOT__f0__DOT__state),3);
|
|
bufp->chgIData(oldp+2,(vlSelfRef.top__DOT__f0__DOT__counter),24);
|
|
}
|
|
|
|
void Vtop___024root__trace_cleanup(void* voidSelf, VerilatedVcd* /*unused*/) {
|
|
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root__trace_cleanup\n"); );
|
|
// Init
|
|
Vtop___024root* const __restrict vlSelf VL_ATTR_UNUSED = static_cast<Vtop___024root*>(voidSelf);
|
|
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
|
|
// Body
|
|
vlSymsp->__Vm_activity = false;
|
|
vlSymsp->TOP.__Vm_traceActivity[0U] = 0U;
|
|
vlSymsp->TOP.__Vm_traceActivity[1U] = 0U;
|
|
}
|