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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2401|回复: 2

[求助] ovm virtual sequences求助

[复制链接]
发表于 2012-3-12 12:45:36 | 显示全部楼层 |阅读模式

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

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

x
class simple_virt_seq extends ovm_sequence;
... // Constructor and OVM automation macros
// See “Creating and Adding a New Sequence” on page 82.
// A sequence from the cpu sequencer library
cpu_config_seq conf_seq;
// A sequence from the ethernet subsequencer library
eth_large_payload_seq frame_seq;
// A virtual sequence from this sequencer's library
random_traffic_virt_seq rand_virt_seq;
virtual task body();
// Invoke a sequence in the cpu subsequencer.
`ovm_do_on(conf_seq, p_sequencer.cpu_seqr)
// Invoke a sequence in the ethernet subsequencer.
`ovm_do_on(frame_seq, p_sequencer.eth_seqr)
// Invoke another virtual sequence in this sequencer.
`ovm_do(rand_virt_seq)
endtask : body
endclass : simple_virt_seq

上面的这段代码摘自OVM user guider,定义了一个ovm virtual sequence,但是可以在其中访问p_sequencer吗?类内部并没有例化这个组件啊?
user guider多次出现这种代码?表示不理解求高手指教。
发表于 2012-3-12 20:17:31 | 显示全部楼层
通过宏实现的,
`ovm_sequence_utils -> `ovm_declare_p_sequencer
 楼主| 发表于 2012-3-26 16:02:32 | 显示全部楼层
回复 2# whxqq


    谢谢,加你好友了,希望以后多指教。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-9-21 14:45 , Processed in 0.015044 second(s), 7 queries , Gzip On, Redis On.

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