RTL Coding 读书笔记2:Synthesis

####################################################################
# 1) RTL coding styles that yield simulation and synthesis mismathes
####################################################################

casex              dont use           mistake for "dontcase or X-state?" 
full_case          better not use    mannully confirm no latch
parallel_case    better not use    mannully confirm no overlapping

function            be careful          mannully confirm no atch
casez & ?         useful               take care of open wires

#############################################################
# 2) full_case parallel_case, the evil twins of Verilog Synthesis
#############################################################

if-else-if

model priority encoder

case

model true-table-like structure

case

examine all synthesis toll case-statement report

casez

caution !
used with "?" Insead of "z" zto model dont-care

casex

dont use in synthesizable code

full_case
parallel_case

in general, dont use
can be used for one-hot FSM

 

 

发布了20 篇原创文章 · 获赞 4 · 访问量 3087

猜你喜欢

转载自blog.csdn.net/niceshotgoodball/article/details/104046222
今日推荐