diff --git a/include/verilated_funcs.h b/include/verilated_funcs.h index 2250070db..c971c11ac 100644 --- a/include/verilated_funcs.h +++ b/include/verilated_funcs.h @@ -237,8 +237,7 @@ static inline std::string VL_CVT_N_CSTR(const char* lhsp) VL_PURE { template static inline VlQueue VL_CVT_UNPACK_TO_Q(const VlUnpacked& q) VL_PURE { VlQueue ret; - for (size_t i = 0; i < N_Depth; ++i) - ret.push_back(q[i]); + for (size_t i = 0; i < N_Depth; ++i) ret.push_back(q[i]); return ret; } diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 36c95a409..521f60169 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -7075,11 +7075,12 @@ class WidthVisitor final : public VNVisitor { nodep->v3error(side << " expects a " << lhsClassRefp->prettyTypeName() << ", got " << rhsDtypep->prettyTypeName()); } - if (VN_IS(lhsDTypep->skipRefp(), DynArrayDType) && VN_IS(rhsp->dtypep()->skipRefp(), UnpackArrayDType)){ + if (VN_IS(lhsDTypep->skipRefp(), DynArrayDType) + && VN_IS(rhsp->dtypep()->skipRefp(), UnpackArrayDType)) { VNRelinker relinker; rhsp->unlinkFrBack(&relinker); - relinker.relink(new AstCvtUnpackedToQueue{ - rhsp->fileline(), VN_AS(rhsp, NodeExpr), lhsDTypep}); + relinker.relink( + new AstCvtUnpackedToQueue{rhsp->fileline(), VN_AS(rhsp, NodeExpr), lhsDTypep}); } } static bool similarDTypeRecurse(const AstNodeDType* const node1p, diff --git a/test_regress/t/t_unpacked_to_queue.py b/test_regress/t/t_unpacked_to_queue.py old mode 100644 new mode 100755