RTL-Openenv / tasks /task3 /sim_build /Vtop___024root__DepSet_h84412442__0.cpp
NeerjaK's picture
Upload folder using huggingface_hub
adceaef verified
Raw History Blame Contribute Delete
1.83 kB
// Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See Vtop.h for the primary calling header
#include "Vtop__pch.h"
#include "Vtop__Syms.h"
#include "Vtop___024root.h"
#ifdef VL_DEBUG
VL_ATTR_COLD void Vtop___024root___dump_triggers__ico(Vtop___024root* vlSelf);
#endif // VL_DEBUG
void Vtop___024root___eval_triggers__ico(Vtop___024root* vlSelf) {
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_triggers__ico\n"); );
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
auto& vlSelfRef = std::ref(*vlSelf).get();
// Body
vlSelfRef.__VicoTriggered.setBit(0U, (IData)(vlSelfRef.__VicoFirstIteration));
#ifdef VL_DEBUG
if (VL_UNLIKELY(vlSymsp->_vm_contextp__->debug())) {
Vtop___024root___dump_triggers__ico(vlSelf);
}
#endif
}
#ifdef VL_DEBUG
VL_ATTR_COLD void Vtop___024root___dump_triggers__act(Vtop___024root* vlSelf);
#endif // VL_DEBUG
void Vtop___024root___eval_triggers__act(Vtop___024root* vlSelf) {
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_triggers__act\n"); );
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
auto& vlSelfRef = std::ref(*vlSelf).get();
// Body
vlSelfRef.__VactTriggered.setBit(0U, ((IData)(vlSelfRef.clk)
& (~ (IData)(vlSelfRef.__Vtrigprevexpr___TOP__clk__0))));
vlSelfRef.__VactTriggered.setBit(1U, ((IData)(vlSelfRef.reset)
& (~ (IData)(vlSelfRef.__Vtrigprevexpr___TOP__reset__0))));
vlSelfRef.__Vtrigprevexpr___TOP__clk__0 = vlSelfRef.clk;
vlSelfRef.__Vtrigprevexpr___TOP__reset__0 = vlSelfRef.reset;
#ifdef VL_DEBUG
if (VL_UNLIKELY(vlSymsp->_vm_contextp__->debug())) {
Vtop___024root___dump_triggers__act(vlSelf);
}
#endif
}