// Verilated -*- C++ -*- // DESCRIPTION: Verilator output: Model implementation (design independent parts) #include "Vblinky__pch.h" //============================================================ // Constructors Vblinky::Vblinky(VerilatedContext* _vcontextp__, const char* _vcname__) : VerilatedModel{*_vcontextp__} , vlSymsp{new Vblinky__Syms(contextp(), _vcname__, this)} , i_clk{vlSymsp->TOP.i_clk} , o_led{vlSymsp->TOP.o_led} , rootp{&(vlSymsp->TOP)} { // Register model with the context contextp()->addModel(this); } Vblinky::Vblinky(const char* _vcname__) : Vblinky(Verilated::threadContextp(), _vcname__) { } //============================================================ // Destructor Vblinky::~Vblinky() { delete vlSymsp; } //============================================================ // Evaluation function #ifdef VL_DEBUG void Vblinky___024root___eval_debug_assertions(Vblinky___024root* vlSelf); #endif // VL_DEBUG void Vblinky___024root___eval_static(Vblinky___024root* vlSelf); void Vblinky___024root___eval_initial(Vblinky___024root* vlSelf); void Vblinky___024root___eval_settle(Vblinky___024root* vlSelf); void Vblinky___024root___eval(Vblinky___024root* vlSelf); void Vblinky::eval_step() { VL_DEBUG_IF(VL_DBG_MSGF("+++++TOP Evaluate Vblinky::eval_step\n"); ); #ifdef VL_DEBUG // Debug assertions Vblinky___024root___eval_debug_assertions(&(vlSymsp->TOP)); #endif // VL_DEBUG vlSymsp->__Vm_deleter.deleteAll(); if (VL_UNLIKELY(!vlSymsp->__Vm_didInit)) { vlSymsp->__Vm_didInit = true; VL_DEBUG_IF(VL_DBG_MSGF("+ Initial\n");); Vblinky___024root___eval_static(&(vlSymsp->TOP)); Vblinky___024root___eval_initial(&(vlSymsp->TOP)); Vblinky___024root___eval_settle(&(vlSymsp->TOP)); } VL_DEBUG_IF(VL_DBG_MSGF("+ Eval\n");); Vblinky___024root___eval(&(vlSymsp->TOP)); // Evaluate cleanup Verilated::endOfEval(vlSymsp->__Vm_evalMsgQp); } //============================================================ // Events and timing bool Vblinky::eventsPending() { return false; } uint64_t Vblinky::nextTimeSlot() { VL_FATAL_MT(__FILE__, __LINE__, "", "%Error: No delays in the design"); return 0; } //============================================================ // Utilities const char* Vblinky::name() const { return vlSymsp->name(); } //============================================================ // Invoke final blocks void Vblinky___024root___eval_final(Vblinky___024root* vlSelf); VL_ATTR_COLD void Vblinky::final() { Vblinky___024root___eval_final(&(vlSymsp->TOP)); } //============================================================ // Implementations of abstract methods from VerilatedModel const char* Vblinky::hierName() const { return vlSymsp->name(); } const char* Vblinky::modelName() const { return "Vblinky"; } unsigned Vblinky::threads() const { return 1; } void Vblinky::prepareClone() const { contextp()->prepareClone(); } void Vblinky::atClone() const { contextp()->threadPoolpOnClone(); }