Internal: V3Order should only use user4 for short period to support future clock gating
This commit is contained in:
parent
9d856ec1bf
commit
de61015e08
|
|
@ -249,7 +249,7 @@ private:
|
||||||
AstUser1InUse m_inuser1;
|
AstUser1InUse m_inuser1;
|
||||||
AstUser2InUse m_inuser2;
|
AstUser2InUse m_inuser2;
|
||||||
AstUser3InUse m_inuser3;
|
AstUser3InUse m_inuser3;
|
||||||
AstUser4InUse m_inuser4;
|
//AstUser4InUse m_inuser4; // Used only when building tree, so below
|
||||||
|
|
||||||
//int debug() { return 9; }
|
//int debug() { return 9; }
|
||||||
|
|
||||||
|
|
@ -415,13 +415,16 @@ private:
|
||||||
|
|
||||||
// VISITORS
|
// VISITORS
|
||||||
virtual void visit(AstNetlist* nodep, AstNUser*) {
|
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; }
|
if (m_topScopep) { process(); m_topScopep=NULL; }
|
||||||
}
|
}
|
||||||
virtual void visit(AstTopScope* nodep, AstNUser*) {
|
virtual void visit(AstTopScope* nodep, AstNUser*) {
|
||||||
// Process the last thing we're finishing
|
// 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");
|
UINFO(2," Loading tree...\n");
|
||||||
//VV***** We reset userp()
|
//VV***** We reset userp()
|
||||||
AstNode::user1ClearTree();
|
AstNode::user1ClearTree();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue