2021年5月15日
摘要: 我们知道virtual来修饰子函数,可以让基类的指针指向扩展类,从而利用基类中的virtual函数可以复用扩展类中的同名函数。但是constrain呢?本小结就来详细说明一下constrain。 我们通过一个例子来简单声明一下: ####情况一: class bird; rand bit [1:0] 阅读全文
posted @ 2021-05-15 17:50 猪肉白菜_125 阅读(1025) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/106486751 http://blog.eetop.cn/blog-1561828-2316833.html SV中的module,interface,program,checker,都提供declaration空间,内部定义都local 阅读全文
posted @ 2021-05-15 17:41 猪肉白菜_125 阅读(1656) 评论(0) 推荐(0) 编辑