aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/simplemap.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-06 16:18:18 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-06 16:18:18 -0700
commit3486235338faa1377bb4e1a8981a45b4ee6edfa9 (patch)
tree3b40a647ccbfd39e15baa824ae67c1281d100e86 /passes/techmap/simplemap.cc
parent43081337fa4a85cd4a1a007576eaf945816bd576 (diff)
downloadyosys-3486235338faa1377bb4e1a8981a45b4ee6edfa9.tar.gz
yosys-3486235338faa1377bb4e1a8981a45b4ee6edfa9.tar.bz2
yosys-3486235338faa1377bb4e1a8981a45b4ee6edfa9.zip
Make liberal use of IdString.in()
Diffstat (limited to 'passes/techmap/simplemap.cc')
-rw-r--r--passes/techmap/simplemap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/techmap/simplemap.cc b/passes/techmap/simplemap.cc
index f3da80c66..6c70ffd4f 100644
--- a/passes/techmap/simplemap.cc
+++ b/passes/techmap/simplemap.cc
@@ -245,7 +245,7 @@ void simplemap_eqne(RTLIL::Module *module, RTLIL::Cell *cell)
RTLIL::SigSpec sig_b = cell->getPort("\\B");
RTLIL::SigSpec sig_y = cell->getPort("\\Y");
bool is_signed = cell->parameters.at("\\A_SIGNED").as_bool();
- bool is_ne = cell->type == "$ne" || cell->type == "$nex";
+ bool is_ne = cell->type.in("$ne", "$nex");
RTLIL::SigSpec xor_out = module->addWire(NEW_ID, max(GetSize(sig_a), GetSize(sig_b)));
RTLIL::Cell *xor_cell = module->addXor(NEW_ID, sig_a, sig_b, xor_out, is_signed);