mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
Added "attrmap" command
This commit is contained in:
parent
39da8eddae
commit
b0aab4e304
3 changed files with 253 additions and 0 deletions
|
@ -119,6 +119,8 @@ struct AttrmvcpPass : public Pass {
|
|||
for (auto bit : sigmap(wire))
|
||||
if (net2cells.count(bit))
|
||||
for (auto cell : net2cells.at(bit)) {
|
||||
log("Moving attribute %s=%s from %s.%s to %s.%s.\n", log_id(attr.first), log_const(attr.second),
|
||||
log_id(module), log_id(wire), log_id(module), log_id(cell));
|
||||
cell->attributes[attr.first] = attr.second;
|
||||
did_something = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue