mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
rtlil: represent Const strings as std::string
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user