aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/stat.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-08-06 04:47:55 +0200
committerClifford Wolf <clifford@clifford.at>2019-08-06 04:47:55 +0200
commit023086bd46bc828621ebb171b159efe1398aaecf (patch)
treee94e14733c13e234d5c5055082d732be26fd6d9b /passes/cmds/stat.cc
parent44a9dcbbbf47f1a6f524c6328ff775f29573a935 (diff)
downloadyosys-023086bd46bc828621ebb171b159efe1398aaecf.tar.gz
yosys-023086bd46bc828621ebb171b159efe1398aaecf.tar.bz2
yosys-023086bd46bc828621ebb171b159efe1398aaecf.zip
Add $_NMUX_, add "abc -g cmos", add proper cmos cell costs
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'passes/cmds/stat.cc')
-rw-r--r--passes/cmds/stat.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc
index 80b400e0c..89920ed55 100644
--- a/passes/cmds/stat.cc
+++ b/passes/cmds/stat.cc
@@ -241,6 +241,10 @@ struct statdata_t
tran_cnt += 6*cnum;
else if (ctype.in("$_AOI4_", "$_OAI4_"))
tran_cnt += 8*cnum;
+ else if (ctype.in("$_NMUX_"))
+ tran_cnt += 10*cnum;
+ else if (ctype.in("$_MUX_", "$_XOR_", "$_XNOR_"))
+ tran_cnt += 12*cnum;
else if (ctype.in("$_DFF_P_", "$_DFF_N_"))
tran_cnt += 16*cnum;
else