mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-29 20:59:03 +00:00
Update techlibs to avoid bits()
This commit is contained in:
parent
6dc9a8bacf
commit
09b493cfcd
8 changed files with 22 additions and 26 deletions
|
@ -82,7 +82,7 @@ struct FoldInvWorker {
|
|||
Const result(State::S0, GetSize(lut));
|
||||
for (int i = 0; i < GetSize(lut); i++) {
|
||||
int j = i ^ (1 << bit);
|
||||
result.bits()[j] = lut[i];
|
||||
result.set(j, lut[i]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ struct FoldInvWorker {
|
|||
{
|
||||
Const result(State::S0, GetSize(lut));
|
||||
for (int i = 0; i < GetSize(lut); i++)
|
||||
result.bits()[i] = (lut[i] == State::S1) ? State::S0 : State::S1;
|
||||
result.set(i, (lut[i] == State::S1) ? State::S0 : State::S1);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue