欢迎来到天天文库
浏览记录
ID:42900109
大小:693.18 KB
页数:24页
时间:2019-09-20
《The Memory System-I》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、SFTW230:SystemsandNetworksIComputerOrganizationTopicscovered:Chapter5.TheMemorySystem(I)Dr.WUWen,FST,UMOutlineßSomebasicconceptsßMemoryhierarchyßCachememoriesßSemiconductorRAMmemories15.1SomebasicconceptsßMaximumsizeofthememorydependsontheaddressingscheme:©16-bitcomputer
2、generates16-bitaddressesandcanaddressupto216=66536=64Kmemorylocations.©32-bitcomputergenerates32-bitaddressesandcanaddressupto232=4Gmemorylocations.210–1K=220–1M=–1G=230–1T=240©Mostmachinesbyteaddressablebutretrieve/storedatainwordsaboutonememoryaccess.2Somebasicconcepts
3、(cont.)ProcessorMemoryk-bitaddressbusMARn-bitdatabuskUpto2addressableMDRlocationsWordlength=nbitsControllines(,MFC,etc.)R/W•RecallthatthedatatransfersbetweenaprocessorandmemoryinvolvestworegistersMARandMDR.•MAR:kbitslong;MDR:nbitslong.Æmemoryunitbeupto2k.•Controllinesinc
4、ludeR/WandMemoryFunctionCompleted(MFC)Æcoordinatingdatatransfers.3Memoryhierarchy(5.4and5.5inTextbook)ßThememorystructureofacomputer©Multiplelevelsofmemorieswithdifferentspeedsandsizes.•Closertoprocessor,fasterandsmaller4MemoryhierarchyProcessor•ProcessorregistersFastest
5、accessistothedataheldinRegistersregistersareatthetopofthememoryhierarchy.IncreasingIncreasingIncreasingsizespeedcostperbit•ProcessorcachePrimaryL1Relativelysmallamountofmemorythatcachecanbeimplementedontheprocessorchip.•Twolevelsofcache.Level1(L1)cacheSecondaryisonthepro
6、cessorchip.Level2(L2)cacheL2cacheisinbetweenmainmemoryandprocessor.(earlierprocessorgeneration)•MainmemoryMainMuchlarger,butmuchslowerthancachememorymemory.•Magneticdisks.Hugeamountofinexpensivestorage.Magneticdisksecondarymemory5CacheMemoriesßCachememory©Anarchitectural
7、arrangementwhichmakesthemainmemoryappearfastertotheprocessorthanitreallyis.ßToreducetheexecutiontime©WeshouldimprovethepossibilityoffindingthecurrentexecutedinstructionsinthecacheHowTo?•AnalysistheprogramexecutionpatternDuringsomeperiodoftime,manyinstructionsinlocalizeda
8、reasofaprogramareexecutedmoreoftenthanothers.localityofreference6LocalityofreferenceßTwoforms:©Temporal
此文档下载收益归作者所有