aboutsummaryrefslogtreecommitdiffstats
path: root/passes/fsm
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/fsm
parent43081337fa4a85cd4a1a007576eaf945816bd576 (diff)
downloadyosys-3486235338faa1377bb4e1a8981a45b4ee6edfa9.tar.gz
yosys-3486235338faa1377bb4e1a8981a45b4ee6edfa9.tar.bz2
yosys-3486235338faa1377bb4e1a8981a45b4ee6edfa9.zip
Make liberal use of IdString.in()
Diffstat (limited to 'passes/fsm')
-rw-r--r--passes/fsm/fsm_expand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/fsm/fsm_expand.cc b/passes/fsm/fsm_expand.cc
index c34d0c15c..1610ec751 100644
--- a/passes/fsm/fsm_expand.cc
+++ b/passes/fsm/fsm_expand.cc
@@ -50,7 +50,7 @@ struct FsmExpand
if (full_mode || cell->type == "$_MUX_")
return true;
- if (cell->type == "$mux" || cell->type == "$pmux")
+ if (cell->type.in("$mux", "$pmux"))
if (cell->getPort("\\A").size() < 2)
return true;