2020年1月19日

SV--随机

摘要: a:系统函数:$random/$urandom/$urandom_range,$dist_uniform/$dist_normal/$dist_exponetial/$dist_possion/$dist_chi_square/$dist_t/$dist_erlang。注意返回值的位宽、范围。 b: 阅读全文

posted @ 2020-01-19 18:58 superany 阅读(2587) 评论(0) 推荐(0) 编辑

SV--task and function

摘要: function和task的区别,传参种类,ref类型,传参缺省值、传参方向。 a: 函数和任务的区别在于,任务可以带时序,函数不能。 函数和任务的传参可以在名字后的小括号里,也可以在函数和任务体内。传参是默认顺序,也可以使用.in(addr)这种形参方式。 函数和任务的参数缺省值为方向为input 阅读全文

posted @ 2020-01-19 18:57 superany 阅读(1479) 评论(0) 推荐(0) 编辑

导航