[source]

Class uvm_mem_mam_policy

uvm_pkg::uvm_mem_mam_policy + in_use[$] : uvm_mem_region + len : int unsigned + max_offset : bit[63:0] + min_offset : bit[63:0] + start_offset : bit[63:0]

Inheritance Diagram of uvm_mem_mam_policy

An instance of this class is randomized to determine the starting offset of a randomly allocated memory region. This class can be extended to provide additional constraints on the starting offset, such as word alignment or location of the region within a memory page. If a procedural region allocation policy is required, it can be implemented in the pre/post_randomize() method.

Variables

Name

Type

Description

len

int unsigned

Number of addresses required

start_offset

bit[63:0]

The starting offset of the region

min_offset

bit[63:0]

Minimum address offset in the managed address space

max_offset

bit[63:0]

Maximum address offset in the managed address space

in_use

uvm_mem_region

Regions already allocated in the managed address space

Constraints

Name

Description

uvm_mem_mam_policy_no_overlap

uvm_mem_mam_policy_valid