// rhs - Right hand side reference// name - Optional name for the link object//staticfunctionuvm_parent_child_linkget_link(uvm_objectlhs,uvm_objectrhs,stringname="pc_link");uvm_parent_child_linkpc_link=new(name);pc_link.set(lhs,rhs);returnpc_link;endfunction:get_link// Group: Implementation Callbacks// Function: do_set_lhs// Sets the left-hand-side (Parent)//virtualfunctionvoiddo_set_lhs(uvm_objectlhs);m_lhs=lhs;endfunction:do_set_lhs
// rhs - Right hand side reference// name - Optional name for the link object//staticfunctionuvm_cause_effect_linkget_link(uvm_objectlhs,uvm_objectrhs,stringname="ce_link");uvm_cause_effect_linkce_link=new(name);ce_link.set(lhs,rhs);returnce_link;endfunction:get_link// Group: Implementation Callbacks// Function: do_set_lhs// Sets the left-hand-side (Cause)//virtualfunctionvoiddo_set_lhs(uvm_objectlhs);m_lhs=lhs;endfunction:do_set_lhs
// rhs - Right hand side reference// name - Optional name for the link object//staticfunctionuvm_related_linkget_link(uvm_objectlhs,uvm_objectrhs,stringname="ce_link");uvm_related_linkce_link=new(name);ce_link.set(lhs,rhs);returnce_link;endfunction:get_link// Group: Implementation Callbacks// Function: do_set_lhs// Sets the left-hand-side//virtualfunctionvoiddo_set_lhs(uvm_objectlhs);m_lhs=lhs;endfunction:do_set_lhs
// @uvm-ieee 1800.2-2020 auto 7.3.2.2.2staticfunctionuvm_parent_child_linkget_link(uvm_objectlhs,uvm_objectrhs,stringname="pc_link");processp_;strings_;p_=process::self();if(p_!=null)s_=p_.get_randstate();get_link=new(name);if(p_!=null)p_.set_randstate(s_);get_link.set(lhs,rhs);
// @uvm-ieee 1800.2-2020 auto 7.3.3.2.2staticfunctionuvm_cause_effect_linkget_link(uvm_objectlhs,uvm_objectrhs,stringname="ce_link");processp_;strings_;p_=process::self();if(p_!=null)s_=p_.get_randstate();get_link=new(name);if(p_!=null)p_.set_randstate(s_);get_link.set(lhs,rhs);endfunction:get_link
// @uvm-ieee 1800.2-2020 auto 7.3.4.2.2staticfunctionuvm_related_linkget_link(uvm_objectlhs,uvm_objectrhs,stringname="ce_link");processp_;strings_;p_=process::self();if(p_!=null)s_=p_.get_randstate();get_link=new(name);if(p_!=null)p_.set_randstate(s_);get_link.set(lhs,rhs);endfunction:get_link