文档详情

sharc处理器内核体系结构.pptx

发布:2025-03-18约2.02千字共4页下载文档
文本预览下载声明

SHARC?处理器内核体系结构:

Handson

UsingOn-chipmemory (30minutes)Declareamemorysectionusingshortwordmemoryspace.Say?seg_short{TYPE(DMRAM)START(0END(0x01800FF)WIDTH(16)}Declareanarrayx[4]={0xCDEF,0x89AB,0x4567,0x0123};underthissection.NowobservethewordinShortWord,TwoColumn,andLongwordmemorywindowataddressesx,x/2andx/4respectively.Trytorelatewhatyourobservationwiththewordplacementdescribedintheslides.Nowloadtheregisterr0withtheshortwordatmemorylocationx,r1with32bitwordatmemorylocationx/2,r2andr3withthelongwordatmemorylocationx/4.?Trytorelateyourobservationstothediscussionintheslides.2

ProcessingElement (30minutes)Intializefourarrays A_FIX[100]={0.01r,0.01r,0.01r,0.01r,0.01r…….}, B_FIX[100]={0.02r,0.02r,0.02r,0.02r,0.02r……..}forfractionaldataand A_FLOAT[100]={0.01,0.01,0.01,0.01,0.01……..}, B_FLOAT[100]={0.02,0.02,0.02,0.02,0.02……}forfloatingpointdata.Writeacodetoevaluatetheexpression withbothfloatingandfixedpointarithmetic.Storetheresultsintwoseparatememorylocations.(Theresultshouldbe=0.2).CalculatethenumberofcyclestakentoperformthisalgorithmusingEMUCLKregister.3

UsingSIMDarchitectureeffectively(30Minutes)Performthesamealgorithmasmentionedabove(onlyforfloatingpoint)usingmultifunctionalinstructionsi.e.usingparalleloperandfetch,multiplierandALUoperationsinSISDmode.Calculatethenumberofcyclestakennowtoperformthealgorithm.PerformthesamealgorithmusingSIMDmodeandmultifunctionalinstructionsboth.Calculatethenumberofcyclestakenforthistimetoo.Comparethethreereadingsforthenumberofcycles.YoucouldobservehowusinsSIMDandmultifunctionalinstructionsfeaturedecreasesthenumberofcycle

显示全部
相似文档