This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5716: EMIF access

Part Number: AM5716

Hi,

MPU connects EMIF directly (not via L3_MAIN interconnect) in "Figure 2-1. Interconnect Overview" of TRM(spruhz7h.pdf).

1) Could you please tell me why direct path exists between MPU and EMIF? Does it mean to prevent bus contention in L3_MAIN interconnect?

2) Could you please tell me which address MPU accesses if MPU accesses EMIF directly? 

    Should I use Q10(0x02 8000 0000-0x02 BFFF FFFF) and Q11(0x02 C000 0000-0x02 FFFF FFFF) instead of Q2(0x8000 0000-0xBFFF FFFF) and Q3(0xC000 0000-0xFFFF FFFF) in Table 2-8? 

3) There is described 3 EMIF1_SDRAM_CS0 area (Q8: 0x02 0000 0000-0x023FFF FFFF,  Q10: 0x02 8000 0000-0x02 BFFF FFFF, Q11: 0x02 C000 0000-0x02 FFFF FFFF) in Table 2-8. Could you please tell me the difference between Q8 and Q10/11?

Best Regards,

Masa.O

  • Masashi,

    The DDR EMIF provides support for up to 2GB of memory.  This is all available on CS0.  The L3 memory map provides access to all 2GB through addressing in 2 blocks Q2 and Q3.  The first half of the SDRAM is accessible at 0x8000_0000 to 0xBFFF_FFFF and the second half is accessible at 0xC000_0000 to 0xFFFF_FFFF.  The SDRAM can be accessed by any system master through the L3 at these addresses.  This is explained in Section 2.2 and Table 2-1 of the TRM.

    The MPU has an MMU that allows it an address map that extends beyond 32 address bits.  Blocks Q2 and Q3 are then shown again in Section 2.4 and Table 2-8 for the MPU address map.  These are accesses mapped through the L3.  Then using the MMU associated with the MPU core, the first half of the SDRAM is accessible at 0x2_0000_0000 to 0x2_3FFF_FFFF as block Q8.  All of the SDRAM is then accessible again at 0x2_8000_0000 to 0x2_BFFF_FFFF and 0x2_C000_0000 to 0x2_FFFF_FFFF, as blocks Q10 and Q11, respectively.  Accesses at blocks Q8, Q10 and Q11 all use the MMU associated with the MPU core and they bypass the L3.

    Q8 and Q10 are aliased copies of the first half of the SDRAM accessible through Q2.  Similarly, Q11 is an aliased copy of Q3.  However, accessing the same physical memory locations at different aliased memory addresses is not allowed if coherency is needed.

    Tom

  • Tom-san,

    Thank you for your explanation in detail.

    I appreciate it.

    Best Regards,

    M.Ohhashi

  • Masashi Ohhashi said:
    1) Could you please tell me why direct path exists between MPU and EMIF? Does it mean to prevent bus contention in L3_MAIN interconnect?

    The direct path allows for lower latency accesses.

  • Brad-san,

    Thank you for your information.

    I appreciate it.

    Best Regards,

    Masa.O

  • Masashi,

    Is there anything remaining for this thread or can we close it?

    Tom

  • Tom-san,

    There is nothing remaining. Please close this thread.

    Thanks and Regards,

    Masa.O