// Verilated -*- C++ -*- // DESCRIPTION: Verilator output: Design implementation internals // See Vwave.h for the primary calling header #include "Vwave__pch.h" #include "Vwave___024root.h" VL_ATTR_COLD void Vwave___024root___eval_static(Vwave___024root* vlSelf) { (void)vlSelf; // Prevent unused variable warning Vwave__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; VL_DEBUG_IF(VL_DBG_MSGF("+ Vwave___024root___eval_static\n"); ); } VL_ATTR_COLD void Vwave___024root___eval_initial__TOP(Vwave___024root* vlSelf); VL_ATTR_COLD void Vwave___024root___eval_initial(Vwave___024root* vlSelf) { (void)vlSelf; // Prevent unused variable warning Vwave__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; VL_DEBUG_IF(VL_DBG_MSGF("+ Vwave___024root___eval_initial\n"); ); // Body Vwave___024root___eval_initial__TOP(vlSelf); vlSelf->__Vtrigprevexpr___TOP__i_clk__0 = vlSelf->i_clk; } VL_ATTR_COLD void Vwave___024root___eval_initial__TOP(Vwave___024root* vlSelf) { (void)vlSelf; // Prevent unused variable warning Vwave__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; VL_DEBUG_IF(VL_DBG_MSGF("+ Vwave___024root___eval_initial__TOP\n"); ); // Body vlSelf->o_led = 1U; vlSelf->wave__DOT__direction = 0U; } VL_ATTR_COLD void Vwave___024root___eval_final(Vwave___024root* vlSelf) { (void)vlSelf; // Prevent unused variable warning Vwave__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; VL_DEBUG_IF(VL_DBG_MSGF("+ Vwave___024root___eval_final\n"); ); } VL_ATTR_COLD void Vwave___024root___eval_settle(Vwave___024root* vlSelf) { (void)vlSelf; // Prevent unused variable warning Vwave__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; VL_DEBUG_IF(VL_DBG_MSGF("+ Vwave___024root___eval_settle\n"); ); } #ifdef VL_DEBUG VL_ATTR_COLD void Vwave___024root___dump_triggers__act(Vwave___024root* vlSelf) { (void)vlSelf; // Prevent unused variable warning Vwave__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; VL_DEBUG_IF(VL_DBG_MSGF("+ Vwave___024root___dump_triggers__act\n"); ); // Body if ((1U & (~ vlSelf->__VactTriggered.any()))) { VL_DBG_MSGF(" No triggers active\n"); } if ((1ULL & vlSelf->__VactTriggered.word(0U))) { VL_DBG_MSGF(" 'act' region trigger index 0 is active: @(posedge i_clk)\n"); } } #endif // VL_DEBUG #ifdef VL_DEBUG VL_ATTR_COLD void Vwave___024root___dump_triggers__nba(Vwave___024root* vlSelf) { (void)vlSelf; // Prevent unused variable warning Vwave__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; VL_DEBUG_IF(VL_DBG_MSGF("+ Vwave___024root___dump_triggers__nba\n"); ); // Body if ((1U & (~ vlSelf->__VnbaTriggered.any()))) { VL_DBG_MSGF(" No triggers active\n"); } if ((1ULL & vlSelf->__VnbaTriggered.word(0U))) { VL_DBG_MSGF(" 'nba' region trigger index 0 is active: @(posedge i_clk)\n"); } } #endif // VL_DEBUG VL_ATTR_COLD void Vwave___024root___ctor_var_reset(Vwave___024root* vlSelf) { (void)vlSelf; // Prevent unused variable warning Vwave__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; VL_DEBUG_IF(VL_DBG_MSGF("+ Vwave___024root___ctor_var_reset\n"); ); // Body vlSelf->i_clk = VL_RAND_RESET_I(1); vlSelf->o_led = VL_RAND_RESET_I(8); vlSelf->wave__DOT__direction = VL_RAND_RESET_I(1); vlSelf->__Vtrigprevexpr___TOP__i_clk__0 = VL_RAND_RESET_I(1); }