From 97633f7bed3a45859af395370690c3a8712ca7d5 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 9 Feb 2014 09:19:05 -0500 Subject: [PATCH] Fix array bound checks on real variables. --- Changes | 2 ++ src/V3Unknown.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index fd82726a6..fc0a6cabb 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks! *** Support case inside, bug708. [Jan Egil Ruud] +**** Fix array bound checks on real variables. + * Verilator 3.855 2014-01-18 diff --git a/src/V3Unknown.cpp b/src/V3Unknown.cpp index 49033f7f4..f44523f74 100644 --- a/src/V3Unknown.cpp +++ b/src/V3Unknown.cpp @@ -126,7 +126,7 @@ private: else { string name = ((string)"__Vlvbound"+cvtToStr(m_modp->varNumGetInc())); AstVar* varp = new AstVar(fl, AstVarType::MODULETEMP, name, - VFlagLogicPacked(), prep->width()); + prep->dtypep()); m_modp->addStmtp(varp); AstNode* abovep = prep->backp(); // Grab above point before lose it w/ next replace