mirror of https://github.com/YosysHQ/yosys.git
Import all modules from all libraries when when needed
This commit is contained in:
parent
7c3094633d
commit
0a81c8e161
|
@ -2731,13 +2731,17 @@ std::string verific_import(Design *design, const std::map<std::string,std::strin
|
||||||
netlists = new Array(1);
|
netlists = new Array(1);
|
||||||
MapIter mi ;
|
MapIter mi ;
|
||||||
Verific::Cell *c ;
|
Verific::Cell *c ;
|
||||||
Library *l = Libset::Global()->GetLibrary("work");
|
MapIter it ;
|
||||||
FOREACH_CELL_OF_LIBRARY(l,mi,c) {
|
Library *l ;
|
||||||
MapIter ni ;
|
FOREACH_LIBRARY_OF_LIBSET(Libset::Global(),it,l) {
|
||||||
Netlist *nl;
|
if (l == Library::Primitives() || l == Library::Operators()) continue;
|
||||||
FOREACH_NETLIST_OF_CELL(c, ni, nl) {
|
FOREACH_CELL_OF_LIBRARY(l,mi,c) {
|
||||||
if (nl)
|
MapIter ni ;
|
||||||
netlists->InsertLast(nl);
|
Netlist *nl;
|
||||||
|
FOREACH_NETLIST_OF_CELL(c, ni, nl) {
|
||||||
|
if (nl)
|
||||||
|
netlists->InsertLast(nl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -3994,13 +3998,17 @@ struct VerificPass : public Pass {
|
||||||
#endif
|
#endif
|
||||||
MapIter mi ;
|
MapIter mi ;
|
||||||
Verific::Cell *c ;
|
Verific::Cell *c ;
|
||||||
Library *l = Libset::Global()->GetLibrary(work.c_str());
|
MapIter it ;
|
||||||
FOREACH_CELL_OF_LIBRARY(l,mi,c) {
|
Library *l ;
|
||||||
MapIter ni ;
|
FOREACH_LIBRARY_OF_LIBSET(Libset::Global(),it,l) {
|
||||||
Netlist *nl;
|
if (l == Library::Primitives() || l == Library::Operators()) continue;
|
||||||
FOREACH_NETLIST_OF_CELL(c, ni, nl) {
|
FOREACH_CELL_OF_LIBRARY(l,mi,c) {
|
||||||
if (nl)
|
MapIter ni ;
|
||||||
nl_todo.emplace(nl->CellBaseName(), nl);
|
Netlist *nl;
|
||||||
|
FOREACH_NETLIST_OF_CELL(c, ni, nl) {
|
||||||
|
if (nl)
|
||||||
|
nl_todo.emplace(nl->CellBaseName(), nl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue