From de61015e0844e96c6482d8fa5ff958392d61af90 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 3 Dec 2008 10:27:56 -0500 Subject: [PATCH] Internal: V3Order should only use user4 for short period to support future clock gating --- src/V3Order.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/V3Order.cpp b/src/V3Order.cpp index e4e7b98d7..4c8e1123a 100644 --- a/src/V3Order.cpp +++ b/src/V3Order.cpp @@ -249,7 +249,7 @@ private: AstUser1InUse m_inuser1; AstUser2InUse m_inuser2; AstUser3InUse m_inuser3; - AstUser4InUse m_inuser4; + //AstUser4InUse m_inuser4; // Used only when building tree, so below //int debug() { return 9; } @@ -415,13 +415,16 @@ private: // VISITORS virtual void visit(AstNetlist* nodep, AstNUser*) { - nodep->iterateChildren(*this); - // We're finished, complete any unfinished topscopes + { + AstUser4InUse m_inuser4; // Used only when building tree, so below + nodep->iterateChildren(*this); + } + // We're finished, complete the topscopes if (m_topScopep) { process(); m_topScopep=NULL; } } virtual void visit(AstTopScope* nodep, AstNUser*) { // Process the last thing we're finishing - if (m_topScopep) { process(); m_topScopep=NULL; } + if (m_topScopep) nodep->v3fatalSrc("Only one topscope supported"); UINFO(2," Loading tree...\n"); //VV***** We reset userp() AstNode::user1ClearTree();