System Verilog 片断
2015-07-27 13:35
676 查看
Q:如何制作multi-bit variable 的 toggle coverage group?
A:Systemverilog for Verification P394. 利用 option.per_instance = 1;设置covergroup.
Q:forever begin块中的 return and continue会有效果吗?
A:
Q:disable fork 的作用域
A:Kill calling thread's all fork and descendents in fork. Calling thread is the one where "disable fork" exsists.
杀死所有在calling thread中已经被创建的thread。
Q:disable label的作用域
A:他的作用有点“stastic”的感觉,will kill all process named with the corresponding lable. 所以慎用!更推荐使用diable fork. 这里的label带有hierarchy的概念,实际上disable的是带有类似*.test.generator.label的thread,不同路径下面的同样的label并不会被disable。
Q:SV 中数据的强制类型转换的方法?
A:type_name'(X);
P: The type of object generated by new(), is decided by type of handle before new().
P: 特别注意符号位的扩展问题.
Q: disable fork和disable label的区别?
A: disable fork会终结掉calling thread(调用的disable fork的begin_end)中已经被创建的thread。disable label会终结掉同一label(包含了hierarchy信息,即为xxx.driver.task1.label)下的thread。
P: use wildcard。 *:anything ; ?:one character
A:Systemverilog for Verification P394. 利用 option.per_instance = 1;设置covergroup.
//in covergroup declaration covergroup group_name with function sample(bit sample_bit) coverpoint_name: coverpoint sample_bit; option.per_instance = 1; endgroup
Q:forever begin块中的 return and continue会有效果吗?
A:
Q:disable fork 的作用域
A:Kill calling thread's all fork and descendents in fork. Calling thread is the one where "disable fork" exsists.
杀死所有在calling thread中已经被创建的thread。
fork thread 1; thread 2; disable fork; // calling thread is this line itself, so disable fork will kill it own rather then thread1 and thread2. join_none
Q:disable label的作用域
A:他的作用有点“stastic”的感觉,will kill all process named with the corresponding lable. 所以慎用!更推荐使用diable fork. 这里的label带有hierarchy的概念,实际上disable的是带有类似*.test.generator.label的thread,不同路径下面的同样的label并不会被disable。
Q:SV 中数据的强制类型转换的方法?
A:type_name'(X);
P: The type of object generated by new(), is decided by type of handle before new().
P: 特别注意符号位的扩展问题.
Q: disable fork和disable label的区别?
A: disable fork会终结掉calling thread(调用的disable fork的begin_end)中已经被创建的thread。disable label会终结掉同一label(包含了hierarchy信息,即为xxx.driver.task1.label)下的thread。
P: use wildcard。 *:anything ; ?:one character
相关文章推荐
- AccessibilityService辅助类用法(Android 中的另类钩子)
- lAMP下新建维护站点全过程
- android反编译
- [OpenXml] Read/Write row/cell from excel
- linux初学(十)之linux文件系统挂载管理
- js number转string
- linux下安装node.js
- Android的在线解析Json
- 浅谈MVC
- 如果你是一个项目组的老大
- Nginx中发送udp请求
- 1.数据表的基本操作--MySQL学习笔记
- 一篇文章了解互联网从业者
- HTML常用标记
- Code Forces 557 B. Pasha and Tea(水~)
- poj 3928 Ping pong 树状数组
- Integer 变量A,B, 在不声明其它变量的情况下,将他们的值交换,如:A:=1; B:=2; 交换后, A=2, B=1,
- CAS4搭建HTTP环境
- linux修改文件权限
- Course Schedule II