A register sequence base class and a register sequence.
| UVM Register Sequences | |
| A register sequence base class and a register sequence. |
A useful base class for register sequences Especially when used in automated register testing.
| uvm_register_sequence_base | ||||||||||||||||||||||
| A useful base class for register sequences Especially when used in automated register testing. | ||||||||||||||||||||||
| Class Hierarchy | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Class Declaration | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Methods | ||||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| do_write() | Helper function which does a write given a register name and data to write. | |||||||||||||||||||||
| do_read() | Helper function which does a read given a register name. | |||||||||||||||||||||
| do_write_read() | Helper function which does a write and a read given a register name and data to write. | |||||||||||||||||||||
| body() | Base class functionality; find what sequencer we are connected to, and lookup a “counter” parameter. | |||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| body() | A sequence which calls the base class, then retrieves a list of all registers. | |||||||||||||||||||||
virtual task do_write( string register_name, dataWidth_t data_to_write )
Helper function which does a write given a register name and data to write.
virtual task do_read( string register_name, output dataWidth_t data_read )
Helper function which does a read given a register name. It returns the data read as an argument.
virtual task do_write_read( string register_name, dataWidth_t data_to_write, output dataWidth_t data_read )
Helper function which does a write and a read given a register name and data to write. It returns the data read as an argument.
virtual task body()
Base class functionality; find what sequencer we are connected to, and lookup a “counter” parameter.
task body()
A sequence which calls the base class, then retrieves a list of all registers. It then iterates through these registers calling the helper function ‘do_write_read()’ on each register in turn.
| register_alias | ||||||||||||||||||||||
| Class Hierarchy | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Class Declaration | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Methods | ||||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| body() | A sequence which calls the base class, then retrieves a list of all registers. | |||||||||||||||||||||
task body()
A sequence which calls the base class, then retrieves a list of all registers. It then iterates through these registers calling the helper function ‘do_write_read()’ on each register in turn.
| power_on_reset | ||||||||||||||||||||||
| Class Hierarchy | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Class Declaration | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Methods | ||||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| body() | A sequence which calls the base class, then retrieves a list of all registers. | |||||||||||||||||||||
task body()
A sequence which calls the base class, then retrieves a list of all registers. It then iterates through these registers calling the helper function ‘do_write_read()’ on each register in turn.
| walking | ||||||||||||||||||||||
| Class Hierarchy | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Class Declaration | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Methods | ||||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| body() | A sequence which calls the base class, then retrieves a list of all registers. | |||||||||||||||||||||
task body()
A sequence which calls the base class, then retrieves a list of all registers. It then iterates through these registers calling the helper function ‘do_write_read()’ on each register in turn.
| walking_zeros | ||||||||||||||||||||||
| Class Hierarchy | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Class Declaration | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Methods | ||||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| body() | A sequence which calls the base class, then retrieves a list of all registers. | |||||||||||||||||||||
task body()
A sequence which calls the base class, then retrieves a list of all registers. It then iterates through these registers calling the helper function ‘do_write_read()’ on each register in turn.
| walking_ones | ||||||||||||||||||||||
| Class Hierarchy | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Class Declaration | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Methods | ||||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| body() | A sequence which calls the base class, then retrieves a list of all registers. | |||||||||||||||||||||
task body()
A sequence which calls the base class, then retrieves a list of all registers. It then iterates through these registers calling the helper function ‘do_write_read()’ on each register in turn.
| write_read | ||||||||||||||||||||||
| Class Hierarchy | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Class Declaration | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Methods | ||||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| body() | A sequence which calls the base class, then retrieves a list of all registers. | |||||||||||||||||||||
task body()
A sequence which calls the base class, then retrieves a list of all registers. It then iterates through these registers calling the helper function ‘do_write_read()’ on each register in turn.
Gets a list of all registers. Reads and writes them.
| register_sequence_all_registers | ||||||||||||||||||||||
| Gets a list of all registers. | ||||||||||||||||||||||
| Class Hierarchy | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Class Declaration | ||||||||||||||||||||||
| ||||||||||||||||||||||
| Methods | ||||||||||||||||||||||
| new() | Construct the object. | |||||||||||||||||||||
| body() | A sequence which calls the base class, then retrieves a list of all registers. | |||||||||||||||||||||
task body()
A sequence which calls the base class, then retrieves a list of all registers. It then iterates through these registers calling the helper function ‘do_write_read()’ on each register in turn.
A useful base class for register sequences Especially when used in automated register testing.
class uvm_register_sequence_base #( type REQ = uvm_sequence_item, type RSP = uvm_sequence_item ) extends uvm_sequence #(REQ, RSP)
Construct the object.
function new( string name = "uvm_register_sequence_base" )
Helper function which does a write given a register name and data to write.
virtual task do_write( string register_name, dataWidth_t data_to_write )
Helper function which does a read given a register name.
virtual task do_read( string register_name, output dataWidth_t data_read )
Helper function which does a write and a read given a register name and data to write.
virtual task do_write_read( string register_name, dataWidth_t data_to_write, output dataWidth_t data_read )
Base class functionality; find what sequencer we are connected to, and lookup a “counter” parameter.
virtual task body()
class register_alias #( type REQ = uvm_sequence_item, type RSP = uvm_sequence_item ) extends built_in_sequences #(REQ, RSP)
Construct the object.
function new( string name = "register_alias" )
A sequence which calls the base class, then retrieves a list of all registers.
task body()
class power_on_reset #( type REQ = uvm_sequence_item, type RSP = uvm_sequence_item ) extends built_in_sequences #(REQ, RSP)
Construct the object.
function new( string name = "power_on_reset" )
A sequence which calls the base class, then retrieves a list of all registers.
task body()
class walking #( type REQ = uvm_sequence_item, type RSP = uvm_sequence_item ) extends built_in_sequences #(REQ, RSP)
Construct the object.
function new( string name = "walking" )
A sequence which calls the base class, then retrieves a list of all registers.
task body()
class walking_zeros #( type REQ = uvm_sequence_item, type RSP = uvm_sequence_item ) extends walking #(REQ, RSP)
Construct the object.
function new( string name = "walking_zeros" )
A sequence which calls the base class, then retrieves a list of all registers.
task body()
class walking_ones #( type REQ = uvm_sequence_item, type RSP = uvm_sequence_item ) extends walking #(REQ, RSP)
Construct the object.
function new( string name = "walking_ones" )
A sequence which calls the base class, then retrieves a list of all registers.
task body()
class write_read #( type REQ = uvm_sequence_item, type RSP = uvm_sequence_item ) extends built_in_sequences #(REQ, RSP)
Construct the object.
function new( string name = "write_read" )
A sequence which calls the base class, then retrieves a list of all registers.
task body()
Gets a list of all registers.
class register_sequence_all_registers #( type REQ = uvm_sequence_item, type RSP = uvm_sequence_item ) extends built_in_sequences #(REQ, RSP)
Construct the object.
function new( string name = "register_sequence_all_registers" )
A sequence which calls the base class, then retrieves a list of all registers.
task body()