svt_mem_part_mgr Class Reference

Inheritance diagram for class svt_mem_part_mgr:

List of all members.


Detailed Description

Class to pick a suitable vendor part at random amongst all vendor parts in all catalogs on a shelf.

The PART parameter defines the suite-specific shelf.

Suitability is determined by the static POLICY:: weight(PART) function. This method is called by this class for each part in each catalg on the shelf. If it returns a zero or negative value, the specified part is not suitable. If it returns a positive value, the part is suitable and the value is the random-distribution weight assigned to that part.

By default, all parts are suitable and have an equal distribution weight value of 1.

User may specify different part selection policies by implementing different static weight(PART) functions. For example:

 class only_x16_parts#(type PART=int);
   static function int weight(PART part);
     if (part.#get_width() != SVT_MEM_x16) return 0;
     return 1;
   endfunction
 endclass
 



Public Member Functions

static function PART  pick ( )

Class Parameters

type  PART = int; 
type  POLICY = svt_mem_all_parts#(PART); 

Public Attributes


Member Function Documentation

 static function PART
 svt_mem_part_mgr::pick

 (   ) 


Pick and return a suitable part from the catalogs on a shelf

Class Parameters Documentation

 type  attribute
 svt_mem_part_mgr::PART = int

 type  attribute
 svt_mem_part_mgr::POLICY = svt_mem_all_parts#(PART)


Member Attribute Documentation