mirror of https://github.com/YosysHQ/yosys.git
ecp5: ecp5_gsr to skip cells that don't have GSR parameter again
This commit is contained in:
parent
988d47af85
commit
51ae0f4e20
|
@ -81,7 +81,7 @@ struct Ecp5GsrPass : public Pass {
|
|||
|
||||
for (auto cell : module->selected_cells())
|
||||
{
|
||||
if (cell->getParam(ID(GSR)).decode_string() != "AUTO")
|
||||
if (!cell->hasParam(ID(GSR)) || cell->getParam(ID(GSR)).decode_string() != "AUTO")
|
||||
continue;
|
||||
|
||||
bool gsren = found_gsr;
|
||||
|
|
Loading…
Reference in New Issue