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.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>src_offsetreserved17.5.1. Defining a DerivativeWith the keyword derivative you define a derivative and assign a unique name to it. The name is usedto refer to it at other places in the LSL file:derivative name{definitions}If you are defining multiple derivatives that show great resemblance, you can define the common featuresin a parent derivative and extend this with a child derivative that contains specific features. The childinherits all features of the parent (cores and memories). With the keyword extends you create a childderivative:derivative name_child_deriv extends name_parent_deriv{definitions}As with a core architecture, a derivative can have any number of parameters. These are identifiers whichget values assigned on instantiation or extension of the derivative. You can use them in any expressionwithin the derivative definition.derivative name_child_deriv (parm1,parm2=1)extends name_parent_deriv (arguments){definitions}17.5.2. Instantiating Core ArchitecturesWith the keyword core you instantiate a core architecture in a derivative.• With the keyword architecture you tell the linker that the given core has a certain architecture. Thearchitecture name refers to an existing architecture definition in the same LSL file.For example, if you have two cores (called mycore_1 and mycore_2) that have the same architecture(called mycorearch), you must instantiate both cores as follows:core mycore_1{architecture = mycorearch;}core mycore_2{856

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

Saved successfully!

Ooh no, something went wrong!