Spaces:
Sleeping
Sleeping
Download tasks/task1/sim_build/Vtop___024root__DepSet_heccd7ead__0.cpp from NeerjaK/RTL-Openenv: direct link, hf CLI and curl.
- Browser
- Download file 6.75 kB
-
https://huggingface.co/spaces/NeerjaK/RTL-Openenv/resolve/main/tasks/task1/sim_build/Vtop___024root__DepSet_heccd7ead__0.cpp
- Command line
-
hf download hf://spaces/NeerjaK/RTL-Openenv/tasks/task1/sim_build/Vtop___024root__DepSet_heccd7ead__0.cpp
-
curl -L -o Vtop___024root__DepSet_heccd7ead__0.cpp https://huggingface.co/spaces/NeerjaK/RTL-Openenv/resolve/main/tasks/task1/sim_build/Vtop___024root__DepSet_heccd7ead__0.cpp
6.75 kB
| // Verilated -*- C++ -*- | |
| // DESCRIPTION: Verilator output: Design implementation internals | |
| // See Vtop.h for the primary calling header | |
| void Vtop___024root___ico_sequent__TOP__0(Vtop___024root* vlSelf); | |
| void Vtop___024root___eval_ico(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_ico\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| // Body | |
| if ((1ULL & vlSelfRef.__VicoTriggered.word(0U))) { | |
| Vtop___024root___ico_sequent__TOP__0(vlSelf); | |
| } | |
| } | |
| VL_INLINE_OPT void Vtop___024root___ico_sequent__TOP__0(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___ico_sequent__TOP__0\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| // Body | |
| vlSelfRef.half_adder__DOT__a = vlSelfRef.a; | |
| vlSelfRef.half_adder__DOT__b = vlSelfRef.b; | |
| vlSelfRef.carry = ((IData)(vlSelfRef.a) & (IData)(vlSelfRef.b)); | |
| vlSelfRef.half_adder__DOT__sum = ((IData)(vlSelfRef.a) | |
| ^ (IData)(vlSelfRef.b)); | |
| vlSelfRef.half_adder__DOT__carry = vlSelfRef.carry; | |
| vlSelfRef.sum = vlSelfRef.half_adder__DOT__sum; | |
| } | |
| void Vtop___024root___eval_triggers__ico(Vtop___024root* vlSelf); | |
| bool Vtop___024root___eval_phase__ico(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_phase__ico\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| // Init | |
| CData/*0:0*/ __VicoExecute; | |
| // Body | |
| Vtop___024root___eval_triggers__ico(vlSelf); | |
| __VicoExecute = vlSelfRef.__VicoTriggered.any(); | |
| if (__VicoExecute) { | |
| Vtop___024root___eval_ico(vlSelf); | |
| } | |
| return (__VicoExecute); | |
| } | |
| void Vtop___024root___eval_act(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_act\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| } | |
| void Vtop___024root___eval_nba(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_nba\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| } | |
| void Vtop___024root___eval_triggers__act(Vtop___024root* vlSelf); | |
| bool Vtop___024root___eval_phase__act(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_phase__act\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| // Init | |
| VlTriggerVec<0> __VpreTriggered; | |
| CData/*0:0*/ __VactExecute; | |
| // Body | |
| Vtop___024root___eval_triggers__act(vlSelf); | |
| __VactExecute = vlSelfRef.__VactTriggered.any(); | |
| if (__VactExecute) { | |
| __VpreTriggered.andNot(vlSelfRef.__VactTriggered, vlSelfRef.__VnbaTriggered); | |
| vlSelfRef.__VnbaTriggered.thisOr(vlSelfRef.__VactTriggered); | |
| Vtop___024root___eval_act(vlSelf); | |
| } | |
| return (__VactExecute); | |
| } | |
| bool Vtop___024root___eval_phase__nba(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_phase__nba\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| // Init | |
| CData/*0:0*/ __VnbaExecute; | |
| // Body | |
| __VnbaExecute = vlSelfRef.__VnbaTriggered.any(); | |
| if (__VnbaExecute) { | |
| Vtop___024root___eval_nba(vlSelf); | |
| vlSelfRef.__VnbaTriggered.clear(); | |
| } | |
| return (__VnbaExecute); | |
| } | |
| VL_ATTR_COLD void Vtop___024root___dump_triggers__ico(Vtop___024root* vlSelf); | |
| VL_ATTR_COLD void Vtop___024root___dump_triggers__nba(Vtop___024root* vlSelf); | |
| VL_ATTR_COLD void Vtop___024root___dump_triggers__act(Vtop___024root* vlSelf); | |
| void Vtop___024root___eval(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| // Init | |
| IData/*31:0*/ __VicoIterCount; | |
| CData/*0:0*/ __VicoContinue; | |
| IData/*31:0*/ __VnbaIterCount; | |
| CData/*0:0*/ __VnbaContinue; | |
| // Body | |
| __VicoIterCount = 0U; | |
| vlSelfRef.__VicoFirstIteration = 1U; | |
| __VicoContinue = 1U; | |
| while (__VicoContinue) { | |
| if (VL_UNLIKELY(((0x64U < __VicoIterCount)))) { | |
| Vtop___024root___dump_triggers__ico(vlSelf); | |
| VL_FATAL_MT("design_active.v", 1, "", "Input combinational region did not converge."); | |
| } | |
| __VicoIterCount = ((IData)(1U) + __VicoIterCount); | |
| __VicoContinue = 0U; | |
| if (Vtop___024root___eval_phase__ico(vlSelf)) { | |
| __VicoContinue = 1U; | |
| } | |
| vlSelfRef.__VicoFirstIteration = 0U; | |
| } | |
| __VnbaIterCount = 0U; | |
| __VnbaContinue = 1U; | |
| while (__VnbaContinue) { | |
| if (VL_UNLIKELY(((0x64U < __VnbaIterCount)))) { | |
| Vtop___024root___dump_triggers__nba(vlSelf); | |
| VL_FATAL_MT("design_active.v", 1, "", "NBA region did not converge."); | |
| } | |
| __VnbaIterCount = ((IData)(1U) + __VnbaIterCount); | |
| __VnbaContinue = 0U; | |
| vlSelfRef.__VactIterCount = 0U; | |
| vlSelfRef.__VactContinue = 1U; | |
| while (vlSelfRef.__VactContinue) { | |
| if (VL_UNLIKELY(((0x64U < vlSelfRef.__VactIterCount)))) { | |
| Vtop___024root___dump_triggers__act(vlSelf); | |
| VL_FATAL_MT("design_active.v", 1, "", "Active region did not converge."); | |
| } | |
| vlSelfRef.__VactIterCount = ((IData)(1U) | |
| + vlSelfRef.__VactIterCount); | |
| vlSelfRef.__VactContinue = 0U; | |
| if (Vtop___024root___eval_phase__act(vlSelf)) { | |
| vlSelfRef.__VactContinue = 1U; | |
| } | |
| } | |
| if (Vtop___024root___eval_phase__nba(vlSelf)) { | |
| __VnbaContinue = 1U; | |
| } | |
| } | |
| } | |
| void Vtop___024root___eval_debug_assertions(Vtop___024root* vlSelf) { | |
| VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___eval_debug_assertions\n"); ); | |
| Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp; | |
| auto& vlSelfRef = std::ref(*vlSelf).get(); | |
| // Body | |
| if (VL_UNLIKELY(((vlSelfRef.a & 0xfeU)))) { | |
| Verilated::overWidthError("a");} | |
| if (VL_UNLIKELY(((vlSelfRef.b & 0xfeU)))) { | |
| Verilated::overWidthError("b");} | |
| } | |