[Flow] Disable DFFE and SDFF in no-ff Yosys scripts

This commit is contained in:
tangxifan 2021-10-30 14:34:37 -07:00
parent 978c60e75b
commit 59a622a910
1 changed files with 7 additions and 6 deletions

View File

@ -25,12 +25,12 @@ opt_clean
# demote inout ports to input or output port
# with follow-up optimizations to clean up AST
deminout
opt
opt -nodffe -nosdff
opt_expr
opt_clean
check
opt
opt -nodffe -nosdff
wreduce -keepdc
peepopt
pmuxtree
@ -58,10 +58,10 @@ chtype -set $mul t:$__soft_mul# Extract arithmetic functions
techmap
alumacc
share
opt
opt -nodffe -nosdff
fsm
# Run a quick follow-up optimization to sweep out unused nets/signals
opt -fast
opt -fast -nodffe -nosdff
# Optimize any memory cells by merging share-able ports and collecting all the ports belonging to memorcy cells
memory -nomap
opt_clean
@ -69,14 +69,15 @@ opt_clean
#########################
# Map flip-flops
#########################
dfflegalize -cell $_DFF_P_ 0
techmap -map +/adff2dff.v
opt_expr -mux_undef
simplemap
opt_expr
opt_merge
opt_dff
opt_dff -nodffe -nosdff
opt_clean
opt
opt -nodffe -nosdff
#########################
# Map LUTs