ecp5: ecp5_gsr to skip cells that don't have GSR parameter again

This commit is contained in:
Eddie Hung 2020-04-22 17:53:08 -07:00
parent 988d47af85
commit 51ae0f4e20
1 changed files with 1 additions and 1 deletions

View File

@ -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;