aboutsummaryrefslogtreecommitdiffstats
path: root/passes/sat/expose.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-15 22:56:32 +0200
committerGitHub <noreply@github.com>2019-08-15 22:56:32 +0200
commitd16178f233c6f89fe591d347508f71995b84ec82 (patch)
tree0c41cbe0ee18d5af63e5d8ff4736d85e1c642fb5 /passes/sat/expose.cc
parentd8a2aaa46379df7a07f4b776b7f9981b04999215 (diff)
parent6cd8cace0c1d2a9f7b1f1cd56a223c38a5ea799a (diff)
downloadyosys-d16178f233c6f89fe591d347508f71995b84ec82.tar.gz
yosys-d16178f233c6f89fe591d347508f71995b84ec82.tar.bz2
yosys-d16178f233c6f89fe591d347508f71995b84ec82.zip
Merge pull request #1299 from YosysHQ/eddie/cleanup2
More cleanup, more use of ID() inside passes/techmap
Diffstat (limited to 'passes/sat/expose.cc')
-rw-r--r--passes/sat/expose.cc2
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();