版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1.1 Memory(contentsinhex):300:3005;301:5940;302:7006 Step1:3005IR;Step2:3AC Step3:5940IR;Step4:3+2=5AC Step5:7006IR;Step6:ACDevice61.2 1. a. ThePCcontains300,theaddressofthefirstinstruction.ThisvalueisloadedintotheMAR. b. Thevalueinlocation300(whichistheinstructionwiththevalue1940inhexadecimal)isloadedintotheMBR,andthePCisincremented.Thesetwostepscanbedoneinparallel. c. ThevalueintheMBRisloadedintotheIR. 2. a. TheaddressportionoftheIR(940)isloadedintotheMAR. b. Thevalueinlocation940isloadedintotheMBR. c. ThevalueintheMBRisloadedintotheAC. 3. a. ThevalueinthePC(301)isloadedintotheMAR. b. Thevalueinlocation301(whichistheinstructionwiththevalue5941)isloadedintotheMBR,andthePCisincremented. c. ThevalueintheMBRisloadedintotheIR. 4. a. TheaddressportionoftheIR(941)isloadedintotheMAR. b. Thevalueinlocation941isloadedintotheMBR. c. TheoldvalueoftheACandthevalueoflocationMBRareaddedandtheresultisstoredintheAC. 5. a. ThevalueinthePC(302)isloadedintotheMAR. b. Thevalueinlocation302(whichistheinstructionwiththevalue2941)isloadedintotheMBR,andthePCisincremented. c. ThevalueintheMBRisloadedintotheIR. 6. a. TheaddressportionoftheIR(941)isloadedintotheMAR. b. ThevalueintheACisloadedintotheMBR. c. ThevalueintheMBRisstoredinlocation941.1.3 a. 224 b. (1) Ifthelocaladdressbusis32bits,thewholeaddresscanbetransferredatonceanddecodedinmemory.However,sincethedatabusisonly16bits,itwillrequire2cyclestofetcha32-bitinstructionoroperand. (2) The16bitsoftheaddressplacedontheaddressbuscan'taccessthewholememory.Thusamorecomplexmemoryinterfacecontrolisneededtolatchthefirstpartoftheaddressandthenthesecondpart(sincethemicroprocessorwillendintwosteps).Fora32-bitaddress,onemayassumethefirsthalfwilldecodetoaccessa"row"inmemory,whilethesecondhalfissentlatertoaccessa"column"inmemory.Inadditiontothetwo-stepaddressoperation,themicroprocessorwillneed2cyclestofetchthe32bitinstruction/operand. c. Theprogramcountermustbeatleast24bits.Typically,a32-bitmicroprocessorwillhavea32-bitexternaladdressbusanda32-bitprogramcounter,unlesson-chipsegmentregistersareusedthatmayworkwithasmallerprogramcounter.Iftheinstructionregisteristocontainthewholeinstruction,itwillhavetobe32-bitslong;ifitwillcontainonlytheopcode(calledtheopcoderegister)thenitwillhavetobe8bitslong.1.4 Incases(a)and(b),themicroprocessorwillbeabletoaccess216=64Kbytes;theonlydifferenceisthatwithan8-bitmemoryeachaccesswilltransferabyte,whilewitha16-bitmemoryanaccessmaytransferabyteora16-byteword.Forcase(c),separateinputandoutputinstructionsareneeded,whoseexecutionwillgenerateseparate"I/Osignals"(differentfromthe"memorysignals"generatedwiththeexecutionofmemory-typeinstructions);ataminimum,oneadditionaloutputpinwillberequiredtocarrythisnewsignal.Forcase(d),itcansupport28=256inputand281.5 Clockcycle= Buscycle=4125ns=500ns 2bytestransferredevery500ns;thustransferrate=4MBytes/sec Doublingthefrequencymaymeanadoptinganewchipmanufacturingtechnology(assumingeachinstructionswillhavethesamenumberofclockcycles);doublingtheexternaldatabusmeanswider(maybenewer)on-chipdatabusdrivers/latchesandmodificationstothebuscontrollogic.Inthefirstcase,thespeedofthememorychipswillalsoneedtodouble(roughly)nottoslowdownthemicroprocessor;inthesecondcase,the"wordlength"ofthememorywillhavetodoubletobeabletosend/receive32-bitquantities.1.6 a. WhentheCPUhasdatatosendtotheteletype,itchecksFGO.IfFGO=0,theCPUmustwait.IfFGO=1,theCPUtransfersthecontentsoftheACtoOUTRandsetsFGOto0.TheteletypesetsFGIto1afterthewordisprinted. b. Theprocessdescribedin(a)isverywasteful.TheCPU,whichismuchfasterthantheteletype,mustrepeatedlycheckFGIandFGO.Ifinterruptsareused,theteletypecanissueaninterrupttotheCPUwheneveritisreadytoacceptorsenddata.TheIENregistercanbesetbytheCPU(underprogrammercontrol)1.7 Ifaprocessorisheldupinattemptingtoreadorwritememory,usuallynodamageoccursexceptaslightlossoftime.However,aDMAtransfermaybetoorfromadevicethatisreceivingorsendingdatainastream(e.g.,diskortape),andcannotbestopped.Thus,iftheDMAmoduleisheldup(deniedcontinuingaccesstomainmemory),datawillbelost.1.8 Letusignoredataread/writeoperationsandassumetheprocessoronlyfetchesinstructions.Thentheprocessorneedsaccesstomainmemoryonceeverymicrosecond.TheDMAmoduleistransferringcharactersatarateof1200characterspersecond,oroneevery833µs.TheDMAtherefore"steals"every833rdcycle.Thisslowsdowntheprocessorapproximately1.9 a. Theprocessorcanonlydevote5%ofitstimetoI/O.ThusthemaximumI/Oinstructionexecutionrateis106 b. ThenumberofmachinecyclesavailableforDMAcontrolis 106(0.055+0.952)=2.15106 IfweassumethattheDMAmodulecanuseallofthesecycles,andignoreanysetuporstatus-checkingtime,thenthisvalueisthemaximumI/Otransferrate.1.10 a. b. Thetenaccessestoa[i]withintheinnerforloopwhichoccurwithinashortintervaloftime.1.11 Define Ci = Averagecostperbit,memoryleveli Si = Sizeofmemoryleveli Ti = Timetoaccessawordinmemoryleveli Hi = Probabilitythatawordisinmemoryiandinnohigher-levelmemory Bi = Timetotransferablockofdatafrommemorylevel(i+1)tomemoryleveli Letcachebememorylevel1;mainmemory,memorylevel2;andsoon,foratotalofNlevelsofmemory.Then ThederivationofTsismorecomplicated.Webeginwiththeresultfromprobabilitytheorythat: Wecanwrite: WeneedtorealizethatifawordisinM1(cache),itisreadimmediately.IfitisinM2butnotM1,thenablockofdataistransferredfromM2toM1andthenread.Thus: T2=B1+T1 Further T3=B2+T2=B1+B2+T1 Generalizing: So But Finally1.12 a. Cost=Cm8106=8103 b. Cost=Cc8106=8104¢=$800 c. FromEquation1.1: 1.1T1=T1+
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 合同管理培训合同:上海项目实践与招投标(2025版)
- 二零二五年度智慧城市建设名义合伙人合同3篇
- 2025年度农民工劳动合同电子化管理方案及实施细则3篇
- 二零二五年度农业产业链金融服务创新合同-@-1
- 2025版企业内部设备维修承包合同规范文本4篇
- 2025年度排洪渠项目监理合同模板3篇
- 二零二五年度人工智能核心算法软件知识产权独家转让合同3篇
- 二零二五年度全新品牌专卖店开设服务合同范本4篇
- 2025年度票据代理业务委托合同范本6篇
- 2025年度苗圃技术员岗位聘用合同修订版
- GB/T 45107-2024表土剥离及其再利用技术要求
- 2024-2025学年八年级上学期1月期末物理试题(含答案)
- 商场电气设备维护劳务合同
- 《妊娠期恶心呕吐及妊娠剧吐管理指南(2024年)》解读
- 2023年国家公务员录用考试《行测》真题(行政执法)及答案解析
- 全国教学设计大赛一等奖英语七年级上册(人教2024年新编)《Unit 2 Were Family!》单元教学设计
- 2024智慧医疗数据字典标准值域代码
- 年产12万吨装配式智能钢结构项目可行性研究报告模板-立项备案
- 【独家揭秘】2024年企业微信年费全解析:9大行业收费标准一览
- 医疗器械经销商会议
- 《±1100kV特高压直流换流变压器使用技术条件》
评论
0/150
提交评论