mirror of
https://github.com/verilator/verilator.git
synced 2026-09-01 02:16:47 +02:00
@@ -2703,6 +2703,18 @@ AstVarScope* AstNetlist::stlFirstIterationp() {
|
||||
AstVarScope* const vscp = m_stlFirstIterationp;
|
||||
return vscp;
|
||||
}
|
||||
AstFuncRef* AstNetlist::stdPackageProcessSelfp(FileLine* flp) const {
|
||||
UASSERT(v3Global.rootp()->stdPackageClassp(), "'std' should be imported");
|
||||
AstFunc* selfp = nullptr;
|
||||
for (AstNode* itemp = v3Global.rootp()->stdPackageClassp()->stmtsp(); itemp;
|
||||
itemp = itemp->nextp()) {
|
||||
if (itemp->name() == "self") selfp = VN_AS(itemp, Func);
|
||||
}
|
||||
UASSERT(selfp, "'std::process::self' should be found");
|
||||
AstFuncRef* const processSelfp = new AstFuncRef{flp, selfp};
|
||||
processSelfp->classOrPackagep(v3Global.rootp()->stdPackageClassp());
|
||||
return processSelfp;
|
||||
}
|
||||
void AstNodeModule::dump(std::ostream& str) const {
|
||||
this->AstNode::dump(str);
|
||||
str << " L" << level();
|
||||
|
||||
Reference in New Issue
Block a user