diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-04-22 12:02:30 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-04-22 12:02:30 -0700 |
commit | 7f33a0294b7e6a299033cb4ee19bd86317737c08 (patch) | |
tree | ca0b9b1fcd28775c828c7be8dda1aec3d2ca97f7 /techlibs/ecp5/ecp5_gsr.cc | |
parent | db27f2f3786fa867bf7524aff6a5b72c89932620 (diff) | |
download | yosys-7f33a0294b7e6a299033cb4ee19bd86317737c08.tar.gz yosys-7f33a0294b7e6a299033cb4ee19bd86317737c08.tar.bz2 yosys-7f33a0294b7e6a299033cb4ee19bd86317737c08.zip |
Cleanup use of hard-coded default parameters in light of #1945
Diffstat (limited to 'techlibs/ecp5/ecp5_gsr.cc')
-rw-r--r-- | techlibs/ecp5/ecp5_gsr.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/techlibs/ecp5/ecp5_gsr.cc b/techlibs/ecp5/ecp5_gsr.cc index d1503f71f..1c69e1d79 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->hasParam(ID(GSR)) || cell->getParam(ID(GSR)).decode_string() != "AUTO") + if (cell->getParam(ID(GSR)).decode_string() != "AUTO") continue; bool gsren = found_gsr; @@ -114,9 +114,9 @@ struct Ecp5GsrPass : public Pass { { if (cell->type != ID(TRELLIS_FF)) continue; - if (!cell->hasParam(ID(GSR)) || cell->getParam(ID(GSR)).decode_string() != "ENABLED") + if (cell->getParam(ID(GSR)).decode_string() != "ENABLED") continue; - if (!cell->hasParam(ID(SRMODE)) || cell->getParam(ID(SRMODE)).decode_string() != "ASYNC") + if (cell->getParam(ID(SRMODE)).decode_string() != "ASYNC") continue; SigSpec sig_lsr = cell->getPort(ID(LSR)); if (GetSize(sig_lsr) < 1) |