for (auto n : global_decls)
(*it)->children.push_back(n->clone());
- for (auto n : design->packages){
+ for (auto n : design->verilog_packages){
for (auto o : n->children) {
AstNode *cloned_node = o->clone();
cloned_node->str = n->str + std::string("::") + cloned_node->str.substr(1);
design->add(process_module(*it, defer));
}
else if ((*it)->type == AST_PACKAGE){
- design->packages.push_back((*it)->clone());
+ design->verilog_packages.push_back((*it)->clone());
}
else
global_decls.push_back(*it);
{
for (auto it = modules_.begin(); it != modules_.end(); ++it)
delete it->second;
- for (auto n : packages)
+ for (auto n : verilog_packages)
delete n;
}
*/
#include "kernel/yosys.h"
-#include "frontends/ast/ast.h"
#ifndef RTLIL_H
#define RTLIL_H
int refcount_modules_;
dict<RTLIL::IdString, RTLIL::Module*> modules_;
- std::vector<AST::AstNode*> packages;
+ std::vector<AST::AstNode*> verilog_packages;
std::vector<RTLIL::Selection> selection_stack;
dict<RTLIL::IdString, RTLIL::Selection> selection_vars;