{"id":949,"date":"2022-08-25T03:02:05","date_gmt":"2022-08-25T03:02:05","guid":{"rendered":"http:\/\/www.recologypower.com:9080\/?p=949"},"modified":"2022-08-25T03:02:06","modified_gmt":"2022-08-25T03:02:06","slug":"%e3%80%90nxp%e3%80%91codewarrior-ddr%e5%8f%82%e6%95%b0%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"http:\/\/www.recologypower.com:9080\/?p=949","title":{"rendered":"\u3010NXP\u3011codeWarrior DDR\u53c2\u6570\u8bf4\u660e"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\n\/* DDR model number: MT40A1G16KNR-062E:E *\/\n#ifdef CONFIG_SYS_DDR_RAW_TIMING\ndimm_params_t ddr_raw_timing = {\n     .n_ranks = 1, \/* Number of ranks\/ chip selects of DDR *\/\n     .rank_density = 8589934592u, \/* this is size in one rank, here 8GB *\/\n     .capacity = 8589934592u, \/* this is the total size, here 8GB *\/\n     .primary_sdram_width = 64, \/* this is the data bus width *\/\n     .ec_sdram_width = 8, \/* this is the ECC data width *\/\n     .die_density = 0x5, \/* this is each DRAM die density, here twin 8Gbit die density. 0x4\uf0e04Gbit, 0x5\uf0e08Gbit, 0x6\uf0e016Gbit*\/\n     .registered_dimm = 0, \/* if register chip is used similar to an RDIMM = 1, otherwise = 0 *\/\n     .mirrored_dimm = 0, \/* =1 if C\/A bus mirroring is used, all UDIMMs with two ranks are mirrored *\/\n     .n_row_addr = 16, \/* number of rows from dram datasheet *\/\n     .n_col_addr = 10, \/* number of columns from dram datasheet *\/\n     .bank_addr_bits = 0, \/* for DDR4 this is always = 0 defining two bits bank address in DRAM *\/\n     .bank_group_bits = 2, \/* for x16 dram = 1, 1-bit BG, for x8 dram = 2, 2-bits for BG *\/\n     .edc_config = 2, \/* leave as is, does not change. 0\uf0e0no ECC, 2\uf0e0 ECC*\/\n     .burst_lengths_bitmask = 0x0c, \/* leave as is, this is needed for uboot masking, does not change *\/\n     .tckmin_x_ps = 625, \/* tck min = 625ps from DRAM datasheet *\/\n     .tckmax_ps = 1500, \/* tck max = 1500ps from DRAM datasheet *\/\n     .caslat_x = 0x00FFFA00, \/* leave as is, this is needed for uboot masking, does not change *\/\n     .taa_ps = 13750, \/* tAA from DRAM datasheet (ps)*\/\n     .trcd_ps = 13750, \/* tRCD from DRAM datasheet (ps) *\/\n     .trp_ps = 13750, \/* tRP from DRAM datasheet (ps)*\/\n     .tras_ps = 32000, \/* tRAS from DRAM datasheet (ps) *\/\n     .trc_ps = 45750, \/* tRC = tRP+tRCD or from DRAM datasheet (ps)*\/\n     .trfc1_ps = 350000, \/* tRFC1 from DRAM datasheet (ps)*\/\n     .trfc2_ps = 260000, \/* tRFC2 from DRAM datasheet (ps)*\/\n     .trfc4_ps = 160000, \/* tRFC4 from DRAM datasheet (ps)*\/\n     .tfaw_ps = 21000, \/* tFAW from DRAM datasheet (ps)*\/\n     .trrds_ps = 2500, \/* tRRD_S from DRAM datasheet (ps)*\/\n     .trrdl_ps = 4900, \/* tRRD_L from DRAM datasheet (ps)*\/\n     .tccdl_ps = 5000, \/* tCCD_L from DRAM datasheet (ps)*\/\n     .refresh_rate_ps = 7800000, \/* tREFI from DRAM datasheet (ps)*\/\n\n};\n\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"slide-text-bg2\">\n<h3><\/h3>\n<\/div>\n<div class=\"flex-btn-div\"><a href=\"http:\/\/www.recologypower.com:9080\/?p=949\" class=\"btn1 flex-btn\">\u9605\u8bfb\u66f4\u591a<\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[],"_links":{"self":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/949"}],"collection":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=949"}],"version-history":[{"count":1,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/949\/revisions"}],"predecessor-version":[{"id":950,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/949\/revisions\/950"}],"wp:attachment":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=949"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}