Skip to content

uvm_reg_field_rdl methods

Scott Nellenbach edited this page Aug 9, 2017 · 5 revisions

uvm_reg_field_rdl class methods

uvm_reg_field_rdl extends the uvm_reg_field class to add functionality for querying rdl field properties and building hierarchical RTL signal names from the UVM model.

Methods:


function uvm_reg_rdl get_rdl_register()

Parameters:

Return the uvm_reg_rdl parent of this field.


function void set_rdl_access_info()

Parameters:

  • input bit is_sw_readable
  • input bit is_sw_writeable
  • input bit is_hw_readable
  • input bit is_hw_writeable
  • input bit has_hw_we
  • input bit has_hw_wel

Set rdl hw/sw access info for this field.


function string get_hw_read_signal()

Parameters:

Return the name of the read data output signal for this field. Note that a signal having this name may not exist in the RTL depending on field options.


function string get_hw_write_signal()

Parameters:

Return the name of the write data input signal for this field. Note that a signal having this name may not exist in the RTL depending on field options.


function string get_hw_we_signal()

Parameters:

Return the name of the active high write enable input signal for this field. Note that a signal having this name may not exist in the RTL depending on field options.


function string get_hw_wel_signal()

Parameters:

Return the name of the active low write enable input signal for this field. Note that a signal having this name may not exist in the RTL depending on field options.


function bit is_sw_readable()

Parameters:

Returns 1 if this field can be read by sw.


function bit is_sw_writeable()

Parameters:

Returns 1 if this field can be written by sw.


function bit is_hw_readable()

Parameters:

Returns 1 if this field can be read by hw.


function bit is_hw_writeable()

Parameters:

Returns 1 if this field can be written by hw.


function bit has_hw_we()

Parameters:

Returns 1 if this field has an active high hw write enable.


function bit has_hw_wel()

Parameters:

Returns 1 if this field has an active low hw write enable.


function bit is_counter()

Parameters:

Returns 1 if this field is a counter. It is assumed this class can be cast to uvm_reg_field_rdl_counter if this value is set.


function bit is_interrupt()

Parameters:

Returns 1 if this field is an interrupt. It is assumed this class can be cast to uvm_reg_field_rdl_interrupt if this value is set.


function void set_unsupported()

Parameters:

Sets indication that this field has functionality that is unsupported in the uvm model (use tbd).


function bit is_unsupported()

Parameters:

Returns 1 if this field has functionality that is unsupported in the uvm model (use tbd).


function void set_dontcompare()

Parameters:

Sets the dontcompare indicator on this field.


function bit is_dontcompare()

Parameters:

Returns 1 if this field has dontcompare set.


function bit has_a_js_subcategory()

Parameters:

Returns 1 if this field has a jspec subcategory.


function bit has_js_subcategory()

Parameters:

  • input js_subcategory_e cat

Returns 1 if this field has the specified jspec subcategory.


function void add_js_subcategory()

Parameters:

  • input js_subcategory_e cat

Sets the specified jspec subcategory for this field.


function void remove_js_subcategory()

Parameters:

  • input js_subcategory_e cat

Removes the specified jspec subcategory for this field.


function void set_js_subcategory()

Parameters:

  • input int js_subcategory

Sets the specified set of encoded jspec subcategories for this field.


function void add_def_property()

Parameters:

  • input string name
  • input string value

Add a user-defined property to this rdl class instance


function bit has_def_property()

Parameters:

  • input string name

Returns 1 if a user-defined property of specified name exists for this rdl class instance


function string get_def_property()

Parameters:

  • input string name

Returns a user-defined property of specified name for this rdl class instance


function string remove_def_property()

Parameters:

  • input string name

Removes the user-defined property of specified name for this rdl class instance