<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 [iMX8MP] DDR4 data bit/byte swapping</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MP-DDR4-data-bit-byte-swapping/m-p/1430885#M188384</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;We are about to design our custom iMX8M Plus based CPU board. We will use the same DDR4 memory (&lt;SPAN&gt;MT40A512M16LY-062E&lt;/SPAN&gt;) as in the reference design of iMX8M Mini EVK (8MMINID4-EVK) but with half of capacity (8Gb or 1GB).&lt;/P&gt;&lt;P&gt;In the mentioned reference design, there seems to be bit-swapping of data lines between the DDRAM and the iMX8M Mini&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ddr4-bit-swapping.png" style="width: 447px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174185i474D959761303E3D/image-dimensions/447x504?v=v2" width="447" height="504" role="button" title="ddr4-bit-swapping.png" alt="ddr4-bit-swapping.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We also need to apply certain bit swapping to optimize the PCB layout and our own bit swapping would be different from above reference design. Therefore, I would like to know where to find the rules of DDR data bit/byte swapping applied for iMX8M Plus, please ? I found following article and application note (AN5097) which seem to be relevant :&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Layerscape/AN5097-DDR4-Layout-Checklist-Clarification-for-LS1028A/td-p/1056006" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Layerscape/AN5097-DDR4-Layout-Checklist-Clarification-for-LS1028A/td-p/1056006&lt;/A&gt;&lt;/P&gt;&lt;P&gt;AN5097 :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ddr4-bitswapping-27.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174186i144FC9F3587A8559/image-size/large?v=v2&amp;amp;px=999" role="button" title="ddr4-bitswapping-27.png" alt="ddr4-bitswapping-27.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ddr4-bitswapping-48.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174187i5496AFA473C3C651/image-size/large?v=v2&amp;amp;px=999" role="button" title="ddr4-bitswapping-48.png" alt="ddr4-bitswapping-48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to know if above rules should also be applied for the iMX8M Plus ?&lt;/P&gt;&lt;P&gt;Last question, what/where would take into account this bit swapping so that the DDRAM could work correctly : DDR RPA for the timing code generation or else where in u-Boot, please ?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
    <pubDate>Sat, 19 Mar 2022 03:07:10 GMT</pubDate>
    <dc:creator>khang_letruong</dc:creator>
    <dc:date>2022-03-19T03:07:10Z</dc:date>
    <item>
      <title>[iMX8MP] DDR4 data bit/byte swapping</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MP-DDR4-data-bit-byte-swapping/m-p/1430885#M188384</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;We are about to design our custom iMX8M Plus based CPU board. We will use the same DDR4 memory (&lt;SPAN&gt;MT40A512M16LY-062E&lt;/SPAN&gt;) as in the reference design of iMX8M Mini EVK (8MMINID4-EVK) but with half of capacity (8Gb or 1GB).&lt;/P&gt;&lt;P&gt;In the mentioned reference design, there seems to be bit-swapping of data lines between the DDRAM and the iMX8M Mini&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ddr4-bit-swapping.png" style="width: 447px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174185i474D959761303E3D/image-dimensions/447x504?v=v2" width="447" height="504" role="button" title="ddr4-bit-swapping.png" alt="ddr4-bit-swapping.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We also need to apply certain bit swapping to optimize the PCB layout and our own bit swapping would be different from above reference design. Therefore, I would like to know where to find the rules of DDR data bit/byte swapping applied for iMX8M Plus, please ? I found following article and application note (AN5097) which seem to be relevant :&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Layerscape/AN5097-DDR4-Layout-Checklist-Clarification-for-LS1028A/td-p/1056006" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Layerscape/AN5097-DDR4-Layout-Checklist-Clarification-for-LS1028A/td-p/1056006&lt;/A&gt;&lt;/P&gt;&lt;P&gt;AN5097 :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ddr4-bitswapping-27.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174186i144FC9F3587A8559/image-size/large?v=v2&amp;amp;px=999" role="button" title="ddr4-bitswapping-27.png" alt="ddr4-bitswapping-27.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ddr4-bitswapping-48.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174187i5496AFA473C3C651/image-size/large?v=v2&amp;amp;px=999" role="button" title="ddr4-bitswapping-48.png" alt="ddr4-bitswapping-48.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to know if above rules should also be applied for the iMX8M Plus ?&lt;/P&gt;&lt;P&gt;Last question, what/where would take into account this bit swapping so that the DDRAM could work correctly : DDR RPA for the timing code generation or else where in u-Boot, please ?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 03:07:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MP-DDR4-data-bit-byte-swapping/m-p/1430885#M188384</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2022-03-19T03:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX8MP] DDR4 data bit/byte swapping</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MP-DDR4-data-bit-byte-swapping/m-p/1432664#M188524</link>
      <description>&lt;P&gt;Hi again, CC : &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26366"&gt;@weidong_sun&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I found &lt;A href="https://community.nxp.com/t5/i-MX-Processors/iMX8M-mini-DDR4-data-bits-swap/m-p/1166792" target="_self"&gt;the following discussion&lt;/A&gt; in which you said&amp;nbsp; :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;For DDR4, there is no restriction on the exchange of data bits, as you can see in this design files.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How can I interpret above statement correctly (i.e how can I configure this swapping correctly), please ? Seeing that there's no explicit &lt;STRONG&gt;BoardDataBusConfig&lt;/STRONG&gt; tab in the MX8M_Plus_DDR4_RPA_v5.xlsx, but in MX8M_Plus_LPDDR4_RPA_v7.xlsx as below :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LPDDR4-BoardDataBusConfig.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174561i37AAA097CDCB7F98/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPDDR4-BoardDataBusConfig.png" alt="LPDDR4-BoardDataBusConfig.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Khang.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 14:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MP-DDR4-data-bit-byte-swapping/m-p/1432664#M188524</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2022-03-23T14:39:39Z</dc:date>
    </item>
  </channel>
</rss>

