diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-04-22 22:12:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 22:12:41 -0700 |
commit | b700592881a2f2a87cca9776cd9bfca85781c9ec (patch) | |
tree | 559ae8593ad3a6ab35b756c68606f44bcb046a2c /techlibs/ecp5/ecp5_gsr.cc | |
parent | fa9df06c9dc5ead43645ba973e2ca8c63adfb29d (diff) | |
parent | 51ae0f4e20815df98204b72bd740c00f5f2a1197 (diff) | |
download | yosys-b700592881a2f2a87cca9776cd9bfca85781c9ec.tar.gz yosys-b700592881a2f2a87cca9776cd9bfca85781c9ec.tar.bz2 yosys-b700592881a2f2a87cca9776cd9bfca85781c9ec.zip |
Merge pull request #1984 from YosysHQ/eddie/getParam_exception
kernel: Cell::getParam() to throw exception again if not found
Diffstat (limited to 'techlibs/ecp5/ecp5_gsr.cc')
-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; |