Author Topic: Why are we mixing data connections in SDRAM?  (Read 656 times)

0 Members and 1 Guest are viewing this topic.

Offline Bat91Topic starter

  • Newbie
  • Posts: 2
  • Country: pl
Why are we mixing data connections in SDRAM?
« on: August 24, 2023, 06:51:23 am »
Hello,

Recently, looking through the schematics of finished modules from ST, I noticed an interesting connection of data signals (DQx) between the microprocessor (STM32MP135) and SDRAM (MT41K512M16VRP-107 IT). I would like to find out why this was mixed up like this and how it affects the operation or configuration of the RAM.
« Last Edit: August 24, 2023, 06:53:10 am by Bat91 »
 

Offline calmtron

  • Regular Contributor
  • *
  • Posts: 67
  • Country: se
Re: Why are we mixing data connections in SDRAM?
« Reply #1 on: August 24, 2023, 07:06:23 am »
Probably done to simplify routing of the PCB. The SDRAM does not care about the order of the bits during normal use, it is possible one has to consider it during setup.
 
The following users thanked this post: Bat91

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11725
  • Country: us
    • Personal site
Re: Why are we mixing data connections in SDRAM?
« Reply #2 on: August 24, 2023, 07:27:35 am »
It is absolutely for routing reasons. Just keep in mind that you can only mix them within the same byte (DQ0-DQ7 and DQ8-DQ15).
Alex
 
The following users thanked this post: Bat91

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13971
  • Country: gb
    • Mike's Electric Stuff
Re: Why are we mixing data connections in SDRAM?
« Reply #3 on: August 24, 2023, 09:48:54 am »
Probably done to simplify routing of the PCB. The SDRAM does not care about the order of the bits during normal use, it is possible one has to consider it during setup.
From memory, SDRAM only cares about some of the address lines during setup
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 
The following users thanked this post: Bat91

Offline Bat91Topic starter

  • Newbie
  • Posts: 2
  • Country: pl
Re: Why are we mixing data connections in SDRAM?
« Reply #4 on: August 24, 2023, 10:11:38 am »
Thank you for all your responses. I couldn't find information anywhere regarding whether the order of the bits is important and whether this is configured in some way in STM32 (this is where I will have to read up)
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 8086
  • Country: ca
Re: Why are we mixing data connections in SDRAM?
« Reply #5 on: August 24, 2023, 11:33:51 am »
Careful:  The first 8 bits, bits 0-7 can have swaps within themselves.  Same for the second 8 bits 8 through 15.  You cannot swap bits between the first and second 8 bit banks as there is a write mask for selectively writing individual bytes at each memory address.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf