mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Added "techmap -map %{design-name}"
This commit is contained in:
parent
397b00252d
commit
03c96f9ce7
4 changed files with 29 additions and 10 deletions
|
@ -603,9 +603,9 @@ struct ExtractPass : public Pass {
|
|||
delete map;
|
||||
log_cmd_error("Can't saved design `%s'.\n", filename.c_str()+1);
|
||||
}
|
||||
for (auto &it : saved_designs.at(filename.substr(1))->modules_)
|
||||
if (!map->modules_.count(it.first))
|
||||
map->modules_[it.first] = it.second->clone();
|
||||
for (auto mod : saved_designs.at(filename.substr(1))->modules())
|
||||
if (!map->has(mod->name))
|
||||
map->add(mod->clone());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue