[source]

Class uvm_pkg::uvm_mem_mam_policy

Class

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

variable

len

Number of addresses required

start_offset

bit[63:0]

variable

start_offset

The starting offset of the region

min_offset

bit[63:0]

variable

min_offset

Minimum address offset in the managed address space

max_offset

bit[63:0]

variable

max_offset

Maximum address offset in the managed address space

in_use

uvm_mem_region

variable

in_use

Regions already allocated in the managed address space

Constraints

Name

Description

uvm_mem_mam_policy_no_overlap
uvm_mem_mam_policy_valid