资源描述:
《11-memory-hierarchy》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、WuhanUniversityTheMemoryHierarchyComputerSystem11thLecture,May16,2017Instructor:CienFan1WuhanUniversityTodayStoragetechnologiesandtrendsLocalityofreferenceCachinginthememoryhierarchy2WuhanUniversityRandom-AccessMemory(RAM)KeyfeaturesRAMistraditionallypackagedasachip.Basicstor
2、ageunitisnormallyacell(onebitpercell).MultipleRAMchipsformamemory.RAMcomesintwovarieties:SRAM(StaticRAM)DRAM(DynamicRAM)3WuhanUniversitySRAMvsDRAMSummaryTrans.AccessNeedsNeedsperbittimerefresh?EDC?CostApplicationsSRAM4or61XNoMaybe100xCachememoriesDRAM110XYesYes1XMainmemories,fr
3、amebuffers4WuhanUniversityNonvolatileMemoriesDRAMandSRAMarevolatilememoriesLoseinformationifpoweredoff.NonvolatilememoriesretainvalueevenifpoweredoffRead-onlymemory(ROM):programmedduringproductionProgrammableROM(PROM):canbeprogrammedonceEraseablePROM(EPROM):canbebulkerased(UV
4、,X-Ray)ElectricallyeraseablePROM(EEPROM):electronicerasecapabilityFlashmemory:EEPROMs.withpartial(block-level)erasecapabilityWearsoutafterabout100,000erasingsUsesforNonvolatileMemoriesFirmwareprogramsstoredinaROM(BIOS,controllersfordisks,networkcards,graphicsaccelerators,secur
5、itysubsystems,…)Solidstatedisks(replacerotatingdisksinthumbdrives,smartphones,mp3players,tablets,laptops,…)Diskcaches5WuhanUniversityTraditionalBusStructureConnectingCPUandMemoryAbusisacollectionofparallelwiresthatcarryaddress,data,andcontrolsignals.Busesaretypicallysharedbymul
6、tipledevices.CPUchipRegisterfileALUSystembusMemorybusI/OMainBusinterfacebridgememory6WuhanUniversityMemoryReadTransaction(1)CPUplacesaddressAonthememorybus.RegisterfileLoadoperation:movqA,%raxALU%raxMainmemoryI/Obridge0ABusinterfacexA7WuhanUniversityMemoryReadTransaction(2)Mainme
7、moryreadsAfromthememorybus,retrieveswordx,andplacesitonthebus.RegisterfileLoadoperation:movqA,%raxALU%raxMainmemoryI/Obridgex0BusinterfacexA8WuhanUniversityMemoryReadTransaction(3)CPUreadwordxfromthebusandcopiesitintoregister%rax.RegisterfileLoadoperation:movqA,%raxALU%raxxMainmem
8、oryI/Obridge0Businterfacex