mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
move attributes to wires
This commit is contained in:
parent
49765ec19e
commit
3c75a72feb
8 changed files with 555 additions and 320 deletions
|
@ -173,15 +173,10 @@ struct IopadmapPass : public Pass {
|
|||
ignore.insert(make_pair(RTLIL::escape_id(tinoutpad_celltype), RTLIL::escape_id(tinoutpad_portname4)));
|
||||
|
||||
for (auto module : design->modules())
|
||||
{
|
||||
auto it = module->attributes.find("\\iopad_external_pin");
|
||||
if (it != module->attributes.end()) {
|
||||
auto value = it->second.decode_string();
|
||||
for (auto name : split_tokens(value, ",")) {
|
||||
ignore.insert(make_pair(module->name, RTLIL::escape_id(name)));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (module->get_blackbox_attribute())
|
||||
for (auto wire : module->wires())
|
||||
if (wire->get_bool_attribute("\\iopad_external_pin"))
|
||||
ignore.insert(make_pair(module->name, wire->name));
|
||||
|
||||
for (auto module : design->selected_modules())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue