How to calculate SDRAM capacity

Publisher:sigma28Latest update time:2018-04-15 Source: eefocusKeywords:SDRAM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

When I was reading the chip manual of SDRAM, I kept thinking about this question: How is the capacity of SDRAM calculated? After searching various materials on the Internet, I finally share my summary with you!

Take the model of the SDRAM chip manual of my development board: h57v2562gtr60c as an example. By looking at the datasheet of my h57v2562gtr60c, we know that

there are 13 row address selection lines (RA0~RA12), 9 column address selection lines (CA0~CA8), 
2 bank selection lines (BA0, BA1), and 16 data lines (DQ0~AQ15).

We know that the total number of SDRAM cells = (2^row address selection lines) * (2^column address selection lines) * (2^Bank selection lines).

From this, we can conclude that the total number of our SDRAM cells = (2^13)*(2^9)*(2^2)=2^24 cells.

Note: The row address selection line bit 13 does not mean that each of our banks has only 13 rows, but that the number of rows that can be represented by each bank is 2^13 rows. The same is true for the column address selection lines and bank lines.

We know the total number of SDRAM cells, but we cannot determine the capacity of the entire SDRAM, because we do not know how many bits of data are stored in each cell of our SDRAM. So how is this determined?

Then this involves the concept of bit width. In the TQ2440 development board, two SDRAMs are used to form a whole SDRAM, in which the address line shares the same address, and the data line is divided into two 16-bit, because each SDRAM only provides 16 data lines, so my personal understanding is: the lower 16 bits exist in one of the SDRAMs, and the upper 16 bits exist in the other SDRAM, so that every time data is sent or read to the same address, the purpose of sending or reading 32-bit wide data is achieved, that is, the data of a storage unit corresponding to each address is 32 bits.

So the capacity of our entire SDRAM = (total number of SDRAM units) * (bit width) = (2^24) * 32 = 2^29 bit

Note: I am calculating the total capacity of the entire SDRAM of the TQ2440 development board, not the total capacity of each individual SDRAM. If the capacity of each SDRAM chip = the capacity of the entire SDRAM / 2 

Note: The unit of calculation here is bit. If we convert it into bytes, it is 2^29 bit / 8 = 2^26 Byte = 2^6 MB = 64 MB

This is the final SDRAM capacity of the TQ2440 development board.


Keywords:SDRAM Reference address:How to calculate SDRAM capacity

Previous article:Talking about the experience of learning single chip microcomputer
Next article:stm8 download program (using ST-LINK downloader and STVP download software)

Recommended ReadingLatest update time:2024-11-16 13:31

Analysis of address connection between S3C2440 and SDRAM
This article describes the address connection analysis between S3C2440 and SDRAM. S3C2440 has 27 address lines ADDR and 8 chip select signals ngcs0-ngcs7, corresponding to bank0-bank7. When accessing the address space of bankx, the ngcsx pin is low and the peripheral is selected. 2^27=2^7 * 2^10 * 2^10 = 128Mbyte
[Microcontroller]
Analysis of address connection between S3C2440 and SDRAM
S3C2410 SDRAM register initialization settings
A few days ago, I found it difficult to initialize SDRAM code, mainly because I had never been exposed to this aspect before and had no experience. Now it seems not difficult, but the trouble is that I need to set it according to the datasheet. Fortunately, it is a transplant, and there are many articles by experts to
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号