mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-17 00:32:17 +00:00
rtlil: represent Const strings as std::string
This commit is contained in:
parent
61ed9b6263
commit
785bd44da7
90 changed files with 947 additions and 643 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[j] = lut[i];
|
||||
result.bits()[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[i] = (lut[i] == State::S1) ? State::S0 : State::S1;
|
||||
result.bits()[i] = (lut[i] == State::S1) ? State::S0 : State::S1;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue