简体   繁体   中英

specman - expect event after several cycles

I have the following events:

   event rstn_release_e            is rise (smp.port_rstn$)              @sim;
   event d_dis_feedback_to_spot_e is rise (smp.port_d_dis_feedback$)   @sim;
   event osc_clk_e                 is rise (smp.port_osc_clk$)           @sim;

I have to verify that when r stn_release_e event occurs the event d_dis_feedback_to_spot_e occurs after 0-2 cycles of oscillator clock ( osc_clk_e ).

I use the following:

expect @rstn_release_e => {[..2]*@osc_clk_e ; @d_dis_feedback_to_spot_e};

The simulation fails because for some reason the above expect "works" according simulation clock instead of oscillator clock

似乎您没有为期望定义采样事件

expect @rstn_release_e => {[..2] ; @d_dis_feedback_to_spot_e} @osc_clk_e;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM