资源描述:
《东南大学CPU设计报告(附源程序vhdl)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、CPUReport—04009ComputerOrganizationandArchitectureCourseDesignMicroprogrammedCPUDesignSchoolofInformationScienceandEngineeringSoutheastUniversity2012-04-0729CPUReport—04009CONTENTS1.Purpose22.Tasks22.1InstructionSet2Table1Listofinstructionsandrelevantopcodes2.2InternalRegis
2、tersandMemory32.3ALU3Table2ALUOperations2.4MicroprogrammedControlUnit4Table3ThemeaningofeachbitofthemicroinstructionTable4TheSequenceofMicroinstructions(appendix)Table5Themeaningofeachbitofthe8-bitflag.3.Top-LevelStructure63.1Symbolsofinternalregisters,ALU,CUandmemory63.2To
3、p-LevelStructureofCPU74.TheSimulationInputWaveforms105.Test9Testproblem1:testLOAD,STORE,AND,SHR,SHL,SAR,SAL9Table7Testofprogramofproblem1Testproblem2:testSUB,ADD,JMPGEZ,HALT11Table8Testofprogramtocalculate1+2+……100Testproblem3:testJMP,MPY,OR,NOT13Table9Testofprogramtocalcul
4、ate((543-800)3)OR((543+125)),not5436.ConclusionsandDiscussions167.Appendix1729CPUReport—04009MicroprogrammedCPUDesign1.Purpose:ThepurposeofthisprojectistodesignasimpleCPU(CentralProcessingUnit).ThisCPUhasbasicinstructionset,andwewillutilizeitsinstructionsettogenerateaverysi
5、mpleprogramtoverifyitsperformance.Forsimplicity,wewillonlyconsidertherelationshipamongtheCPU,registers,memoryandinstructionset.Thatistosayweonlyneedconsiderthefollowingitems:Read/WriteRegisters,Read/WriteMemoryandExecutetheinstructions.2.Tasks:Atleastfourpartsconstituteasim
6、pleCPU:theinstructionset,theinternalregisters,theALUandthecontrolunit.2.1InstructionSetSingle-addressinstructionformatisusedinmysimpleCPUdesign.Theinstructionwordcontainstwosections:theoperationcode(opcode),whichdefinesthefunctionofinstructions(addition,subtraction,logicope
7、rations,etc.);theaddresspart,inmostinstructions,theaddresspartcontainsthememorylocationofthedatumtobeoperated,wecalleditdirectaddressing.Insomeinstructions,theaddresspartistheoperand,whichiscalledimmediateaddressing.Table1ListofinstructionsandrelevantopcodesINSTRUCTIONOPCOD
8、E(BIN)OPCODE(HEX)COMMENTSSTOREX0000000101ACC→[X]LOADX0000001002[X]→ACCADDX00000011