Get_sequence_state

Hi all ,

1)While using get_sequence_state() within body()method it was returning enum “body” , is this the expected behavior ? Or is it preferable to be used form test , once the objections are dropped within the test run_phase()

  1. In case the sequence is killed using kill/stop_sequences the get_sequence_state() should return UVM_STOPPED ?

/Thanks

In reply to bl4ckp3rl :

See the source code of uvm_sequence_base.svh. There you find the details.
Unfortunately the UVN Standard is not saying anything about the enumerations.

Thanks for your valuable inputs
From source code the enum’s are:

PRE_START
PRE_BODY
BODY
ENDED
POST_BODY
POST_START
FINISHED
STOPPED

Hence 1 and 2 are correct