Replacing SV code in an RTL module with UVM bind

In reply to new_to_uvm:

This might work using an upward name hierarchical reference.

module to_bind_in_module_foo;
error_module em_i0 ();
 
always @ (posedge foo.some_event) begin
  force foo.something=1;
  release foo.something;
end
 
endmodule
 
bind foo to_bind_in_module_foo bind_inst0();