diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-15 09:23:57 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-15 09:23:57 -0700 |
commit | 4cfefae21e872bb5a4dc13473316352da2b7a916 (patch) | |
tree | c15999e09436abf18b284eda38a958ce6e5295e1 /passes/sat | |
parent | d8a2aaa46379df7a07f4b776b7f9981b04999215 (diff) | |
download | yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.tar.gz yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.tar.bz2 yosys-4cfefae21e872bb5a4dc13473316352da2b7a916.zip |
More use of IdString::in()
Diffstat (limited to 'passes/sat')
-rw-r--r-- | passes/sat/expose.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/sat/expose.cc b/passes/sat/expose.cc index 7631d87e6..29dfc7b19 100644 --- a/passes/sat/expose.cc +++ b/passes/sat/expose.cc @@ -143,7 +143,7 @@ void create_dff_dq_map(std::map<RTLIL::IdString, dff_map_info_t> &map, RTLIL::De continue; } - if (info.cell->type == "$_DFF_N_" || info.cell->type == "$_DFF_P_") { + if (info.cell->type.in("$_DFF_N_", "$_DFF_P_")) { info.bit_clk = sigmap(info.cell->getPort("\\C")).as_bit(); info.clk_polarity = info.cell->type == "$_DFF_P_"; info.bit_d = sigmap(info.cell->getPort("\\D")).as_bit(); |