Spaces:
Sleeping
Sleeping
File size: 8,594 Bytes
adceaef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See Vtop.h for the primary calling header
#include "Vtop__pch.h"
#include "Vtop___024root.h"
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);
}
}
extern const VlUnpacked<CData/*2:0*/, 16> Vtop__ConstPool__TABLE_h2cd11e3b_0;
extern const VlUnpacked<CData/*1:0*/, 16> Vtop__ConstPool__TABLE_hee47b28f_0;
extern const VlUnpacked<CData/*0:0*/, 16> Vtop__ConstPool__TABLE_hbcbc6965_0;
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();
// Init
CData/*3:0*/ __Vtableidx1;
__Vtableidx1 = 0;
// Body
vlSelfRef.moore_ol__DOT__inp = vlSelfRef.inp;
vlSelfRef.moore_ol__DOT__clk = vlSelfRef.clk;
vlSelfRef.moore_ol__DOT__reset = vlSelfRef.reset;
__Vtableidx1 = (((IData)(vlSelfRef.inp) << 3U)
| (IData)(vlSelfRef.moore_ol__DOT__present_state));
vlSelfRef.moore_ol__DOT__next_state = Vtop__ConstPool__TABLE_h2cd11e3b_0
[__Vtableidx1];
if ((2U & Vtop__ConstPool__TABLE_hee47b28f_0[__Vtableidx1])) {
vlSelfRef.moore_ol__DOT__out = Vtop__ConstPool__TABLE_hbcbc6965_0
[__Vtableidx1];
}
vlSelfRef.out = vlSelfRef.moore_ol__DOT__out;
}
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___nba_sequent__TOP__0(Vtop___024root* vlSelf);
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();
// Body
if ((3ULL & vlSelfRef.__VnbaTriggered.word(0U))) {
Vtop___024root___nba_sequent__TOP__0(vlSelf);
}
}
VL_INLINE_OPT void Vtop___024root___nba_sequent__TOP__0(Vtop___024root* vlSelf) {
VL_DEBUG_IF(VL_DBG_MSGF("+ Vtop___024root___nba_sequent__TOP__0\n"); );
Vtop__Syms* const __restrict vlSymsp VL_ATTR_UNUSED = vlSelf->vlSymsp;
auto& vlSelfRef = std::ref(*vlSelf).get();
// Init
CData/*3:0*/ __Vtableidx1;
__Vtableidx1 = 0;
// Body
vlSelfRef.moore_ol__DOT__present_state = ((IData)(vlSelfRef.reset)
? 0U
: (IData)(vlSelfRef.moore_ol__DOT__next_state));
__Vtableidx1 = (((IData)(vlSelfRef.inp) << 3U)
| (IData)(vlSelfRef.moore_ol__DOT__present_state));
vlSelfRef.moore_ol__DOT__next_state = Vtop__ConstPool__TABLE_h2cd11e3b_0
[__Vtableidx1];
if ((2U & Vtop__ConstPool__TABLE_hee47b28f_0[__Vtableidx1])) {
vlSelfRef.moore_ol__DOT__out = Vtop__ConstPool__TABLE_hbcbc6965_0
[__Vtableidx1];
}
vlSelfRef.out = vlSelfRef.moore_ol__DOT__out;
}
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<2> __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);
}
#ifdef VL_DEBUG
VL_ATTR_COLD void Vtop___024root___dump_triggers__ico(Vtop___024root* vlSelf);
#endif // VL_DEBUG
#ifdef VL_DEBUG
VL_ATTR_COLD void Vtop___024root___dump_triggers__nba(Vtop___024root* vlSelf);
#endif // VL_DEBUG
#ifdef VL_DEBUG
VL_ATTR_COLD void Vtop___024root___dump_triggers__act(Vtop___024root* vlSelf);
#endif // VL_DEBUG
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)))) {
#ifdef VL_DEBUG
Vtop___024root___dump_triggers__ico(vlSelf);
#endif
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)))) {
#ifdef VL_DEBUG
Vtop___024root___dump_triggers__nba(vlSelf);
#endif
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)))) {
#ifdef VL_DEBUG
Vtop___024root___dump_triggers__act(vlSelf);
#endif
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;
}
}
}
#ifdef VL_DEBUG
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.inp & 0xfeU)))) {
Verilated::overWidthError("inp");}
if (VL_UNLIKELY(((vlSelfRef.clk & 0xfeU)))) {
Verilated::overWidthError("clk");}
if (VL_UNLIKELY(((vlSelfRef.reset & 0xfeU)))) {
Verilated::overWidthError("reset");}
}
#endif // VL_DEBUG
|