Reconsile parser with Verilog-Perl version, to enable more SV features

This commit is contained in:
Wilson Snyder
2009-05-07 18:28:05 -04:00
parent 851b022c7a
commit 4569278c53
13 changed files with 1450 additions and 494 deletions
+1 -2
View File
@@ -1042,8 +1042,7 @@ private:
}
virtual void visit(AstAttrOf* nodep, AstNUser*) {
// Don't iterate children, don't want to loose VarRef.
if (nodep->attrType()==AstAttrType::SCOPE_TEXT) {
} else if (nodep->attrType()==AstAttrType::BITS) {
if (nodep->attrType()==AstAttrType::BITS) {
if (!nodep->fromp() || !nodep->fromp()->widthMin()) nodep->v3fatalSrc("Unsized expression");
V3Number num (nodep->fileline(), 32, nodep->fromp()->widthMin());
replaceNum(nodep, num); nodep=NULL;