uvm_id_register

A base class which implements an “ID register” functionality.  Each successive read() call retrieves the next value in a list.  Upon reaching the end of the list, the first one is retrieved, repeating.  The sequence of values read from this register is used as an ID.

Summary
uvm_id_register
A base class which implements an “ID register” functionality.
Class Hierarchy
uvm_register#(T)
uvm_id_register
Class Declaration
class uvm_id_register #(
   type T =  bit[31:0]
) extends uvm_register#(T)
Methods
get_length()Return the number of reads() that it will take to get all the data items read.
id_write()Call this function to append a new value to the id register.
id_read()Call this function to fetch or read the next value from the ID register.
read_without_notify()Re-implemented to affect our new ID register functionality.
write_without_notify()Re-implemented to affect our new ID register functionality.

get_length()

virtual function int get_length()

Return the number of reads() that it will take to get all the data items read.

id_write()

virtual function void id_write(v)

Call this function to append a new value to the id register. id_write() is normally only called at system initialization time, since the ID values normally don’t change once set.

id_read()

virtual function T id_read()

Call this function to fetch or read the next value from the ID register.  Successive calls to id_read() return the successive elements in the ‘values’ array.  When the end of the array is reached, we start over from the beginning.

read_without_notify()

function T read_without_notify(

Re-implemented to affect our new ID register functionality.

write_without_notify()

function void write_without_notify(v,

Re-implemented to affect our new ID register functionality.  Note: “writing” this register does NOT write a new value into the register.  Instead, writing to this register actually updates (writes to) the pointer.

class uvm_id_register #(type T =  bit[31:0]) extends uvm_register#(T)
A base class which implements an “ID register” functionality.
virtual function int get_length()
Return the number of reads() that it will take to get all the data items read.
virtual function void id_write(v)
Call this function to append a new value to the id register.
virtual function T id_read()
Call this function to fetch or read the next value from the ID register.
function T read_without_notify(
Re-implemented to affect our new ID register functionality.
function void write_without_notify(v,
Re-implemented to affect our new ID register functionality.