在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3460|回复: 4

[原创] ovm的get_response哪位大侠用过?

[复制链接]
发表于 2010-7-30 23:11:57 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
是不是可以在sequence里面调用get_response,之后选择下一个cmd要发什么。有点疑惑,感觉ovm以前的版本没有.另外是不是driver可以注册两个item?
 楼主| 发表于 2010-7-30 23:15:40 | 显示全部楼层
自己顶一下
发表于 2010-7-31 00:40:03 | 显示全部楼层
一个req,一个rsp。
On the side of driver:
1)Create the response to send back
rsp = new(“s_rsp”);
2)Update the sequence info(important for respose routing)
rsp.set_id_info(req);
3)Update the response with relevant info
Rsp.answer = req.question + 1;
4)Return the response via the argument to item_done
seq_item_port.item_done(rsp);
On the side of sequence:
You can retrieve the resp after execute the request.
...
// Execute the request
`ovm_do_with(req, {req.question == i;});
// Retrieve the response
get_response(rsp);
 楼主| 发表于 2010-7-31 09:51:34 | 显示全部楼层
多谢楼上大侠指教。
发表于 2010-8-24 17:26:48 | 显示全部楼层
有高手 啊!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-14 01:19 , Processed in 0.023712 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表