UVM Register Backdoor C code.

This code is not strictly associated with the UVM register library.  It is used by the UVM register library to gain access to internal simulator variables.

This code makes certain assumptions about maximum bit size, and how to work around this.  These assumptions are likely be changed.

Summary
UVM Register Backdoor C code.
This code is not strictly associated with the UVM register library.
Methods
uvm_register_get_max_size()This C code checks to see if there is PLI handle with a value set to define the maximum bit width.
uvm_register_check_hdlGiven a path, look the path name up using the PLI, but don’t set or get.
uvm_register_set_hdlGiven a path, look the path name up using the PLI, and set it to ‘value’.
uvm_register_set_hdlGiven a path, look the path name up using the PLI, and return its ‘value’.

uvm_register_get_max_size()

This C code checks to see if there is PLI handle with a value set to define the maximum bit width.

If no such variable is found, then the default width of 1024 is used.

This function should only get called once or twice, its return value is cached in the caller.

uvm_register_check_hdl

Given a path, look the path name up using the PLI, but don’t set or get.  Just check.

Return 0 if NOT found.  Return 1 if found.

uvm_register_set_hdl

Given a path, look the path name up using the PLI, and set it to ‘value’.

uvm_register_set_hdl

Given a path, look the path name up using the PLI, and return its ‘value’.