The Memory System-II.pdf

The Memory System-II.pdf

ID:34933499

大小:631.08 KB

页数:27页

时间:2019-03-14

The Memory System-II.pdf_第1页
The Memory System-II.pdf_第2页
The Memory System-II.pdf_第3页
The Memory System-II.pdf_第4页
The Memory System-II.pdf_第5页
资源描述:

《The Memory System-II.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、SFTW230:SystemsandNetworksIComputerOrganizationTopicscovered:Chapter5.TheMemorySystem(II)Dr.WUWen,FST,UMOutlineßInterleavingmemoryaccessacrossmemorymodulesßVirtualmemoriesßSecondarystoragedevices15.6.1InterleavingßThemainmemoryisstructuredasacollectionofphy

2、sicallyseparatemodules.Eachmodulehasitsownaddressanddatabufferregister(ABR&DBR).……MainmemoryßWehopetheaddressoffetchingdatacanbeevenlydistributed-->severalmodulesarekeptbusyduringtheexecutionprocess.Thisiscalled“interleavingmemoryaccesses”acrossseveralmemor

3、ymodules.2InterleavingßHowtolettheaddressesdistributeoverthemodules?©Twopossibleaddresslayouts.©Whichschemebelowcanbeinterleaved?©Interleavingmemoryaccessescanhideaccesslatency•FasteraccesstoablockofdataIninterleaved•Higheraverageuseofthememorysystemstructu

4、re,theremustbe2kmodules.3Example:theeffectofinterleavingissubstantialßSupposewehaveacachewith8words/blockOnareadmiss,weneedtoloadablockofdatafrommainmemory.What’sthetimeneeded?©Ittakes1clockcycletosendanaddresstothemainmemoryandonetosendbacktocache.DRAMallo

5、wsthefirstwordtobeaccessedin8cycles,andsubsequentwordsoftheblockareaccessedin4cyclesperwordA.Forsinglememorymodule:1+8+(7x4)+1=38cyclesprocessorcachememory4Example:theeffectofinterleavingissubstantialB.Forinterleavedscheme,thememoryisconstructedas4interleav

6、edmodulesßSendaddresses(1),all4modulesaccesstherequireddata(8cycles)ßTransferback(4cycles),atthesametime,thenextwordineachmoduleisaccessedß4cyclestotransferthemtocache1+8+4+4=17cycles.181181181Interleavingreduces181theblocktransfertime141bymorethanafactor14

7、1141of2.14155.7VirtualmemoriesßVirtualmemorytechnique©Themainmemorycanactasa“cache”forthesecondarystorage(magneticdisks).ßThephysicalmainmemoryinacomputerislimited©Alargeprogram•Itcannotcompletelyloadintothemainmemorytorunatonce.•Partsarestoredonsecondaryst

8、orage.•Whenanewpieceofaprogramistobetransferredintothemainmemory–Mainmemoryisfull->Someotherpiecemustbereplaced•Thenalleventuallyarebroughtintothemainmemory(usingDMA)asneeded©Operatingsystemautomatical

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。