海思hi3536v100软硬件开发hi3536ddr channel capacity configuration description_第1页
海思hi3536v100软硬件开发hi3536ddr channel capacity configuration description_第2页
免费预览已结束,剩余1页可下载查看

下载本文档

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

文档简介

1、Copyright HiSilicon Technologies .s.NopartofmaybereproducedortransmittedinanyformorbyanymeanswithoutwrittenconsentofHiSiliconTechnologies.Trademarks and s,andotherHiSiliconCopyright HiSilicon Technologies .s.NopartofmaybereproducedortransmittedinanyformorbyanymeanswithoutwrittenconsentofHiSiliconTec

2、hnologies.Trademarks and s,andotherHiSiliconiconsaretrademarksofHiSiliconTechnologies.Allothertrademarksandtradenamesmentioned arethepropertyoft eirThepurchasedproducts,andfeaturesarestipulatedbythecontractmadenHiSiliconandfeatureshisdocumentmaynotthecustomer.Allorpartoftheproducts,hepurchasescopeor

3、theusagescope.Unlessotherwisespecifiedinthecontract,allareprovidedAS Swithoutwarranties,information,orionsof anykind, eitherexpressorimp The informationpreparation of thisibjecttochangewithoutnotice Everysbeento ensure accuracy of the contents, but all sements,information,and do not constitute a war

4、ranty of any kind, express or imp d.HiSiliconTechnologies.IndustrialBase Bantian, Longgang Shenzhen 518129 http:Ie00B01(2015-06-Hi3536DDRChannelCapacityConfiguration 1ChangingtheDDR1ChangingtheDDRC 1.1 describeshowtochangethecapacityofeachDDRchannelHi3536DDRChannelCapacityConfiguration 1ChangingtheD

5、DR1ChangingtheDDRC 1.1 describeshowtochangethecapacityofeachDDRchannelbyconfiguringcorrespondingDDRTheDDRhedefaultHi3536softwaredevelopmentkit(SDK)arebasedonthefollowingDDRFour16-bit4GbitsDDRSDRAMs(onthedemoEight8-bit4GbitsDDRSDRAMs(onthedemoplusIfyouwanttomodifytheDDRcapacity,followthehefollowingYo

6、uneedtopayattentiontothemodifiedhefollowingsections.Fordetailsaboutvaluesoftheunmodifi dbits,s e the heSDK.Youareadvisednottochangevaluesoftheunmodifiedbits.Fordetails,see thechaptersrelatedtotheDDR hechipTochangetheDDRcapacity,theregistersinbothsection1.1.1andsection1.1.2needtobe 1.1.1Configuringth

7、eCapacityoftheDDRSDRAMConnectedto Each ChannelTospeci ytherowaddress,columnaddress,b to con igure the following registers:addresswidth,anddatabitwidth,you Totalcapacity=2rowx2colxxDQForIe00B01(2015-06-3Hi3536DDRChannelCapacityConfiguration 1ChangingtheDDRIfchannel0connectstoa32-bit2GBDDR3SDRAM,the v

8、aluesof theregisterfieldsareas follows:mem_row= 101(16 bits), mem_col = 010(10 bits), mem_b =1 (23 = 8 b s). The DQ width is 32 bits.Therefore,thetotalcapacityis2GB(216x210 xHi3536DDRChannelCapacityConfiguration 1ChangingtheDDRIfchannel0connectstoa32-bit2GBDDR3SDRAM,the valuesof theregisterfieldsare

9、as follows:mem_row= 101(16 bits), mem_col = 010(10 bits), mem_b =1 (23 = 8 b s). The DQ width is 32 bits.Therefore,thetotalcapacityis2GB(216x210 x23x32bits=16Gbits).Thechannelb-column(RBC)isconfiguredasIfchannel1connectstoa32-bit1GBDDR3SDRAM,the th registerfieldsarefollows: mem_row = 100 (15 bits),

10、mem_col = 010 (10 bits), mem_b= 1 (23 = 8 bThe DQ width is 32 bits.Therefore,thetotalcapacityis1GB(215x210 x23 x32bits=8Gbits).T echannelRBCis configured as follows:1.1.2ConfiguringtheModeofAllStorageSpacesedbytheAddressSpaceVisibletoSoftwaretoTwoChannels theMDDRCUndertheDual-ChannelTomaptheaddresss

11、pacetotwochannels,performthefollowingDefinealltheaddressspacevisibletosoftwareassomeconsecutiveandnon-Step addressareas(ifthereisnolapplication).Specifythebaseaddress(startaddress)addressizeofeachaddressareabyconfiguringthefollowingAXI_REGION_MAP Specifythemodeofeachaddressarea.Tobespecific,specifyw

12、hetheranStep areaismappedtoonechannelorismappedtotwochannelsbasedongranularity Ifmultipleaddressareasaremappedtothesamechannel,theoffsetaddressestheaddressareasaftermap AXI_REGIN_ATTRIB-hechannelmustbespecifiedbyconfiguringtheForle,tsoftwarecansthestorageaddressspacerangingFtotis,3GBstoragespaceerna

13、l, memoryaddressheMDDRCrangesfrom_Ftochannel0connectstothe32-bit2GBDDRSDRAM,andchannel1connectstothe32-bit1 GB DDR SDRAM.OneconfigurationmethodisasDefinetheaddressspacerangingfrom_Fto0 x0000_0000astwoandnon-addressareas(atmost16addressareascanbe Ie00B01(2015-06-4Hi3536DDRChannelCapacityConfiguration

14、 1ChangingtheDDRTheaddressizeofarea0is2GB,itsbaseaddressis32h0000_0000.Area0mappedtochannelHi3536DDRChannelCapacityConfiguration 1ChangingtheDDRTheaddressizeofarea0is2GB,itsbaseaddressis32h0000_0000.Area0mappedtochannel0andchannel1erleavingmode.One1GBspaceofarea0mappedtothe lower1GBspace ofchannel0,

15、andthe other1GBspaceofarea0is mapped to the entire 1 GB space of channel 1.TheregisterconfigurationisasSetAXI_REGIOM_MAP_0rgn_ento1,AXI_REGIOM_MAP_0rgn_sizeto3h7(2 GB size), andAXI_REGIOM_MAP_0rgn_base_addrto8h00 (upper eightbits). The offset address of the AXI_REGIOM_MAP_0 register is 0 x100.SetAXI

16、_REGIOM_ATRIB_0ch_modeto2b10,ttheaddressarea mappedtotwochannels 2b00, tthedual-erleavingstartsfromchannel0.TheaddressoftheAXI_REGIOM_ATRIB_0registeris0 x104.ThenAXI_REGIOM_ATRIB_0ch_offsetto8h00becausetheaddressareaismappedtothe lower 1 GB space of channel 0.Theaddressizeofarea1is1GB,itsbaseaddress

17、is32h8000_0000.Area1mappedonlytotheupper1GBspaceofchannel TheregisterconfigurationisasSetAXI_REGIOM_MAP_1rgn_ento1,AXI_REGIOM_MAP_1rgn_sizeto3h6(1 GB size), andAXI_REGIOM_MAP_1rgn_base_addr to8h80 (upper eightbits). The offset address of the AXI_REGIOM_MAP_1 register is 0 x110.SetAXI_REGIOM_ATRIB_1c

18、h_modeto2b01,ttheaddressarea mappedonlytoonechannel;setAXI_REGIOM_ATRIB_1ch_startto2b01,indicating t the address area is mapped only to channel 0; setAXI_REGIOM_ATRIB_1ch offsetto8h40,ttheoffsetoftheareaaddressrelative tothe startaddressofchannel0is32h4000_0000.The offset address of the AXI_REGIOM_A

19、TRIB_1 register is 0 x1148.Figure1-1illustrateshowthememoryaddressspacerangingfrom0 xB 0 x0000_0000 is ma ped to two channelshe MDDRC._FIe00B01(2015-06-5Hi3536DDRChannelCapacityConfiguration 1ChangingtheDDRtwo channels _Thereareothermodes,whichwillnot.theAddressSpaceVisibletoSo twaretoHi3536DDRChannelCapacityConfiguration 1ChangingtheDDRtwo channels _Thereareothermodes,whichwillnot.theAddressSpaceVisibletoSo twar

温馨提示

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

评论

0/150

提交评论