#systemverilog# 关于systemverilog中 priority if 的使用

Priority if evaluates all the conditions in sequential order.In the following conditions simulator issue a run time error/warning

No condition is true or final if doesn’t have corresponding else
另一篇介绍unique if的文章(Link)


一、priority if examples

In the below example,No condition is true or final if doesn’t have corresponding else.value of a=50,b=20 and c=40. conditions a#systemverilog# 关于systemverilog中 priority if 的使用_第1张图片

二、priority if example 2

 In the below example,value of a=10,b=20 and c=40.conditions a#systemverilog# 关于systemverilog中 priority if 的使用_第2张图片

 

你可能感兴趣的:(systermverilog,systemverilog)