Class uvm_resource_base
Name |
Type |
Description |
---|---|---|
access |
||
precedence |
int unsigned |
This variable is used to associate a precedence that a resource has with respect to other resources which match the same scope and name. Resources are set to the default_precedence initially, and may be set to a higher or lower precedence as desired. |
default_precedence |
int unsigned |
The default precedence for an resource that has been created. When two resources have the same precedence, the first resource found has precedence. |
Constructors
Functions
- virtual function uvm_resource_base get_type_handle ( ) [source]
Pure virtual function that returns the type handle of the resource container.
- virtual function void set_priority ( uvm_resource_types::priority_e pri ) [source]
Function
set priority
Change the search priority of the resource based on the value of the priority enum argument.
- virtual function string convert2string ( ) [source]
function convert2string
Create a string representation of the resource value. By default we don't know how to do this so we just return a "?". Resource specializations are expected to override this function to produce a proper string representation of the resource value.
- virtual function void do_print ( uvm_printer printer ) [source]
Implementation of do_print which is called by print().
- function void record_read_access ( uvm_object accessor ) [source]
- function void record_write_access ( uvm_object accessor ) [source]
- function void init_access_record ( uvm_resource_types::access_t access_record ) [source]
Initialize a new access record
Tasks
- function wait_modified ( ) [source]
This task blocks until the resource has been modified -- that is, a <uvm_resource#(T)::write> operation has been performed. When a <uvm_resource#(T)::write> is performed the modified bit is set which releases the block. Wait_modified() then clears the modified bit so it can be called repeatedly.
Non-parameterized base class for resources. Supports interfaces for scope matching, and virtual functions for printing the resource and for printing the accessor list