mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 01:53:53 +02:00
equiv_make: don't copy $input_port
This commit is contained in:
@@ -115,6 +115,8 @@ struct EquivMakeWorker
|
||||
if ((it->name.isPublic() || inames) && blacklist_names.count(it->name) == 0)
|
||||
cell_names.insert(it->name);
|
||||
gold_clone->rename(it, it->name.str() + "_gold");
|
||||
if (it->type == ID($input_port))
|
||||
gold_clone->remove(it);
|
||||
}
|
||||
|
||||
for (auto it : gate_clone->wires().to_vector()) {
|
||||
@@ -127,6 +129,8 @@ struct EquivMakeWorker
|
||||
if ((it->name.isPublic() || inames) && blacklist_names.count(it->name) == 0)
|
||||
cell_names.insert(it->name);
|
||||
gate_clone->rename(it, it->name.str() + "_gate");
|
||||
if (it->type == ID($input_port))
|
||||
gate_clone->remove(it);
|
||||
}
|
||||
|
||||
gold_clone->cloneInto(equiv_mod);
|
||||
@@ -514,6 +518,7 @@ struct EquivMakePass : public Pass {
|
||||
|
||||
worker.equiv_mod = design->addModule(RTLIL::escape_id(args[argidx+2]));
|
||||
worker.run();
|
||||
Pass::call(design, "dump");
|
||||
}
|
||||
} EquivMakePass;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user