Class uvm_link_base
virtual function void do_establish_link(uvm_link_base link);
uvm_parent_child_link pc_link;
uvm_cause_effect_link ce_link;
if ($cast(pc_link, link)) begin
// Record the parent-child relationship
end
else if ($cast(ce_link, link)) begin
// Record the cause-effect relationship
end
else begin
// Unsupported relationship!
end
endfunction : do_establish_link
Constructors
Functions
- function void set_lhs ( uvm_object lhs ) [source]
Sets the left-hand-side of the link
Triggers the do_set_lhs callback.
- function uvm_object get_lhs ( ) [source]
Gets the left-hand-side of the link
Triggers the do_get_lhs callback
- function void set_rhs ( uvm_object rhs ) [source]
Sets the right-hand-side of the link
Triggers the do_set_rhs callback.
- function uvm_object get_rhs ( ) [source]
Gets the right-hand-side of the link
Triggers the do_get_rhs callback
- function void set ( uvm_object lhs, uvm_object rhs ) [source]
Convenience method for setting both sides in one call.
Triggers both the do_set_rhs and do_set_lhs callbacks.
- virtual function void do_set_lhs ( uvm_object lhs ) [source]
Callback for setting the left-hand-side
- virtual function uvm_object do_get_lhs ( ) [source]
Callback for retrieving the left-hand-side
- virtual function void do_set_rhs ( uvm_object rhs ) [source]
Callback for setting the right-hand-side
- virtual function uvm_object do_get_rhs ( ) [source]
Callback for retrieving the right-hand-side
×
The uvm_link_base class presents a simple API for defining a link between any two objects.
Using extensions of this class, a uvm_tr_database can determine the type of links being passed, without relying on "magic" string names.
For example: |