13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

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.

Linker Script Language8−238.5.1 DEFINING AN ARCHITECTUREWith the keyword architecture you define an architecture and assign aunique name to it. The name is used to refer to it at other places in theLSL file:architecture name{definitions}If you are defining multiple core architectures that show greatresemblance, you can define the common features in a parent corearchitecture and extend this with a child core architecture that containsspecific features. The child inherits all features of the parent. With thekeyword extends you create a child core architecture:architecture name_child_arch extends name_parent_arch{definitions}A core architecture can have any number of parameters. These areidentifiers which get values assigned on instantiation or extension of thearchitecture. You can use them in any expression within the corearchitecture. Parameters can have default values, which are used when thecore architecture is instantiated with less arguments than there areparameters defined for it. When you extend a core architecture you canpass arguments to the parent architecture. Arguments are expressions thatset the value of the parameters of the sub−architecture.architecture name_child_arch (parm1,parm2=1)extends name_parent_arch (arguments){definitions}• • • • • • • •

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

Saved successfully!

Ooh no, something went wrong!