摘要: 数组的定义: An array is a collection of variables, all of the sametype, and accessed using the same name plus one or more indices. 合并数组和非合并数组:packed array, 阅读全文
posted @ 2018-03-20 17:49 liheng369 阅读(1922) 评论(0) 推荐(0) 编辑
摘要: 转载 在UVM中经常可以看到$cast的身影,这是SV的build-in task之一,当然它还有function的版本,这里不讨论。 说到这,不得不提到“类型转换”这个术语,SV和很多其他语言一样,都支持特定类型间的相互转换。SV类型转换分两种方法,一种叫静态类型转换,另一种称之为动态类型转换。静 阅读全文
posted @ 2018-03-20 15:06 liheng369 阅读(2570) 评论(0) 推荐(0) 编辑
摘要: post sim中,会进行动态仿真。 在跨时钟域设计中,经常用打2及或3级节拍的方式,进行同步采样,避免glitch。 但是,仿真工具并不知道这些DFF是用来同步的。所以在枚举路径,检测时序的时候,会报setup hold time错误。 因此,在post sim中,发现这些violation后,需 阅读全文
posted @ 2018-03-20 14:47 liheng369 阅读(755) 评论(0) 推荐(0) 编辑