Skip to content

uvm_reg_field_rdl_interrupt methods

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

uvm_reg_field_rdl_interrupt class methods

uvm_reg_field_rdl_interrupt extends the uvm_reg_field_rdl class to add functionality for querying rdl interrupt properties, managing interrupt tree hierarchy, and building hierarchical RTL signal names from the UVM model.

Methods:


function void add_intr()

Parameters:

  • input int intr_level_type, (default value = 0)
  • input int intr_sticky_type, (default value = 0)
  • input string intr_sig, (default value = "")
  • input bit mask_intr_bits, (default value = 0)

Set interrupt info for this field.


function string get_intr_signal()

Parameters:

Return the name of the interrupt input signal for this field.


function string get_intr_out_signal()

Parameters:

Return the name of the interrupt output signal for this field's parent register.


function int get_intr_level_type()

Parameters:

Return the interrupt level type for this field. Values: LEVEL(0), POSEDGE(1), NEGEDGE(2), BOTHEDGE(3)


function int get_intr_sticky_type()

Parameters:

Return the interrupt sticky type for this field. Values: STICKYBIT(0), STICKY(1), NONSTICKY(2)


function bit get_mask_intr_bits()

Parameters:

Return 1 if the value of this field will be modified by enables/masks.


function void add_halt()

Parameters:

Set indication that this field will contribute to halt.


function bit is_halt()

Parameters:

Return 1 if halt is set for this interrupt field.


function string get_halt_out_signal()

Parameters:

Return the name of the halt output signal for this field's parent register.


function void set_intr_mask_field()

Parameters:

  • input uvm_reg_field intr_mask_fld
  • input bit intr_mask_fld_is_enable

Set the uvm_reg_field whose value is used as an intr mask or enable for this interrupt field.


function uvm_reg_field_rdl get_intr_mask_field()

Parameters:

Return the uvm_reg_field_rdl whose value is used as an intr mask or enable for this interrupt field.


function bit has_intr_mask_field()

Parameters:

Return 1 if an intr mask or enable field is assigned for this interrupt field.


function bit intr_mask_field_is_enable()

Parameters:

Return 1 if an intr enable field is assigned for this interrupt field, otherwise mask is assumed.


function uvm_reg_data_t get_intr_masked()

Parameters:

Return the field value after applying any intr masks/enables.


function void set_halt_mask_field()

Parameters:

  • input uvm_reg_field halt_mask_fld
  • input bit halt_mask_fld_is_enable

Set the uvm_reg_field whose value is used as an halt mask or enable for this interrupt field.


function uvm_reg_field_rdl get_halt_mask_field()

Parameters:

Return the uvm_reg_field_rdl whose value is used as an halt mask or enable for this interrupt field.


function bit has_halt_mask_field()

Parameters:

Return 1 if a halt mask or enable field is assigned for this interrupt field.


function bit halt_mask_field_is_enable()

Parameters:

Return 1 if an halt enable field is assigned for this interrupt field, otherwise mask is assumed.


function uvm_reg_data_t get_halt_masked()

Parameters:

Return the field value after applying any halt masks/enables.


function void set_cascade_intr_reg()

Parameters:

  • input uvm_reg cascade_intr_reg
  • input bit cascade_reg_is_halt

Set a register whose intr or halt output drives this interrupt field. This creates an interrupt hierarchy in the model where fields in the specified register are child interrupts of the current field.


function uvm_reg_rdl get_cascade_intr_reg()

Parameters:

Return the uvm_reg_rdl whose intr or halt value drives this interrupt field.


function bit has_cascade_intr_reg()

Parameters:

Return 1 if this interrupt field is driven by a child interrupt register.


function bit cascade_reg_is_halt()

Parameters:

Return 1 if this interrupt field is driven by a child register's halt (else intr).


function void get_intr_fields()

Parameters:

  • input ref uvm_reg_field fields

Return all leaf child interrupt fields in this field's interrupt hierarchy.


task get_active_intr_fields()

Parameters:

  • ref uvm_reg_field fields
  • input bit is_halt
  • input uvm_path_e path, (default value = UVM_DEFAULT_PATH)

Return all leaf child interrupt fields in this field's interrupt hierarchy that. are contributing to an active intr or halt.


function void set_associated_vreg()

Parameters:

  • input uvm_vreg_rdl associated_vreg

Set the uvm_vreg_rdl that is associated with this interrupt field.


function uvm_vreg_rdl get_associated_vreg()

Parameters:

Return the uvm_vreg_rdl that is associated with this interrupt field.


function bit has_associated_vreg()

Parameters:

Return 1 if a uvm_vreg_rdl is associated with this interrupt field.