diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-04-22 17:53:08 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-04-22 17:53:08 -0700 |
commit | 51ae0f4e20815df98204b72bd740c00f5f2a1197 (patch) | |
tree | 559ae8593ad3a6ab35b756c68606f44bcb046a2c /techlibs | |
parent | 988d47af8533a0c7728095862dbc6a7311c1f8b7 (diff) | |
download | yosys-51ae0f4e20815df98204b72bd740c00f5f2a1197.tar.gz yosys-51ae0f4e20815df98204b72bd740c00f5f2a1197.tar.bz2 yosys-51ae0f4e20815df98204b72bd740c00f5f2a1197.zip |
ecp5: ecp5_gsr to skip cells that don't have GSR parameter again
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/ecp5/ecp5_gsr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |