aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2020-04-08 21:42:50 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2020-06-23 15:40:02 +0200
commitb0bee396a8edec360616b68e97a3bd373b700b26 (patch)
treea7be69423be3e9879c049bb11c2b26f56882ba4c /passes/cmds
parent8c4cb1885b2cb6b7b26d7b9b7113e174c0eefffd (diff)
downloadyosys-b0bee396a8edec360616b68e97a3bd373b700b26.tar.gz
yosys-b0bee396a8edec360616b68e97a3bd373b700b26.tar.bz2
yosys-b0bee396a8edec360616b68e97a3bd373b700b26.zip
Add new builtin FF types
The new types include: - FFs with async reset and enable (`$adffe`, `$_DFFE_[NP][NP][01][NP]_`) - FFs with sync reset (`$sdff`, `$_SDFF_[NP][NP][01]_`) - FFs with sync reset and enable, reset priority (`$sdffs`, `$_SDFFE_[NP][NP][01][NP]_`) - FFs with sync reset and enable, enable priority (`$sdffce`, `$_SDFFCE_[NP][NP][01][NP]_`) - FFs with async reset, set, and enable (`$dffsre`, `$_DFFSRE_[NP][NP][NP][NP]_`) - latches with reset or set (`$adlatch`, `$_DLATCH_[NP][NP][01]_`) The new FF types are not actually used anywhere yet (this is left for future commits).
Diffstat (limited to 'passes/cmds')
-rw-r--r--passes/cmds/stat.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/passes/cmds/stat.cc b/passes/cmds/stat.cc
index 6f2c2243e..ed51fdc24 100644
--- a/passes/cmds/stat.cc
+++ b/passes/cmds/stat.cc
@@ -117,7 +117,10 @@ struct statdata_t
}
else if (cell_type.in(ID($mux), ID($pmux)))
cell_type = stringf("%s_%d", cell_type.c_str(), GetSize(cell->getPort(ID::Y)));
- else if (cell_type.in(ID($sr), ID($dff), ID($dffsr), ID($adff), ID($dlatch), ID($dlatchsr)))
+ else if (cell_type.in(
+ ID($sr), ID($ff), ID($dff), ID($dffe), ID($dffsr), ID($dffsre),
+ ID($adff), ID($adffe), ID($sdff), ID($sdffe), ID($sdffce),
+ ID($dlatch), ID($adlatch), ID($dlatchsr)))
cell_type = stringf("%s_%d", cell_type.c_str(), GetSize(cell->getPort(ID::Q)));
}