3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-24 13:18:56 +00:00

Added "attrmap" command

This commit is contained in:
Clifford Wolf 2016-08-09 19:56:55 +02:00
parent 39da8eddae
commit b0aab4e304
3 changed files with 253 additions and 0 deletions

View file

@ -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;
}