mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 18:06:07 +02:00
Fix "cloning" error with -y/--top-module, bug76.
This commit is contained in:
@@ -50,20 +50,6 @@ void V3LinkLevel::modSortByLevel() {
|
||||
// Calculate levels again in case we added modules
|
||||
UINFO(2,"modSortByLevel()\n");
|
||||
|
||||
if (v3Global.opt.topModule()!="") {
|
||||
bool hit = false;
|
||||
for (AstModule* nodep = v3Global.rootp()->modulesp(); nodep; nodep=nodep->nextp()->castModule()) {
|
||||
if (nodep->name() == v3Global.opt.topModule()) {
|
||||
hit = true;
|
||||
} else {
|
||||
nodep->level(3);
|
||||
}
|
||||
}
|
||||
if (!hit) {
|
||||
v3error("Specified --top-module '"<<v3Global.opt.topModule()<<"' was not found in design.");
|
||||
}
|
||||
}
|
||||
|
||||
// level() was computed for us in V3LinkCells
|
||||
|
||||
vector<AstModule*> vec;
|
||||
|
||||
Reference in New Issue
Block a user