欢迎来到天天文库
浏览记录
ID:41545733
大小:237.43 KB
页数:7页
时间:2019-08-27
《计算结构POC报告04009028单佳炯》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、TheReportofPOCDesignNAME:Shanjiajiong(单佳炯)NUMER:04009028COURSE:COACourseDesignPROJECT:POCDesignDATE:MAR.282012Purpose:Thepurposeofthisprojectistodesignandsimulateaparalleloutputcontroller(POC)whichactsaninterfacebetweensystembusandprinter.TheAltera'sMaxpl
2、usIIEDAtoolisrecommendedandprovidedforsimulation.PleaserefertoWilliam^tallings/XomputerOrganizationandArchitecture,DesigningforPerformance—P・65~75;P.185T90.Tasks:3.ThephysicalmodelofPOCPOCisoneofthemostcommonI/Omodules,namelytheparalleloutputcontroller.It
3、playstheroleofaninterfacebetweenthecomputersystembusandtheperipheral(suchasaprinterorotheroutputdevices).ADRWIRQProcessor,3ER—Bufferregister(8bits)IRQRWDACSSR—Steiusregister(8bits)SR7—ReadyflagbitSRO—InterruptenablebitLSR6-SR1—emptybitsIRQ—intem/ptrequest
4、te/min&lispulledlowwhenSRXSRMPOC—paralleloutputcontrollerSRBRPOC8RDYTRPrinterFigure1PrinterConnectionFigure1showstheconnectingofaprintertothesystembusthroughthePOC・ThecommunicationbetweenPOCandtheprinteriscontrolledbya"handshake"protocolillustratedinFigur
5、e2.OutputdevicetakesthebyteatPDduringthisintervalb.ThelogicalmodelofPOCThehandshakingprocessisdescribedasfollows:Whentheprinterisreadytoreceiveacharacter,itholdsRDY=l.ThePOCmustthenholdacharacteratPD(paralleldata)portandproduceapulseattheterminalTR(transf
6、errequest).TheprinterwillchangeRDYto0,takethecharacteratPDandholdtheRDYat0untilthecharacterhasbeenprinted(e.g.5or10ms),thensetRDY=1againwhenitisreadytoreceivethenextcharacter.(Supposetheprinterhasonlyaonecharacter"buffer"register,sothateachcharactermustbe
7、printedbeforethenextcharacterissent).Inordertoeaseyourdesignwork,thefurtherexplanationsofthePOCoperationsandsomedesignhintsaregivenasfollows:ThebufferregisterBRisusedtoholdacharacterthathasbeensentviathesystembuswhilethatthecharacterisbeingtransferredtoth
8、eprinter.ThestatusregisterSRisusedfortwocontrolfunctions:SR7servesasareadyflagforsystembustransferstoBR(liketheprinterRDYsignalfortransfersfromPOCtotheprinter),andSROisusedtoenableordisableinterruptrequestsfromPOC.I
此文档下载收益归作者所有