mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Refactoring {SigSpec|SigChunk}(RTLIL::Wire *wire, ..) constructor -- step 3/3
This commit is contained in:
parent
a8d3a68971
commit
ec923652e2
16 changed files with 43 additions and 51 deletions
|
@ -118,7 +118,7 @@ struct BlifDumper
|
|||
for (auto &it : inputs) {
|
||||
RTLIL::Wire *wire = it.second;
|
||||
for (int i = 0; i < wire->width; i++)
|
||||
fprintf(f, " %s", cstr(RTLIL::SigSpec::grml(wire, i)));
|
||||
fprintf(f, " %s", cstr(RTLIL::SigSpec(wire, i)));
|
||||
}
|
||||
fprintf(f, "\n");
|
||||
|
||||
|
@ -126,7 +126,7 @@ struct BlifDumper
|
|||
for (auto &it : outputs) {
|
||||
RTLIL::Wire *wire = it.second;
|
||||
for (int i = 0; i < wire->width; i++)
|
||||
fprintf(f, " %s", cstr(RTLIL::SigSpec::grml(wire, i)));
|
||||
fprintf(f, " %s", cstr(RTLIL::SigSpec(wire, i)));
|
||||
}
|
||||
fprintf(f, "\n");
|
||||
|
||||
|
|
|
@ -271,7 +271,7 @@ struct EdifBackend : public Backend {
|
|||
} else {
|
||||
fprintf(f, " (port (array %s %d) (direction %s))\n", EDIF_DEF(wire->name), wire->width, dir);
|
||||
for (int i = 0; i < wire->width; i++) {
|
||||
RTLIL::SigSpec sig = sigmap(RTLIL::SigSpec::grml(wire, i));
|
||||
RTLIL::SigSpec sig = sigmap(RTLIL::SigSpec(wire, i));
|
||||
net_join_db[sig].insert(stringf("(portRef (member %s %d))", EDIF_REF(wire->name), i));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue