欢迎来到天天文库
浏览记录
ID:61775439
大小:474.36 KB
页数:10页
时间:2021-03-20
《东南大学计算结构POC报告.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、ComputerOrganizationandArchitectureCOURSEDESIGNNAMESTUDENTNUMBERCOURSEComputerOrganizationandArchitectureCourseDesignPROJECTAParallelOutputControllerBasingOnVerilogHDLSOFTWAREPLATFORMISE14.1DATEMAR.17.20141.Purpose(1)Todesignandsimulateaparalleloutputcontroller
2、(POC)whichactsaninterfacebetweensystembusandprinter.(2)TheuseofISEsoftwarefordesignandsimulation.2.Tasks(1)POCisoneofthemostcommonI/Omodules,namelytheparalleloutputcontroller.Itplaystheroleofaninterfacebetweenthecomputersystembusandtheperipheral(suchasaprintero
3、rotheroutputdevices).Figure1PrinterConnectionFigureshowstheconnectingofaprintertothesystembusthroughthePOC.(2)ThecommunicationbetweenPOCandtheprinteriscontrolledbya“handshake”protocolillustratedinFigure.Figure2Thehandshake-timingdiagrambetweenPOCandtheprinterTh
4、ehandshakingprocessisdescribedasfollows:Whentheprinterisreadytoreceiveacharacter,itholdsRDY=1.ThePOCmustthenholdacharacteratPD(paralleldata)portandproduceapulseattheterminalTR(transferrequest).TheprinterwillchangeRDYto0,takethecharacteratPDandholdtheRDYat0until
5、thecharacterhasbeenprinted(e.g.5or10ms),thensetRDY=1againwhenitisreadytoreceivethenextcharacter.(Supposetheprinterhasonlyaonecharacter“buffer”register,sothateachcharactermustbeprintedbeforethenextcharacterissent).(3)ThebufferregisterBRisusedtoholdacharacterthat
6、hasbeensentviathesystembuswhilethatthecharacterisbeingtransferredtotheprinter.ThestatusregisterSRisusedfortwocontrolfunctions:SR7servesasareadyflagforsystembustransferstoBR(liketheprinterRDYsignalfortransfersfromPOCtotheprinter),andSR0isusedtoenableordisableint
7、erruptrequestsfromPOC.IfSR0=1,thenPOCwillinterruptwhenitisreadytoreceiveacharacter(i.e.,whenSR7=1).IfSR0=0,thenPOCwillnotinterrupt.TheotherbitsofSRarenotusedandempty.(4)ThetransferofacharactertoPOCviathesystembusproceedsasfollows.Inpollingmode,SR0isalways0.Thep
8、rocessorselectsSRbyaccessingtherelativeaddress,thenreadsSRregister,ifSR7=1,theprocessorselectsBRandwritesacharacterintoBR,thenprocessorclearsSR7toindicatethatthenewcharacter
此文档下载收益归作者所有