mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Merge pull request #4951 from YosysHQ/emil/fix-dft_tag-autoNot
dft_tag: fix autoNot not notting
This commit is contained in:
commit
9893ed59b7
|
@ -883,7 +883,7 @@ struct DftTagWorker {
|
||||||
{
|
{
|
||||||
if (sig_a.is_fully_const()) {
|
if (sig_a.is_fully_const()) {
|
||||||
auto const_val = sig_a.as_const();
|
auto const_val = sig_a.as_const();
|
||||||
for (auto bit : const_val)
|
for (State& bit : const_val.bits())
|
||||||
bit = bit == State::S0 ? State::S1 : bit == State::S1 ? State::S0 : bit;
|
bit = bit == State::S0 ? State::S1 : bit == State::S1 ? State::S0 : bit;
|
||||||
return const_val;
|
return const_val;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue