Skip to content

uvm_reg_field_rdl_counter methods

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

uvm_reg_field_rdl_counter class methods

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

Methods:


function uvm_reg_data_t get_accum_value()

Parameters:

Return the scratchpad data stored for this counter field.


function void set_accum_value()

Parameters:

  • input uvm_reg_data_t accum_value

Set the scratchpad data value for this counter field.


function void add_incr()

Parameters:

  • input uvm_reg_data_t incr_value
  • input string incr_sig, (default value = "")
  • input string incr_value_sig, (default value = "")
  • input int unsigned incr_value_sig_width, (default value = 0)

Set incrementing counter info for this field.


function void add_incr_sat()

Parameters:

  • input uvm_reg_data_t incr_sat_value
  • input string incr_sat_value_sig, (default value = "")

Set incrementing counter saturation value info for this field.


function void add_incr_thold()

Parameters:

  • input uvm_reg_data_t incr_thold_value
  • input string incr_thold_value_sig, (default value = "")

Set incrementing counter threshold value info for this field.


function string get_incr_signal()

Parameters:

Return the name of the increment 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_overflow_signal()

Parameters:

Return the name of the overflow 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_incr_sat_signal()

Parameters:

Return the name of the increment saturation 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_incr_thold_signal()

Parameters:

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


function uvm_reg_data_t get_incr_value()

Parameters:

Return the increment value for this counter field.


function string get_incr_value_signal()

Parameters:

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


function int unsigned get_incr_value_signal_width()

Parameters:

Return the increment input signal width for this counter field.


function bit has_incr_sat()

Parameters:

Return 1 if an increment saturation value/signal is defined for this counter field.


function uvm_reg_data_t get_incr_sat_value()

Parameters:

Return the increment saturation value for this counter field.


function string get_incr_sat_value_signal()

Parameters:

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


function bit has_incr_thold()

Parameters:

Return 1 if an increment threshold value/signal is defined for this counter field.


function uvm_reg_data_t get_incr_thold_value()

Parameters:

Return the increment threshold value for this counter field.


function string get_incr_thold_value_signal()

Parameters:

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


function void add_decr()

Parameters:

  • input uvm_reg_data_t decr_value
  • input string decr_sig, (default value = "")
  • input string decr_value_sig, (default value = "")
  • input int unsigned decr_value_sig_width, (default value = 0)

Set decrementing counter info for this field.


function void add_decr_sat()

Parameters:

  • input uvm_reg_data_t decr_sat_value
  • input string decr_sat_value_sig, (default value = "")

Set decrementing counter saturation value info for this field.


function void add_decr_thold()

Parameters:

  • input uvm_reg_data_t decr_thold_value
  • input string decr_thold_value_sig, (default value = "")

Set decrementing counter threshold value info for this field.


function string get_decr_signal()

Parameters:

Return the name of the decrement 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_underflow_signal()

Parameters:

Return the name of the underflow 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_decr_sat_signal()

Parameters:

Return the name of the decrement saturation 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_decr_thold_signal()

Parameters:

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


function uvm_reg_data_t get_decr_value()

Parameters:

Return the decrement value for this counter field.


function string get_decr_value_signal()

Parameters:

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


function int unsigned get_decr_value_signal_width()

Parameters:

Return the decrement input signal width for this counter field.


function bit has_decr_sat()

Parameters:

Return 1 if a decrement saturation value/signal is defined for this counter field.


function uvm_reg_data_t get_decr_sat_value()

Parameters:

Return the decrement saturation value for this counter field.


function string get_decr_sat_value_signal()

Parameters:

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


function bit has_decr_thold()

Parameters:

Return 1 if a decrement threshold value/signal is defined for this counter field.


function uvm_reg_data_t get_decr_thold_value()

Parameters:

Return the decrement threshold value for this counter field.


function string get_decr_thold_value_signal()

Parameters:

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