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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>optionalreservedstart_addressrun_addrsymbolmapmapdestdest_dbitsdest_offsetsizesrc_dbitssrc_offsetbus space16.4.1. Defining an ArchitectureWith the keyword architecture you define an architecture and assign a unique name to it. The nameis used to refer to it at other places in the LSL file:architecture name{definitions}If you are defining multiple core architectures that show great resemblance, you can define the commonfeatures in a parent core architecture and extend this with a child core architecture that contains specificfeatures. The child inherits all features of the parent. With the keyword extends you create a child corearchitecture:architecture name_child_arch extends name_parent_arch{definitions}A core architecture can have any number of parameters. These are identifiers which get values assignedon instantiation or extension of the architecture. You can use them in any expression within the corearchitecture. Parameters can have default values, which are used when the core architecture is instantiatedwith less arguments than there are parameters defined <strong>for</strong> it. When you extend a core architecture youcan pass arguments to the parent architecture. Arguments are expressions that set the value of theparameters of the sub-architecture.architecture name_child_arch (parm1,parm2=1)extends name_parent_arch (arguments){definitions}820

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

Saved successfully!

Ooh no, something went wrong!