Jump to content

the parent-child relationship of add method of uvm_phase


Recommended Posts

hi,

 

  In   uvm_phase file  of uvm1.2,  I understand that  before_phase.m_successors.delete(after_phase)  which is  the  978th line code of  add method should be   'before_phase.m_predecessors.delete(after_phase) ' , that is right ?

 965   // IN BETWEEN 'BEFORE' and 'AFTER' PHASES
 966   else if (before_phase != null && after_phase != null) begin
 967     if (!after_phase.is_before(before_phase)) begin
 968       `uvm_fatal("PH_ADD_PHASE",{"Phase '",before_phase.get_name(),
 969                  "' is not before phase '",after_phase.get_name(),"'"})
 970     end
 971     // before and after? add 1 pred and 1 succ
 972     begin_node.m_predecessors[after_phase] = 1;
 973     end_node.m_successors[before_phase] = 1;
 974     after_phase.m_successors[begin_node] = 1;
 975     before_phase.m_predecessors[end_node] = 1;
 976     if (after_phase.m_successors.exists(before_phase)) begin
 977       after_phase.m_successors.delete(before_phase);
 978       before_phase.m_successors.delete(after_phase);
 979     end
 980   end // if (before_phase != null && after_phase != null)  
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...