摘要: 1 shiftwidth这个是用于程序中自动缩进所使用的空白长度指示的。一般来说为了保持程序的美观,和下面的参数最好一致。同时它也是符号移位长度的制定者。 2 tabstop定义tab所等同的空格长度,一般来说最好设置成8,因为如果是其它值的话,可能引起文件在打印之类的场合中看起来很别扭。除非你设置 阅读全文
posted @ 2019-10-24 10:41 hfy_sh 阅读(690) 评论(1) 推荐(0) 编辑
摘要: uvm_tlm_analysis_fifo的用法 阅读全文
posted @ 2019-10-24 10:35 hfy_sh 阅读(1595) 评论(0) 推荐(0) 编辑
摘要: 通过读code,画出验证环境的结构图 阅读全文
posted @ 2019-10-24 10:15 hfy_sh 阅读(530) 评论(0) 推荐(0) 编辑
摘要: uvm_event的用法 阅读全文
posted @ 2019-10-24 10:14 hfy_sh 阅读(713) 评论(0) 推荐(0) 编辑
摘要: uvm_set_config_int往virtual seq中传参数 阅读全文
posted @ 2019-10-24 10:13 hfy_sh 阅读(826) 评论(0) 推荐(0) 编辑
摘要: this的用法 this.aaa <= local:: 阅读全文
posted @ 2019-10-24 10:12 hfy_sh 阅读(239) 评论(0) 推荐(0) 编辑
摘要: constraint c_len { foreach (len[i]) len[i] inside {[1:255]}; len.sum <1024; len.size inside {[1:8]}; } 阅读全文
posted @ 2019-10-24 10:11 hfy_sh 阅读(525) 评论(0) 推荐(0) 编辑
摘要: constraint_mode的使用,很容易控制随机的约束,在构造产生item时经常使用,用以产生适用于不同应用场景或实现协议的复杂性 阅读全文
posted @ 2019-10-24 10:08 hfy_sh 阅读(1028) 评论(0) 推荐(0) 编辑
摘要: ref有点类似inout,传递的是句柄,当task或function内部的ref变量被修改后,task或function外部对应的变量的值也随着变化; input,output传的是具体的数值,不是句柄 阅读全文
posted @ 2019-10-24 10:06 hfy_sh 阅读(1668) 评论(0) 推荐(0) 编辑
摘要: 数组的搜索,用.find_index() with(item>3,item<5); 队列的搜索,用.find_index(item) with(item.var==var_n); 阅读全文
posted @ 2019-10-24 10:03 hfy_sh 阅读(463) 评论(0) 推荐(0) 编辑
摘要: new()是构建一个class new[9]是创建一个动态数组 阅读全文
posted @ 2019-10-24 10:00 hfy_sh 阅读(329) 评论(0) 推荐(0) 编辑
摘要: local randomize时用local;变量声明时用local 阅读全文
posted @ 2019-10-24 09:59 hfy_sh 阅读(575) 评论(0) 推荐(0) 编辑
摘要: clone=new+copy clone返回的数据类型是uvm object,需要配合$cast使用 阅读全文
posted @ 2019-10-24 09:57 hfy_sh 阅读(2257) 评论(0) 推荐(0) 编辑
摘要: 待补充后续内容 阅读全文
posted @ 2019-10-24 09:56 hfy_sh 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 非$sformatf function void TC_PA_TEST_BASE::queue_config_item(mac_tb_cfg cfg,string qname); foreach(cfg.testcfg[i]) begin $sformat(argparse,"testcfg\[%0 阅读全文
posted @ 2019-10-24 09:55 hfy_sh 阅读(944) 评论(0) 推荐(0) 编辑
摘要: 1,基本功能(概述) 2,topology(空间) 3,dataflow(time) 4,接口信号(空间) 5,接口时序(时间) 6,配置信息(空间,如寄存器) 7,运行过程(时间,启动-->正常运行) 阅读全文
posted @ 2019-10-24 09:47 hfy_sh 阅读(896) 评论(1) 推荐(0) 编辑