MEM attribute

Top  Previous  Next

The MEM attribute can be used to add an available memory block to an underlying processor type in either a PROCTYPE or PROCESSOR statement. It can be used several times, or in both PROCTYPE and PROCESSOR statements, for a cumulative effect.

 

Each MEM= attribute takes the following form:

 

MEM attribute  = "MEM", "=", [memory area ":"], memory address, ":", memory size;

memory area    = identifier;

memory address = constant;

memory size    = constant;

 


memory area

is an optional descriptive name for the area, for example SDRAM.


memory address

gives the starting address of the memory area.


memory size

gives the size of the area in bytes.

 

The following are valid MEM= attributes:

 

MEM=0x00400000:1M

MEM=SDRAM:0x00400000:1M

 

When the configurer is allocating memory for any purpose, it allocates from the following areas in descending order of preference:

1.

Internal (on-chip) memory blocks.

2.

External memory blocks defined as inherent to a built-in processor type.

3.

External memory blocks defined through MEM attributes in their order of appearance.