From 25efee2e621153d5121966aa41254958f9e5c4d5 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 28 Nov 2014 10:43:05 -0500 Subject: [PATCH] Fix loss of data types in V3Premit. From strings branch. --- src/V3Premit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Premit.cpp b/src/V3Premit.cpp index 1fe71fb89..7a103b342 100644 --- a/src/V3Premit.cpp +++ b/src/V3Premit.cpp @@ -138,7 +138,7 @@ private: //UINFO(9, " Detail stmtp="<<(m_stmtp?"Y":"N")<<" U="<<(nodep->user1()?"Y":"N")<<" IW "<<(nodep->isWide()?"Y":"N")<user1()) { // Not already done - if (nodep->isWide()) { // Else might be cell interconnect or something + if (nodep->isWide()) { if (m_assignLhs) { } else if (nodep->firstAbovep() && nodep->firstAbovep()->castNodeAssign() @@ -157,7 +157,7 @@ private: AstVar* getBlockTemp(AstNode* nodep) { string newvarname = ((string)"__Vtemp"+cvtToStr(m_modp->varNumGetInc())); AstVar* varp = new AstVar (nodep->fileline(), AstVarType::STMTTEMP, newvarname, - VFlagLogicPacked(), nodep->widthMin()); + nodep->dtypep()); m_funcp->addInitsp(varp); return varp; }