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 /passes/pmgen/xilinx_srl.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 'passes/pmgen/xilinx_srl.cc')
-rw-r--r-- | passes/pmgen/xilinx_srl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/pmgen/xilinx_srl.cc b/passes/pmgen/xilinx_srl.cc index 24b525b93..b99653fb3 100644 --- a/passes/pmgen/xilinx_srl.cc +++ b/passes/pmgen/xilinx_srl.cc @@ -48,7 +48,7 @@ void run_fixed(xilinx_srl_pm &pm) initval.append(State::Sx); } else if (cell->type.in(ID(FDRE), ID(FDRE_1))) { - if (cell->parameters.at(ID::INIT, State::S0).as_bool()) + if (cell->getParam(ID::INIT).as_bool()) initval.append(State::S1); else initval.append(State::S0); @@ -71,7 +71,7 @@ void run_fixed(xilinx_srl_pm &pm) else if (first_cell->type.in(ID($_DFF_N_), ID($_DFFE_NN_), ID($_DFFE_NP_), ID(FDRE_1))) c->setParam(ID(CLKPOL), 0); else if (first_cell->type.in(ID(FDRE))) { - if (!first_cell->parameters.at(ID(IS_C_INVERTED), State::S0).as_bool()) + if (!first_cell->getParam(ID(IS_C_INVERTED)).as_bool()) c->setParam(ID(CLKPOL), 1); else c->setParam(ID(CLKPOL), 0); |