mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 21:27:00 +00:00
More use of IdString::in()
This commit is contained in:
parent
d8a2aaa463
commit
4cfefae21e
7 changed files with 38 additions and 40 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue