微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微电子和IC设计 > IC验证交流 > uvm中sequence和sequencer注册咨询!

uvm中sequence和sequencer注册咨询!

时间:10-02 整理:3721RD 点击:

在uvm中,一般来说,对于sequenc和sequencer有两种注册方法:
1,sequence:·uvm_object_utils(sequence)
sequencer:·uvm_component_utils(sequencer)
2,sequence:·uvm_sequence_utils(sequence)
sequencer:·uvm_sequencer_utils(sequencer,sequence)
这两种方法有什么区别,各有什么优点,请高手指点呢?

前者应该还缺少一个sequence和sequencer的对应处理,记得是一个带后缀lib的宏。曾经在国外论坛看到说不建议用第二种方式注册序列。

一般来看都是第一种注册,只是在别人的一个平台中看到了这种方式,又没有找到相关的资料,就问问高手了。谢谢!

First Create a sequencer and register with sequencer utils `uvm_sequencer_utils(sequencer_name)
and now create a sequence and register that sequence with the factory and as well as the sequencer Lib
`uvm_sequence_utils(sequence_name,sequencer_name)
every sequencer by default wil have its own sequence library
when in the function new(); inside your sequencer use the macro......`uvm_update_sequence_lib_and_item
all the sequences registered with this sequencer will be updated automatically and the sequencer will know it and update internally in his sequence library

3Q!

受教了

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top