Skip to main content
ranran
Senior
September 25, 2019
Solved

bus width vs access width

  • September 25, 2019
  • 2 replies
  • 1258 views

Hello,

We are using FMC interface.

Is it that the access must be in the same size of the memory data bus ?

In software, the bus width is defined as following:

MemoryDataWidth = FMC_NORSRAM_MEM_BUS_WIDTH_16;

and the access is 16 bit as following:

So, is it illegal to make the access in 32-bit if the data width is 16-bit ?

Thank you!

This topic has been closed for replies.
Best answer by waclawek.jan

> Is it that the access must be in the same size of the memory data bus ?

No.

Read the manual.

FMC chapter, Supported memories and transactions / General transaction rules. You again neglected to tell us that you are using H7, there this sentence applies:

 The AXI transaction size depends on memory region MPU attributes

and in the other thread you started I gave you a link to a thread where that was discussed; read it.

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
September 25, 2019

> Is it that the access must be in the same size of the memory data bus ?

No.

Read the manual.

FMC chapter, Supported memories and transactions / General transaction rules. You again neglected to tell us that you are using H7, there this sentence applies:

 The AXI transaction size depends on memory region MPU attributes

and in the other thread you started I gave you a link to a thread where that was discussed; read it.

JW

Tesla DeLorean
Guru
September 25, 2019

The system decomposes transactions to the right sizes. Burst or sequenced accesses might be optimized, or folded at the FMC level depending on the configuration, or via other peripheral units attached to the FMC.

The processor handles some unaligned accesses, others will fault depending on the core implementation. For example 64-bit LDRD/STRD will fault across most cores for unaligned accesses. As I recall most cores will break a transaction in two, but don't have transistors to go further.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..