mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #1264 from YosysHQ/eddie/fix_1254
opt_lut to ignore LUT cells, or those that drive bits, with (* keep *)
This commit is contained in:
commit
ac2fc3a144
|
@ -101,6 +101,12 @@ struct OptLutWorker
|
|||
{
|
||||
if (cell->type == "$lut")
|
||||
{
|
||||
if (cell->has_keep_attr())
|
||||
continue;
|
||||
SigBit lut_output = cell->getPort("\\Y");
|
||||
if (lut_output.wire->get_bool_attribute("\\keep"))
|
||||
continue;
|
||||
|
||||
int lut_width = cell->getParam("\\WIDTH").as_int();
|
||||
SigSpec lut_input = cell->getPort("\\A");
|
||||
int lut_arity = 0;
|
||||
|
|
Loading…
Reference in New Issue