+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Advanced Member level 2
    Points: 3,836, Level: 14

    Join Date
    Apr 2011
    Posts
    530
    Helped
    24 / 24
    Points
    3,836
    Level
    14

    Is there special way to map address to SDR SDRAM?

    SDR SDRAM like other DRAMs contains banks, rows, columns. Thus, to get maximum efficiency, I assume that there would be some non-trivial way to translate memory address to bank, row and column address. Is this true? If so, then how is it usually done?

    •   Alt5th January 2018, 17:01

      advertising

        
       

  2. #2
    Advanced Member level 5
    Points: 35,259, Level: 45
    Achievements:
    7 years registered

    Join Date
    Jun 2010
    Posts
    6,455
    Helped
    1883 / 1883
    Points
    35,259
    Level
    45

    Re: Is there special way to map address to SDR SDRAM?

    You read the data sheet.
    There will be a number of address pins each for row, bank and column. So you know how many of each by doing 2^(npins)



    •   Alt5th January 2018, 19:11

      advertising

        
       

  3. #3
    Super Moderator
    Points: 238,787, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    41,362
    Helped
    12620 / 12620
    Points
    238,787
    Level
    100

    Re: Is there special way to map address to SDR SDRAM?

    The optimal scheme is almost trivial. You get fastest access when reading or writing full pages, thus the lower address bits are usually mapped to column address lines.


    1 members found this post helpful.

    •   Alt5th January 2018, 19:17

      advertising

        
       

  4. #4
    Advanced Member level 3
    Points: 4,874, Level: 16

    Join Date
    Feb 2015
    Posts
    813
    Helped
    235 / 235
    Points
    4,874
    Level
    16

    Re: Is there special way to map address to SDR SDRAM?

    normally, the addresses are mapped either (bank, row, column) or (row, bank, column). You can choose a different scheme if you want though. placing bank at higher address bits has a little advantage if you have a small number of independent applications that are allocated a large memory space. placing bank at lower address bits allows a larger sequential region to have only column accesses once all banks are open.



  5. #5
    Member level 1
    Points: 441, Level: 4

    Join Date
    Aug 2016
    Location
    Bangalore, India
    Posts
    36
    Helped
    3 / 3
    Points
    441
    Level
    4

    Re: Is there special way to map address to SDR SDRAM?

    To access SDRAM in an efficient manner, it is better to follow linear addressing scheme as told in #4 that is combining row address, column address and bank address into a single vector and then increment this single vector to access different memory locations.

    But as switching from one row to another row is slow, therefore keeping the row address in MSB is recommended.

    Therefore I think (row,bank,column) will be efficient in terms of time.



--[[ ]]--