mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
kernel: big fat patch to use more ID::*, otherwise ID(*)
This commit is contained in:
parent
2d86563bb2
commit
956ecd48f7
152 changed files with 4503 additions and 4391 deletions
|
@ -99,8 +99,8 @@ struct DffinitPass : public Pass {
|
|||
pool<SigBit> used_bits;
|
||||
|
||||
for (auto wire : module->selected_wires()) {
|
||||
if (wire->attributes.count(ID(init))) {
|
||||
Const value = wire->attributes.at(ID(init));
|
||||
if (wire->attributes.count(ID::init)) {
|
||||
Const value = wire->attributes.at(ID::init);
|
||||
for (int i = 0; i < min(GetSize(value), GetSize(wire)); i++)
|
||||
if (value[i] != State::Sx)
|
||||
init_bits[sigmap(SigBit(wire, i))] = value[i];
|
||||
|
@ -161,8 +161,8 @@ struct DffinitPass : public Pass {
|
|||
}
|
||||
|
||||
for (auto wire : module->selected_wires())
|
||||
if (wire->attributes.count(ID(init))) {
|
||||
Const &value = wire->attributes.at(ID(init));
|
||||
if (wire->attributes.count(ID::init)) {
|
||||
Const &value = wire->attributes.at(ID::init);
|
||||
bool do_cleanup = true;
|
||||
for (int i = 0; i < min(GetSize(value), GetSize(wire)); i++) {
|
||||
SigBit bit = sigmap(SigBit(wire, i));
|
||||
|
@ -173,7 +173,7 @@ struct DffinitPass : public Pass {
|
|||
}
|
||||
if (do_cleanup) {
|
||||
log("Removing init attribute from wire %s.%s.\n", log_id(module), log_id(wire));
|
||||
wire->attributes.erase(ID(init));
|
||||
wire->attributes.erase(ID::init);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue