资源描述:
《计算机组成原理之cpu原理》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、LABORATORYREPORTMicroprogrammedCPUDesignCourseName:ComputerStructureandArchitecturePage1of21Contents1.Purpose………………………………………………………………(3)2.TaskRequirements………………………………………………(3)3.InstructionSetDesign……………………………………………(4)4.ROM/RAMDesign…………………………………………………(7)5.ControlUnitDe
2、sign………………………………………………(10)6.DescriptionofSimulatedWaveForms……………………(11)7.SimulationResults………………………………………………(11)8.ConclusionsandDiscussions…………………………………(13)9.Appendix……………………………………………………………(14)Page2of211.Purpose:ThepurposeofthisprojectistodesignasimpleCPU(CentralProces
3、singUnit).ThisCPUhasbasicinstructionset,andwewillutilizeitsinstructionsettogenerateaverysimpleprogramtoverifyitsperformance.Forsimplicity,wewillonlyconsidertherelationshipamongtheCPU,registers,memoryandinstructionset.Thatistosayweonlyneedconsiderthefollowingitems:Read/
4、WriteRegisters,Read/WriteMemoryandExecutetheinstructions.AtleastfourpartsconstituteasimpleCPU:thecontrolunit,theinternalregisters,theALUandinstructionset,whicharethemainaspectsofourprojectdesignandwillbestudied.2.TaskRequirements:(1)Altera’sMAX+plusIIEDAtoolisrecommend
5、edandprovidedfordesignworkandsimulation.(2)FinishtheinstructionsetofthissimpleCPU,givenasfollows:(3)Finishthecontrolunit,internalregistersandALU.(4)FinishaROMtostorethesourceprogramwithinstructionsetsandaRAMtostoretheresultoftheprogramoutput.Page3of213.InstructionSetDe
6、signSingle-addressinstructionformatisusedinoursimpleCPUdesign.Theinstructionwordcontainstwosections:theoperationcode(opcode),whichdefinesthefunctionofinstructions(addition,subtraction,logicoperations,etc.);theaddresspart,inmostinstructions,theaddresspartcontainsthememo
7、rylocationofthedatumtobeoperated,wecalleditdirectaddressing.Insomeinstructions,theaddresspartistheoperand,whichiscalledimmediateaddressing.Forsimplicity,thesizeofmemoryis256*16inthecomputer.Theinstructionwordhas16bits.Theopcodeparthas8bitsandaddressparthas8bits.Theform
8、atoftheinstructioncanbeshownbelow:Theinstructionsweneedtofinisharegivenasfollows,again:Theseinstructionsareexecutedas