计算机组成教学课件:Chapter8 MemorySystem_第1页
计算机组成教学课件:Chapter8 MemorySystem_第2页
计算机组成教学课件:Chapter8 MemorySystem_第3页
计算机组成教学课件:Chapter8 MemorySystem_第4页
计算机组成教学课件:Chapter8 MemorySystem_第5页
已阅读5页,还剩225页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Chapter8

TheMemorySystem2Contents8.1TheMemorySystemOverview8.2SemiconductorRAMMemories8.3ReadOnlyMemories8.4MemoryHierarchy8.5CacheMemories8.6VirtualMemory8.7SecondaryStorageSummary38.1TheMemorySystemOverviewInternalMemoryandExternalMemoryThetypicalcomputersystemisequippedwithahierarchyofmemorysubsystems.InternalMemory(PrimaryStorage)Internaltothesystem,directlyaccessiblebytheprocessor.Example:MainMemory,Cache,ProcessorRegistersExternalMemory(SecondaryStorage)Externaltothesystem,accessiblebytheprocessorviaanI/Omodule.4BasicConceptsMemoryLocationsandAddressesHowthememoryisorganized?Example:

Threewaysoforganizinga96-bitmemory5BasicConceptsMemoryLocationsandAddressesHowthememoryisorganized?Thememoryconsistsofmanymillionsofstoragecells,eachofwhichcanstoreabitofinformationhavingthevalue0or1.Thememoryisorganizedsothatagroupoffixedsizeofbitscanbestoredorretrievedinasingle,basicmemoryoperation.Word:Eachgroupoffixedsizeofbitsisreferredtoasaword.Wordlength:Thenumberofbitsineachwordisreferredtoaswordlength.Ittypicallyrangesfrom16to64bits.6Figure2.2.

Examplesofencodedinformationina32-bitword.(b)Fourcharacterscharactercharactercharactercharacter(a)AsignedintegerSignbit:

forpositivenumbers

fornegativenumbersASCIIASCIIASCIIASCII32bits8bits8bits8bits8bitsb31b30b1b0b310=b311=•••Example:a32-bitword7BasicConceptsMemoryLocationsandAddressesHowthememoryisorganized?Thememoryofacomputercanbeschematicallyrepresentedasacollectionofwords.8BasicConceptsMemoryLocationsandAddressesAddressandAddressSpaceAddressesarenumbersthatidentifymemorylocations.Itiscustomarytousenumbersfrom0through2k–1,forsomesuitablevalueofk,astheaddressesofsuccessivelocationsinthememory.The2kaddressesconstitutetheaddressspaceofthecomputer,andthememorycanhaveupto2kaddressablelocations.ByteAddressabilityThreebasicinformationquantities:BitByte:8bitsWord:Wordlengthrangesfrom16to64bits9BasicConceptsMemoryLocationsandAddressesByteAddressabilityByte-addressableMemoryThemostpracticalassignmentistohavesuccessiveaddressesrefertosuccessivebytelocationsinthememory.Big-endianAssignmentInthisassignment,thelowerbyteaddressesareusedforthemoresignificantbytes(theleftmostbytes)oftheword.Example:

Big-endianassignmentfor32-bitword-lengthbyte-addressablememory.Little-endianAssignmentInthisassignment,thelowerbyteaddressesareusedforthelesssignificantbytes(therightmostbytes)oftheword.Example:

Little-endianassignment10BasicConceptsMemoryLocationsandAddressesByteAddressabilityBig-endianAssignmentandLittle-endianAssignmentNote:Inbothcases,byteaddresses0,4,8,…,aretakenastheaddressesofsuccessivewordsinthememoryandaretheaddressesusedwhenspecifyingmemoryoperationsforwords.11BasicConceptsMemoryLocationsandAddressesBitAddressabilitySpecifytheLabelingofbitswithinabyteSpecifytheLabelingofbitswithinaword12BasicConceptsMemoryLocationsandAddressesWordAlignmentWordsaresaidtobealignedinmemoryiftheybeginatabyteaddressthatisamultipleofthenumberofbytesinaword.Wordaresaidtobeunalignedinmemoryiftheybeginatanarbitrarybyteaddress.AccessingNumbers,Characters,andCharacterStringsNumbers:specifytheirwordaddressesIndividualcharacters:specifytheirbyteaddressesCharacterStringsofVariableLength:givethebyteaddresscontainingthefirstcharacter,lengthofthestring13BasicConceptsMemoryOperationsConnectionofthememorytotheprocessor14BasicConceptsMemoryOperationsReadTransfersacopyofthecontentsofaspecificmemorylocationtotheprocessor.Processor:Sendstheaddressofthedesiredlocationtothememoryandrequeststhatitscontentsberead.Memory:Readsthedatastoredatthataddressandsendsthemtotheprocessor.15BasicConceptsMemoryOperationsWriteTransferanitemofinformationfromtheprocessortoaspecificlocation,overwritingtheformercontentsofthatlocation.Processor:Sendstheaddressofthedesiredlocationtothememory,togetherwiththedatatobewrittenintothatlocation.Memory:Usetheaddressanddatatoperformthewrite.16CharacteristicsofMemorySystemsCapacityInternalmemory:usuallyexpressedintermsofnumbersofbytesorwords.Externalmemory:usuallyexpressedintermsofnumbersofbytes.UnitofTransfer:Numberofbitsreadfrom,orwrittenintomemoryatatime.Internalmemory:usuallyequaltothenumberofdatalinesintoandoutofthememorymodule.Itisoftenequaltothenumberofthewordlength,butitmaynotbe.Externalmemory:dataareoftentransferredinmuchlargerunitsthanaword,andthesearereferredtoasblocks.17CharacteristicsofMemorySystemsMethodofAccessingSequentialAccessMemoryisorganizedintounitsofdata,calledrecords.Accessmustbemadeinaspecificlinearsequence.Thetimetoaccessanarbitraryrecordishighlyvariable.Example:MagneticTapeDirectAccessIndividualblocksorrecordshaveauniqueaddressbasedonphysicallocation.Accessisaccomplishedbydirectaccesstoreachageneralvicinityplussequentialsearching,countingorwaitingtoreachthefinallocation.Accesstimeisvariable.Example:

MagneticDisk18CharacteristicsofMemorySystemsMethodofAccessingRandomAccessAnymemorylocationcanbeselectedatrandomanddirectlyaddressedandaccessed.Thetimetoaccessagivenlocationisindependentofthelocation’saddressandisconstant.Example:

RAMAssociativeAccessAwordisretrievedbasedonaportionofitscontentsratherthanitsaddress.AccesstimeisindependentoflocationorpreviousaccessExample:

Cache19CharacteristicsofMemorySystemsPerformance(Speed)AccessTimeTimebetweenpresentingtheaddressandgettingthevaliddata(memoryorotherstorage)

Random-accessmemory:Thetimeittakestoperformareadorwriteoperation.Non-random-accessmemory:Thetimeittakestopositiontheread-writemechanismatthedesiredlocation.MemoryCycleTime(forrandomaccessmemory)Itconsistsoftheaccesstimeplusanyadditionaltimerequiredbeforeasecondaccesscancommence.MemoryCycleTime=AccessTime+RecoveryTimeNote:Accesstimeandmemorycycletimeareallmeasuresofthespeedofmemoryunits.20CharacteristicsofMemorySystemsPerformance(Speed)TransferRateItistherateatwhichdatacanbetransferredintooroutofamemoryunit.Random-accessmemory:itisequalto1/(cycletime).Non-random-accessmemory,therelationshipisTN=TA+N/R,where

TN:AveragetimetoreadorwriteNbits, TA:Averageaccesstime, N:Numberofbits, R:Transferrate,inbitspersecond(bps).21CharacteristicsofMemorySystemsPhysicalTypesSemiconductorExample:MainMemoryMagneticSurfaceExample:MagneticdiskandMagnetictapeOptical22CharacteristicsofMemorySystemsPhysicalCharacteristicVolatile/NonvolatileVolatile:Informationdecaysnaturallyorislostwhenelectricalpowerisswitchedoff.Nonvolatile:Informationoncerecordedremainswithoutdeteriorationuntildeliberatelychanged.Noelectricalpowerisneededtoretaininformation.Example:Magneticsurfacememoriesarenonvolatile.Semiconductormemorymaybeeithervolatileornonvolatile.Erasable/NonerasableErasable:Thecontentsofthememorycanbealtered.Nonerasable:Thecontentsofthememorycannotbealtered,exceptbydestroyingthestorageunit.238.2SemiconductorRAMMemoriesSemiconductorRAMMemoryThemostcommontypeofsemiconductormemoryisreferredtoasrandom-accessmemory(RAM).CharacteristicItispossiblebothtoreaddatafromthememoryandtowritenewdataintothememoryeasilyandrapidlyItisvolatile.Accesstimeisofjustafewnanoseconds.24RAMTechnologyStaticTechnologyInastaticRAM,binaryvaluesarestoredusingtraditionalflip-floplogic-gateconfigurations.DynamicTechnologyAdynamicRAMismadewithcellsthatstoredataaschargeoncapacitors.Thepresenceorabsenceofchargeinacapacitorisinterpretedasabinary1or0.NoteBothstaticRAMsanddynamicRAMsarevolatile.25StaticRAM(SRAM)ImplementationofaSRAMcellYXWordlineBitlinesFigure8.4.AstaticRAMcell.bT2T1b¢26StaticRAM(SRAM)ImplementationofaSRAMcellAssumethatthecellisinstate1ifthelogicvalueatpointXis1andatpointYis0.ReadOperationThewordlineisathighlevel.Read“1”:Thesignalonthebitlinebishighandthesignalonthebitlineb’islow.Read“0”:Thesignalonthebitlinebislowandthesignalonthebitlineb’ishigh.Note:Sense/writecircuitsattheendofthebitlinesmonitorthestateofbandb’andsettheoutputaccordingly.27StaticRAM(SRAM)ImplementationofaSRAMcellWriteOperationThewordlineisathighlevel.Write“1”:Placehighlevelsignalonbitlinebandplacelowlevelsignalonbitlineb’.Write“0”:Placehighlevelsignalonbitlinebandplacelowlevelsignalonbitlineb’.Note:TherequiredsignalsonthebitlinesaregeneratedbytheSense/Writecircuit.MaintainStateThewordlineisatgroundlevel.28StaticRAM(SRAM)CMOSRealizationofaSRAMcellMOSICNMOSCMOS: Complementary Metal-Oxide Semiconductor29StaticRAM(SRAM)CMOSRealizationofaSRAMcellThepowersupplyvoltageis5VinolderCMOSSRAMsor3.3Vinnewlow-voltageversions.Ifpowerisinterruptedandthenitisrestored,thelatchwillsettleintoastablestate,butitwillnotnecessarilybethesamestatethecellwasinbeforetheinterruption.CMOSSRAMs’powerconsumptionisverylow.AdvantageandDisadvantageofStaticRAMAdvantage:FastDisadvantage:Lowdensity,Highcost30InternalOrganizationofStaticRAMChips

Organizationof128BitCells(16×8)FFFigure8.2.

Organizationofbitcellsinamemorychip.circuitSense/WriteAddressdecoderFFCScellsMemorycircuitSense/WriteSense/WritecircuitDatainput/outputlines:A0A1A2A3W0W1W15b7b1b0WR/b¢7b¢1b¢0b7b1b0•••••••••••••••••••••••••••31InternalOrganizationofStaticRAMChips

Organizationof128BitCells(16×8)InternalOrganizationWordline:Allcellsofarowareconnectedtothewordline.Itisdrivenbytheaddressdecoder.Bitlines:ThecellsineachcolumnareconnectedtoaSense/Writecircuitbytwobitlines.Sense/Writecircuits:Read:Theysensetheinformationstoredinthecellsselectedbyawordlineandtransmitthisinformationtotheoutputdatalines.Write:Theyreceiveinputinformationandstoreitinthecellsoftheselectedword.32InternalOrganizationofStaticRAMChips

Organizationof128BitCells(16×8)ExternalConnectionsAddresslines(Input):A0–A3Datalines(Input/Output):b0–b7Controllines(Input)R/W(Read/Write):SpecifytherequiredReadorWriteoperation.CS(ChipSelect):Selectagivenchipinamulti-chipmemorysystem.PowerSupplylineGroundlineTotalConnections=4+8+2+1+1=1633InternalOrganizationofStaticRAMChips

Organizationof1024(1K)BitCells128×8OrganizationExternalConnectionsAddresslines(Input):A0–A6Datalines(Input/Output):b0–b7Controllines(Input):R/W,CSPowersupplylineGroundlineTotalConnections=7+8+2+1+1=1934InternalOrganizationofStaticRAMChips

Organizationof1024(1K)BitCells1K×1OrganizationFigure8.3.Organizationofa1K1memorychip.CSSense/Writecircuitryarraymemorycelladdress5-bitrowinput/outputData5-bitdecoderaddress5-bitcolumnaddress10-bitoutputmultiplexer32-to-1inputdemultiplexer3232×WR/W0W1W31and35InternalOrganizationofStaticRAMChips

Organizationof1024(1K)BitCells1K×1OrganizationExternalConnectionsAddresslines(Input):A0–A9Datalines(Input/Output):b0Controllines(Input):R/W,CSPowersupplylineGroundlineTotalConnections=10+1+2+1+1=15LargechipshaveessentiallythesameorganizationasFigure8.3butusealargermemorycellarrayandhavemoreexternalconnections.36StaticRAMChips

ExampleDIP(DualIn-linePackages, 双列直插封装。中小规模集 成电路均采用这种封装形式, 其引脚数一般不超过100)37StaticRAMChips

ExampleReadOperationPlacetheaddressofthebittobereadontheaddresspinsviatheaddressbus.(MakesureWriteEnableisnotactivewhenthishappens,sothattheSRAMknowsit'snotbeingwrittento.)ActivateChipSelecttoselecttheSRAMchip.WriteOperationPlacetheaddressofthecelltobewrittentoontheaddresspinsviatheaddressbus.Placethebitthatyou'regoingtowriteontheDataInpinviathedatabus.ActivateChipSelecttoselecttheSRAMchip.ActivateWriteEnablesothattheSRAMknowsit'sbeingwrittento.38DynamicRAMExampleofaDRAMcellFigure8.6.

Asingle-transistordynamicmemorycell

TCWordlineBitline39DynamicRAMExampleofaDRAMcellMaintainStateThewordlineislow.ReadOperationThewordlineishigh.Read“1”:Ifthechargestoredonthecapacitorisabovethethresholdvalue,thesenseamplifierdrivesthebitlinetoafullvoltagethatrepresents“1”.Thisvoltagerechargesthecapacitortothefullchargethatcorrespondsto“1”.Read“0”:Ifthechargestoredonthecapacitorisbelowthethresholdvalue,thesenseamplifierpullsthebitlinetogroundlevel,whichensuresthatthecapacitorwillhavenocharge,representing“0”.40DynamicRAMExampleofaDRAMcellWriteOperationThewordlineishigh.Write“1”:Thebitlineisappliedhighvoltage.Write“0”:Thebitlineisappliedlowvoltage.RefreshReadingthecontentsofaDRAMcellautomaticallyrefreshesitscontents.DisadvantageLongeraccesstimesLeaky,needstoberefreshedCannotbeeasilyintegratedwithCMOS41DynamicRAMInternalOrganizationofanAsynchronousDRAMChipExample: 16MDRAM

(2M×8)ColumnCSSense/WritecircuitscellarraylatchaddressRowColumnlatchdecoderRowdecoderaddress40965128×()×R/WA209-A80-¤D0D7RASCASFigure8.7.Internalorganizationofa2M×8dynamicmemorychip.42DynamicRAMInternalOrganizationofanAsynchronousDRAMChipExample(ctd.)12bitaddressbitsareneededtoselectarow.Another9bitsareneededtospecifyagroupof8bitsintheselectedrow.Total:21-bitaddressToreducethenumberofpinsneededforexternalconnections,therowandcolumnaddressesaremultiplexedon12pins.RowAddressStrobe(RAS)ColumnAddressStrobe(CAS)43DynamicRAMInternalOrganizationofanAsynchronousDRAMChipExample(ctd.):ReadOperationTherowaddressisplacedontheaddresspinsviatheaddressbus.TheRASpinisactivated,whichplacestherowaddressontotheRowAddressLatch.TheRowAddressDecoderselectstheproperrowtobesenttothesenseamplifiers.TheWriteEnableisdeactivated,sotheDRAMknowsthatit'snotbeingwrittento.Thecolumnaddressisplacedontheaddresspinsviatheaddressbus.44DynamicRAMInternalOrganizationofanAsynchronousDRAMChipExample(ctd.):ReadOperationTheCASpinisactivated,whichplacesthecolumnaddressontheColumnAddressLatch.

TheCASpinalsoservesastheOutputEnable,sooncetheCASsignalhasstabilizedthesenseamplifiersplacethedatafromtheselectedrowandcolumnontheDataOutpinsothatitcantravelthedatabusbackoutintothesystem.RASandCASarebothdeactivatedsothatthecyclecanbeginagain.45DynamicRAMDRAMRefreshLeakystoragePeriodicrefreshacrossDRAMrowsApplyingarowaddresscausesallcellsonthecorrespondingrowtobereadandrefreshedduringbothReadandWriteoperations.RefreshmentofaDRAMchipcanbeaccomplishedbyaccessingeachrowofcellsperiodically.TheDRAMcontrollerperiodicallysweepsthroughalloftherowsbycyclingRASrepeatedlyandplacingaseriesofrowaddressesontheaddressbus.46DynamicRAMDRAMRefreshUn-accessiblewhenrefreshingExample:4KrowsinaDRAM,100nsreadcycle,Decayin64ms4096*100ns=410μstorefreshonce410μs/64ms=0.64%unavailability47DynamicRAMDRAMRefreshRefreshStylesBurstyDistributed48DynamicRAMChipsExampleIntel2118:16K×1DifferentcontrolsignalsthanSRAMchipsRequiresonly1/2numberofinputaddresslines(AddressMultiplexing)ReplacedCSbyRASandCAS(verystricttimingconstraints)Separatesdatainputsandoutputs(typically)49DynamicRAMChipsExample:readsequencing50AsynchronousDRAMThetimingofthememoryiscontrolledasynchronously.Normal:RespondstoRASandCASsignals(noclock)Aspecializedmemorycontrollercircuitprovidesthenecessarycontrolsignals,RASandCASthatgovernthetiming.51AsynchronousDRAMQuestion:HowtoaccesstheotherbytesinthesamerowofaDRAMchip?Reselecttherow,andthenrepeatthereadprocessforreadingtheotherbyteinthesamerow.52AsynchronousDRAMQuestion:HowtoaccesstheotherbytesinthesamerowofaDRAMchip?Withoutreselectingtherow,addalatchtotheoutputofthesenseamplifierineachcolumn.ItisonlytoapplydifferentcolumnaddressesunderthecontrolofsuccessiveCASsignalstoplacethedifferentbytesonthedatalines.53AsynchronousDRAMFastPageMode(FPM)RowremainsopenafterRASformultipleCAScommandsItallowstransferringablockofdataatamuchfasterratethancanbeachievedfortransfersinvolvingrandomaddresses.54SynchronousDRAMs(SDRAMs)Theiroperationisdirectlysynchronizedwithaclocksignal.StructureofaSDRAMChipR/WRASCASCSClockCellarraylatchaddressRowdecoderRowFigure8.8.

SynchronousDRAM.decoderColumnRead/Writecircuits&latchescounteraddressColumnRow/ColumnaddressDatainputregisterDataoutputregisterDataRefreshcounterModeregisterandtimingcontrol55SynchronousDRAMs(SDRAMs)StructureofaSDRAMChip(ctd.)Ifanaccessismadeforrefreshingpurposeonly,itwillmerelyrefreshthecontentsofthecells,notchangingthecontentsofthelatches.ItisnotnecessarytoprovideexternallygeneratedpulsesontheCASlinetoselectsuccessivecolumns.Thenecessarycontrolsignalsareprovidedinternallyusingacolumncounterandtheclocksignal.SDRAMshaveseveraldifferentmodesofoperation,whichcanbeselectedbywritingcontrolinformationintoamoderegister.SDRAMshavebuilt-inrefreshcircuitry.Arefreshcounterisapartofbuilt-inrefreshcircuitry.56SynchronousDRAMs(SDRAMs)BurstOperationTheburstoperationsusetheblocktransfercapability.Themoderegisterholdsa12-bitvaluethattheSDRAMlooksatinordertodeterminehowmanycolumnsitshouldBURSTandinwhatorderitshouldBURSTthem.Example:Burstreadoflength4inanSDRAMR/WRASCASClockFigure8.9.

Burstreadoflength4inanSDRAM.RowColD0D1D2D3AddressData58SynchronousDRAMs(SDRAMs)SpeedofSDRAMThespeedofSDRAMisratedinMHzratherthaninnanoseconds(ns).AdvantageThismakesiteasiertocomparethebusspeedandtheSDRAMchipspeed.ExampleIntelhasdefinedPC100andPC133busspecificationsinwhichthesystembusiscontrolledbya100or133MHzclockrespectively.Therefore,majormanufacturersofmemorychipsproduce100and133MHzSDRAMchips.

NoteConverttheSDRAMclockspeedtonanosecondsbydividingthechipspeedinto1billionns.59SynchronousDRAMs(SDRAMs)LatencyandBandwidth

LatencyandBandwidtharetwoparametersindicatingtheperformanceofamemorysystem.LatencyReferstotheamountoftimeittakestotransferawordofdatatoorfromthememory.NoteInblocktransfers,latencyisusedtodenotethetimeittakestotransferthefirstwordofdata.WhenbuyingDRAM,thelatencyratingthatyouseemostoftenisthememoryaccesstime.60SynchronousDRAMs(SDRAMs)LatencyandBandwidth

Example:Thefirstwordofdataistransferred5clockcycleslater.Thelatencyis5clockcycles.R/WRASCASClockFigure8.9.

Burstreadoflength4inanSDRAM.RowColD0D1D2D3AddressData61SynchronousDRAMs(SDRAMs)LatencyandBandwidth

BandwidthThenumberofbitsorbytesthatcanbetransferredinonesecondisreferredtoasbandwidth.Unit:bitpersecondorbytepersecondThebandwidthofamemoryunitdependsonthespeedofaccesstothestoreddataandonthenumberofbitsthatcanbeaccessedinparallel.Theeffectivebandwidthalsodependsonthetransfercapabilityofthelinksthatconnectthememoryandtheprocessor,typicallythespeedofthebus.EffectiveBandwidth=BusSpeed×BusWidth62SynchronousDRAMs(SDRAMs)Double-Data-RateSDRAM(DDRSDRAM)ItaccessesthecellarrayinthesamewaywithSDRAM,buttransferdataonbothedgesoftheclock.ThelatencyofthesedevicesisthesameasforstandardSDRAMs,andtheirbandwidthisessentiallydoubledforlongbursttransfers.NameClockFreq.DataRateDDR200100MHZ200MHZDDR266133MHZ266MHZDDR333167MHZ333MHZDDR400200MHZ400MHZ63SynchronousDRAMs(SDRAMs)DDR2SDRAM基于DDR技术,并在关键领域有所提升FBGApackage(更为良好的电气性能与散热性)4-bitprefetchbufferHigherlatency64FBGA(Fine-PitchBallGridArray,细间距球栅阵列)TSOP(ThinSmallOutlinepackage,薄型小尺寸封装)65SynchronousDRAMs(SDRAMs)DDR3SDRAMComeswithapromiseofapowerconsumptionreductionof40%“Dual-gate”transistors(双门电路晶体管):有两个电子流输入口,一个晶体管能输入的电子流为原来的两倍,从而提升了传输速度。

8bitpre-fetchbuffer66RambusDRAM(RDRAM)RambusTechnologyThekeyfeatureofRambustechnologyisafastsignalingmethodusedtotransferinformationbetweenchips.Insteadofusing0orVsupplytorepresentthelogicvalues0or1,thesignalsconsistofmuchsmallervoltageswings(differentialsignaling)aroundareferencevoltage,Vref.TheVrefisabout2V,thetwologicvaluesarerepresentedby0.3VswingsaboveorbelowVref.Smallvoltageswings=>

speedoftransmission.67StructureofLargerMemoriesStaticMemorySystemsHowtoconnectanumberofstaticmemorychipstoformamuchlargermemory?位扩展法

芯片每个存储单元的位数小于存储器字长,需进行位扩展。例:用1M×1位存储芯片组成1M×8位(1MB)的RAM共需8片1M×1位的芯片,每片存储同一位权的一位数据(片的I/O端接Di)访问芯片需20位地址码A19~A0

读写控制信号WE688

I/O……A0D07I/O6I/O5I/O4I/O3I/O2I/O11Mⅹ1I/O中央处理器(CPU)数据总线地址总线D7A19WE69StructureofLargerMemoriesStaticMemorySystems字扩展法芯片每个存储单元的位数等于存储器字长,但容量(字数)不够,需进行字扩展。

例:用256K×8位芯片组成1MB的RAM共需1M/256K=4片256K×8位的芯片1MB容量需20位地址码(A19~A0),而256KB芯片需18位片内地址码(A17~A0)用高二位地址A19A18经2:4译码器(74139)选择芯片读/写每片8条I/O线分别接D7~D0

70256Kⅹ8

256Kⅹ8256Kⅹ8256Kⅹ82:4译码器A19A18A0A17D0~D7CPU01231234CSCSCSCS71StructureofLargerMemoriesStaticMemorySystems字位同时扩展法

单片芯片的字数和位数均小于主存的容量要求,需进行字、位的扩展。

例:

用512K×8位的存储器芯片组成2M×32位的RAM。共需

片512K×8位的芯片ConclusionAssumethatthecapacityofamemoryunitisM×Nbit,ifconstitutedofusingl×kbitchips,thenumberoftotalchipsneededis(M/l)×(N/k).Figure8.10.Organizationofa2M32memorymoduleusing512K8staticmemorychips.19-bitinternalchipaddressChipselect

memorychipdecoder2-bitaddresses21-bit19-bitaddress512K8×A0A1A19

memorychipA20D31-24D7-0D23-16D15-8512K8×8-bitdatainput/output73StructureofLargerMemoriesStaticMemorySystems例:CPU的地址总线16根(A15~A0,A0为低位),双向数据总线8根(D7~D0),控制总线中与主存有关的信号有(允许访存,低电平有效),(高电平为读命令,低电平为写命令)。主存地址空间分配如下:0000H~3FFFH为系统程序区,由只读存储芯片组成;4000H~4FFFH为系统程序工作区,由SRAM组成;6000H~9FFFH为用户程序区,也由SRAM组成。按字节编址。现有如下存储器芯片:EPROM:8K×8位(控制端仅有CS)SRAM:16K×1位,2K×8位,4K×8位,8K×8位请从上述芯片中选择适当芯片设计该计算机主存储器,画出主存储器逻辑框图,注意画出选片逻辑(可选用门电路及3:8译码器74LS138)与CPU的连接,说明选哪些存储器芯片及选多少片。74StructureofLargerMemoriesStaticMemorySystems【解】主存地址空间分布:0000H3FFFHFFFFH4FFFH9FFFH16KB(EPROM)4KB(SRAM)4KB(空)16KB(SRAM)24KB(空)4000H6000HA000H~~~~75......D0D7R/WA0A10A11A12A13A14A15MREQ7DAA80012EPROMDKBCS...D7D0A0A12SRAM8KBCS...D7D0A0A12SRAM8KBCS......D7D0A0A11SRAM4KBCS...D

7D0A0A12EPROM8KBCSR/WR/WY0Y1Y2Y3Y4Y5Y6Y7ABCG2BG2ACPU74LS138R/W76StructureofLargerMemoriesDynamicMemorySystemsTheorganizationoflargedynamicmemorysystemsisessentiallythesameastheabovestaticmemorysystem.SIMM(SingleIn-lineMemoryModules)ASIMMisabasicDRAMpackagingtypethatfitsmostoldersystems.ASIMMcanbeeithersingle-sided(withRAMchipsononesideonly)ordouble-sided(withRAMchipsonbothsides).30-pinSIMM:1-16MB;8bits;plus1bitforparity;single-sided72-pinSIMM:1MB,4MB,16MB(single-sided);2MB,8MB,32MB(double-sided);32bits,plus4bitsforparity/ECC.77StructureofLargerMemoriesDynamicMemorySystemsSIMM(SingleIn-lineMemoryModules)Example:Asingleinlinememorymodule(SIMM)holding32MB.TwoofthechipscontroltheSIMM.78StructureofLargerMemoriesDynamicMemorySystemsDIMM(DualIn-lineMemoryModules)Atpresent,DIMMsarethestandardwayformemorytobepackaged.ADIMMiscapableofdelivering64databitsatonce.MostcommontypesofDIMMs72-pin,144-pin,200-pinDIMMs:usedforSO-DIMM(SmallOutlineDIMM)168-pinDIMMs,usedforFPM(FastPageMode)DRAM,EDO(ExtendedDataOut)DRAM,andSDRAM184-pinDIMMs,usedforDDRSDRAM240-pinDIMMs,usedforDDR2SDRAM79StructureofLargerMemoriesDynamicMemorySystemsDIMM(DualIn-lineMemoryModules)Example:TwotypesofDIMMs:a168-pinSDRAMmodule(top)anda184-pinDDRSDRAMmodule(bottom).80StructureofLargerMemoriesDynamicMemorySystemsRIMM(RambusIn-lineMemoryModules)81MemorySystemConsiderationsTheChoiceofaRAMChipForagivenapplication,considerfollowingfactorsCostSpeedPowerdissipationSizeofthechipStaticRAMs:mostlyusedincachememoriesDynamicRAMs:Predominantchoiceforimplementingcomputermainmemories.82MemorySystemConsiderationsM

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论