13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Linker Script Language (LSL)}architecture = mycorearch;If the architecture definition has parameters you must specify the arguments that correspond with theparameters. For example mycorearch1 expects two parameters which are used in the architecturedefinition:core mycore{architecture = mycorearch1 (1,2);}16.5.3. Defining Internal Memory and BusesWith the keyword memory you define physical memory that is present on the target board. The memoryname is used to identify the memory and does not conflict with other identifiers. It is common to defineinternal memory (on-chip) in the derivative definition. External memory (off-chip memory) is usually definedin the board specification (See Section 16.6.3, Defining External Memory and Buses).• The type field specifies a memory type:• rom: read-only memory - it can only be written at load-time• ram: random access volatile writable memory - writing at run-time is possible while writing at load-timehas no use since the data is not retained after a power-down• nvram: non volatile ram - writing is possible both at load-time and run-time• blockram: writing is possible both at load-time and run-time. Changes are applied in RAM, so aftera full device reset the data in a blockram reverts to the original state.The optional reserved qualifier be<strong>for</strong>e the memory type, tells the linker not to locate any section inthe memory by default.You can locate sections in such memories using an absolute address or rangerestriction (see subsection Locating a group in Section 16.8.2, Creating and Locating Groups of Sections).• The mau field specifies the MAU size (Minimum Addressable Unit) of the memory.This field is required.• The size field specifies the size in MAU of the memory. This field is required.• The priority field specifies a locate priority <strong>for</strong> a memory. The speed field has the same meaningbut is considered deprecated. By default, a memory has its priority set to 1. The memories with thehighest priority are considered first when trying to locate a rule. Subsequently, the next highest prioritymemories are added if the rule was not located successfully, and so on until the lowest priority that isavailable is reached or the rule is located. The lowest priority value is zero. Sections with an orderedand/or contiguous restriction are not affected by the locate priority. If such sections also have a pagerestriction, the locate priority is still used to select a page.• The map field specifies how this memory maps onto an (internal) bus. The mapping can have a name.Mappings are described in Section 16.4.4, Mappings.829

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!