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−31If you are defining multiple derivatives that show great resemblance, youcan define the common features in a parent derivative and extend thiswith a child derivative that contains specific features. The child inherits allfeatures of the parent (cores and memories). With the keyword extendsyou create a child derivative:derivative name_child_deriv extends name_parent_deriv{definitions}As with a core architecture, a derivative can have any number ofparameters. These are identifiers which get values assigned oninstantiation or extension of the derivative. You can use them in anyexpression within the derivative definition.derivative name_child_deriv (parm1,parm2=1)extends name_parent_derivh (arguments){definitions}8.6.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 givencore has a certain architecture. The architecture name refers to anexisting 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 mustinstantiate both cores as follows:core mycore_1{architecture = mycorearch;}core mycore_2{architecture = mycorearch;}• • • • • • • •

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

Saved successfully!

Ooh no, something went wrong!