From: Eddie Hung Date: Thu, 23 Apr 2020 00:53:08 +0000 (-0700) Subject: ecp5: ecp5_gsr to skip cells that don't have GSR parameter again X-Git-Tag: working-ls180~594^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51ae0f4e20815df98204b72bd740c00f5f2a1197;p=yosys.git ecp5: ecp5_gsr to skip cells that don't have GSR parameter again --- diff --git a/techlibs/ecp5/ecp5_gsr.cc b/techlibs/ecp5/ecp5_gsr.cc index 1c69e1d79..3d3f8e1c1 100644 --- a/techlibs/ecp5/ecp5_gsr.cc +++ b/techlibs/ecp5/ecp5_gsr.cc @@ -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;