摘要: 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) 编辑