mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #720 from whitequark/master
lut2mux: handle 1-bit INIT constant in $lut cells
This commit is contained in:
commit
556341a77f
|
@ -58,7 +58,7 @@ struct OptLutWorker
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return lut_table.extract(lut_index).as_int();
|
return lut_table.extract(lut_index).as_bool();
|
||||||
}
|
}
|
||||||
|
|
||||||
void show_stats_by_arity()
|
void show_stats_by_arity()
|
||||||
|
|
|
@ -32,7 +32,7 @@ int lut2mux(Cell *cell)
|
||||||
|
|
||||||
if (GetSize(sig_a) == 1)
|
if (GetSize(sig_a) == 1)
|
||||||
{
|
{
|
||||||
cell->module->addMuxGate(NEW_ID, lut[0], lut[1], sig_a, sig_y);
|
cell->module->addMuxGate(NEW_ID, lut.extract(0)[0], lut.extract(1)[0], sig_a, sig_y);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue