3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-03 09:50:24 +00:00

ice40_opt bugfix

This commit is contained in:
Clifford Wolf 2015-04-27 11:36:13 +02:00
parent 310fde197e
commit 9d067fecea
2 changed files with 4 additions and 6 deletions

View file

@ -57,11 +57,9 @@ static void run_ice40_opts(Module *module)
if (count_zeros >= 2)
replacement_output = State::S0;
if (count_ones >= 2)
else if (count_ones >= 2)
replacement_output = State::S1;
if (GetSize(non_const_inputs) == 1)
else if (GetSize(non_const_inputs) == 1)
replacement_output = non_const_inputs;
if (GetSize(replacement_output)) {