Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

UVM simulation phases

$
0
0

Hi,

 

I have created pre_reset and pre_configure phase in my test.

I have not registered any sequence for pre_reset and pre_configure phase but I have some delay in my pre_reset phase of the test.

Still i see both pre_reset and pre_configure phases starting at 0 time. why is it so?

 

Example below shows what I mean to say but it is not comple clean code.

 

class my test extends uvm_test;

 

// registration

 

virtual tast pre_reset (uvm_phase phase);

  $display(in pre_rest phase);

  #100;

  top.rst = 0;

 #100;

 top.rst = 1;

endtask

 

virtual task pre_configure(uvm_phase phase);

  $display(in pre_configure phase);

  top.interrupt_en = 1;

endtask

 

here both messaged in pre_reset phase and in pre_configure phase are coming at 0 time only.

What I understood is pre_configure phase will be executed after pre_reset, reset and post_reset phase are over. so message in pre_configure should come after 200 timestamp only if I dont have anything for reset and post reset pahse.

 

Please correct me if I am wrong.


Viewing all articles
Browse latest Browse all 756

Trending Articles