Jump to content

nmoseley

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by nmoseley

  1. Attempted to use the uvm_reg function get("fieldname") to return the value of specific register field within a register class. Found that get() returns the value of all the fields of the register regardless of the value provided to input argument fname. The feature does not appear to be fully implemented. // From uvm_reg.svh function uvm_reg_data_t uvm_reg::get(string fname = "", int lineno = 0); // Concatenate the value of the individual fields // to form the register value m_fname = fname; m_lineno = lineno; get = 0; foreach (m_fields) get |= m_fields.get() << m_fields.get_lsb_pos(); endfunction: get
×
×
  • Create New...