资源描述:
《微机原理ch06memoryandmemoryinterfacing》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、6MEMORYANDMEMORYINTERFACING6.1SEMICONDUCTORMEMORYFUNDAMENTALSInthedesignofallcomputers,semiconductormemoriesareusedasprimarystorageforcodeanddata.SemiconductormemoriesareconnecteddirectlytotheCPUandtheyarethememorythattheCPUfirstasksforinformation(co
2、deanddata).Forthisreason,semiconductormemoriesarereferredtoasprimarymemory.6.1.1MemorycapacityThenumberofbitsthatasemiconductormemorychipcanstoreiscalleditschipcapacity.ItcanbeinunitsofKbits(kilobits),Mbits(megabits),andsoon.Thismustbedistinguishedfr
3、omthestoragecapacityofcomputers.WhilethememorycapacityofamemoryICchipisalwaysgiveninbits,thememorycapacityofacomputerisgiveninbytes.6.1.2MemoryorganizationMemorychipsareorganizedintoanumberoflocationswithintheIC.Eachlocationcanhold1bit,4bits,8bits,or
4、even16bits,dependingonhowitisdesignedinternally.Thenumberofbitsthateachlocationwithinthememorychipcanholdisalwaysequaltothenumberofdatapinsonthechip.Howmanylocationsexistsinsideamemorychipdependsonthenumberofaddresspins.Thenumberoflocationswithinamem
5、oryICalwaysequals2xwherexisthenumberofaddresspins.Therefore,thetotalnumberofbitsthatamemorychipcanstoreisequaltothenumberoflocationstimesthenumberofdatabitperlocation.Tosummary:1)Eachmemorychipcontains2xlocations,wherexisthenumberofaddresspinsonthech
6、ip.2)Eachlocationcontainsybits,whereyisthenumberofdatapinsonthechip.3)Theentirechipwillcontain2x×ybits,wherexisthenumberofaddresspinsonthechipandyisthenumberofdatapinsonthechip.4)The2x×yisreferredtoastheorganizationofthememorychip,wherexisthenumberof
7、addresspinsonthechipandyisthenumberofdatapinsonthechip.5)For2x,use表61togivethenumberoflocationsinKorMunits.表61Powersof2x2x101K112K124K138K1416K1532K1664K17128K18256K19512K201M212M224M238M2416M324GExample1Agivenmemorychiphas12addresspinsand8datapins
8、.Find:1)theorganization2)thecapacitySolution:1)Thismemorychiphas4096locations(212=4096),andeachlocationcanhold8bitsofdata.Thisorganizationof4096×8,oftenrepresentedas4K×8.2)Thecapacityisequalto32Kbitssincethereisatotalof4Klocationsandeachlocationscanh