当前位置:网站首页>[UVM foundation] UVM_ Driver member variable req definition
[UVM foundation] UVM_ Driver member variable req definition
2022-06-26 07:33:00 【ReCclay】
uvm_driver It is also a parameterized class , Should be defined in driver Specify this when driver To drive transaction The type of :
class my_driver extends uvm_driver#(my_transaction);
The advantage of this definition is You can use it directly uvm_driver Some predefined member variables in , Such as uvm_driver There are member variables in req, Its type is passed to uvm_driver Parameters of , Here it is my_transaction, You can use it directly req:
Compared with before , There is no need to declare
my_transaction, Direct instantiationreqthat will do !
task my_driver::main_phase(uvm_phase phase);
phase.raise_objection(this);
vif.data <= 8'b0;
vif.valid <= 1'b0;
while(!vif.rst_n)
@(posedge vif.clk);
for(int i = 0; i < 2; i++) begin
req = new("req"); // Use it directly req
assert(req.randomize() with {
pload.size == 200;});
drive_one_pkt(req);
end
repeat(5) @(posedge vif.clk);
phase.drop_objection(this);
endtask
边栏推荐
- PXRD, IR, TGA of two-dimensional porphyrin COF (POR COF) /cof (2D pdpor COF) - supplied by Qiyue
- php array_ Merge details
- Exit of shell internal value command
- Iron / zinc / copper / platinum metal complexes such as 5,10,15,20-tetra (4-hydroxyphenyl) porphyrin (THPP) / (thppfe) / (thppzn) / (thppcu) / (thpppt) - Qiyue R & D
- Detailed materials of applying for residence permit in non local Beijing
- MySQL'replace into'has a self incrementing ID of the pit. There is a problem with the backup opportunity
- Zraqnhydae
- 【推荐10个 让你轻松的 IDEA 插件,少些繁琐又重复的代码】
- QTreeWidget And QTableWidget
- B站增量数据湖探索与实践
猜你喜欢

Flutter (III) - master the usage of dart language in an article
![5,10,15,20-tetra (4-methoxycarbonylphenyl) porphyrin tcmpp purple crystal; Meso-5,10,15,20-tetra (4-methoxyphenyl) porphyrin tmopp|zn[t (4-mop) p] and co[t (4-mop) p] complexes](/img/51/136eda75986fc01282558e626b2faf.jpg)
5,10,15,20-tetra (4-methoxycarbonylphenyl) porphyrin tcmpp purple crystal; Meso-5,10,15,20-tetra (4-methoxyphenyl) porphyrin tmopp|zn[t (4-mop) p] and co[t (4-mop) p] complexes

My colleague asked a question I never thought about. Why did kubernetes' superfluous' launch the static pod concept?

Nine hours, nine people and nine doors (01 backpack deformation) - Niuke

Shengshi Haotong enterprise wechat sector creates a digital ecological community

ZRaQnHYDAe
![[recommend an entity class conversion tool mapstruct, which is powerful and easy to use]](/img/7b/43becce42192fb5e0469465aa27a36.png)
[recommend an entity class conversion tool mapstruct, which is powerful and easy to use]

Kalman filter_ Recursive Processing

Porphyrin based polyimide ppbpis (ppbpi-pa, ppbpi-pepa and ppbpi-pena); Crosslinked porphyrin based polyimide (ppbpi-pa-cr, ppbpi-pepa-cr, ppbpi-pena-cr) reagent

How to publish function computing (FC) through cloud effect
随机推荐
蓝桥杯嵌入式学习总结(新版)
[recommend an entity class conversion tool mapstruct, which is powerful and easy to use]
Parameter index out of range (0 < 1) (1> number of parameters, which is 0
Jemter stress test - basic requirements - [teaching]
Children play games (greed, prefix and) - Niuke winter vacation training camp
Encapsulating ranging and surface class based on leaflet
Jemter 压力测试 -可视化工具-【使用篇】
Redis series - redis startup, client day1-2
Qt基础教程:QString
How to convert Unicode into Chinese characters in Excel
Golang源码包集合
Redis(4)----浅谈整数集合
How can I find the completely deleted photos in Apple mobile phone?
Tetradecanoxy tetraphenylporphyrin methacrylate mm-tpp-14c; Cetanoxy tetraphenyl porphyrin methacrylate mm-tpp-16c; Purple solid; Qiyue supply
Installation homebrew error summary
Teach you how to use the harmonyos local simulator
Excel中Unicode如何转换为汉字
. Net 20th anniversary! Microsoft sends a document to celebrate
Es string type (text vs keyword) selection
基于sanic的服务使用celery完成动态修改定时任务