[英]Specman e: How a sequence should be started when gen_and_start_main constrained to FALSE?
I've disabled automatic start of MAIN sequence
, so I can control my sequences flow: 我已禁用自动启动
MAIN sequence
,因此可以控制序列流:
extend my_driver {
keep soft gen_and_start_main == FALSE;
};
But, I don't find a way to start the sequence not-automatically, since I get compilation error, eg the code: 但是,由于找不到编译错误,例如代码,我找不到非自动启动序列的方法:
some_tcm()@clock is {
// some logic
start sys.my_agent.my_driver.main_sequence.body();
};
Causes an error: 导致错误:
cannot call method - object is NULL
How the sequence should be started not-automatically, when gen_and_start_main
field is constrained to FALSE
? 当
gen_and_start_main
字段限制为FALSE
时,如何自动启动序列?
Thank you for your help 谢谢您的帮助
Starting a sequence can be done using their start_squence() method. 可以使用其start_squence()方法来启动序列。 you have generate the sequence, and then start it -
您已经生成了序列,然后启动它-
gen sys.my_agent.my_drive.main_sequence keeping {
.driver == sys.my_agent.my_drive;
};
sys.my_agent.my_drive.main_sequence.start_sequence();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.