ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Computer Memory, SRAM and DRAM

Updated on September 19, 2023

Random Access Memory

Computers have become such a fundamental part of our lives that our world would not function without them. They come in many different shapes and sizes and are used for many different purposes, but they all have one thing in common: they have memory. Computer memory is not like the memory we think of as humans. It’s not about remembering information from the past. Computer memory is about storing information and being able to use it quickly in the present. Without memory, computers would not function at a reasonable speed. Information stored on the computer’s hard drive is more difficult and slower to access. Memory is necessary for creating useful computers. For this reason, we will investigate two general types of computer memory: SRAM (Static Random Access Memory) and DRAM (Dynamic Random Access Memory).

The name Static Random Access Memory suggests two things. Static signifies constant and fixed; the information stored in this type of memory does not involuntarily disappear with time. This is different from Dynamic Memory which slowly leaks with time, and must be refreshed to keep its memory intact. Random Access indicates not that the information is accessed in a random order, but that the information can be accessed in any order. This is to distinguish it from other types of memory that can only be used in a specific sequence.

The process for storing information in SRAM and DRAM is generally the same, with two main differences that will be discussed. This memory is part of a DC circuit system. The memory structure contains capacitors, conductors, resistors, transistors, and/or several other components used in decoding and transmitting the information. Computers perform their various functions at a basic level by using a set of codes made from binary digits—which are a series of ones and zeros. Therefore, the memory functions by holding those binary digits in little compartments known as memory cells. Each cell can hold one binary digit and each memory chip can have millions of memory cells. The computer is able to perform its functions quickly by storing and accessing those digits from the memory.

Binary Numbers and Translation

Binary digits are stored through the use of transistors, in the case of SRAM, and capacitors, in the case of DRAM. In a single memory chip, there are millions of tiny memory cells arranged into a grid. That grid is organized into numbered rows and columns using binary digits in a special numbering format. For example, the rows are not numbered 0, 1, 2, 3, 4 and so on, but are numbered in the binary digit way 0, 1, 10, 11, 100 and so on. All actions are performed using these digits. This is essential in converting what happens in an electrical device into a form that the computer programs can use. Using what is known as logic, the computer system is able to interpret the state of the electrical devices based on the current and/or charge that is being used. Therefore, there are really only two states: on or off, which are interpreted as one of zero.

This method is set to interpret which binary digit is stored in a cell. This introduces the main difference between SRAM and DRAM. SRAM uses transistors to change the potential across the cell, while DRAM uses filled or empty capacitors.

Binary Numbers
Binary Numbers | Source

Binary Translation in Static RAM

Static RAM’s method of binary interpretation is based on the relative potential differences across the memory cell. This is why SRAM is said to remain static, because the charge never actually leaves the cell. If the potential is high across the cell, the cell is interpreted to hold the binary digit ‘one’. If the potential is low, the cell is interpreted to hold the binary digit ‘zero’. Static RAM uses transistors—also known as switches or logic gates—to control the potential across the cell. Logic gates give an output depending upon the input, much like a function does in mathematics, but using only binary digits. For example, a simple NOT gate would put out a zero if a one went in, basically switching the digit. Through a more complicated set of these logic gates, we can create a loop type of system that will hold the current state until we change it. This loop is made from feedback, the output goes back into the input, to hold the current state. This special arrangement of gates is called a flip-flop. Imagine two NOT gates connected in a circular loop. If we put a one in, it would go into the first NOT gate, change to a zero, go into the second NOT gate, change back to a one and then loop back around to the first gate where it would start its journey over again. It would do the same thing over and over until we change the one to something else. This is basically how a flip-flop works in maintaining a static state. Then, attached to the flip-flop, there is a component known as an inverter that controls the voltage level across the cell. This inverter consists of two parts known as the driver and the load. The driver serves as a switch and inverts the incoming voltage from high to low or vice versa. When the incoming voltage is high, the driver connects to the ground, making the voltage go low. When the incoming voltage is low, the driver connects through the load which connects to the power supply, making the voltage go high. And, as was mentioned earlier, the voltage state of the cell for Static RAM is what determines the binary number the cell is said to hold. (Carns, Zheng, & Wang, 1999)

A Flip-Flop
A Flip-Flop | Source

Binary Translation in Dynamic RAM

Dynamic RAM uses capacitors in its binary interpretation. In understanding the method used for DRAM, we must remember that capacitors can be charged or discharged. Capacitors allow charge to build up on their conducting surfaces as current flows to them. Eventually, the capacitor reaches its limit, and the current stops, but the capacitor holds that charge in it. For DRAM, a charged capacitor represents the binary digit ‘one’, and an empty capacitor represents the binary digit ‘zero’. (Carns, Zheng, & Wang, 1999) DRAM is considered dynamic because the capacitors quickly lose their charge through a natural leaking process. If they are allowed to lose their charge, then the binary digit they should be representing would be incorrect. To prevent this, there is a refreshing pulse that refills the capacitors that should be filled. This leaking and subsequent refreshing happens at a rate of a thousand times a second. (Tyson & Coustan, 2000) As we can see, DRAM uses less components in its process, but at the same time, the constant refreshing does require extra work. Both SRAM and DRAM have their pros and cons.

Other Components

In both types of RAM, these memory cells are arranged in a grid that require other components to access and change the state of each specific cell. These components are essential for the type of random access that these memories are used for. The addressing components consist of buffers, column and row decoders, read/write operators, and sense amplifiers. (Carns, Zheng, & Wang, 1999)

The Basic Memory Chip
The Basic Memory Chip | Source

Buffers

The buffers are the first components to receive information about accessing the memory, and the last components before sending that information back out. They serve as the middle men and help facilitate the way information is received and then given back to the rest of the computer circuitry.

Decoders

Column and row decoders are the components involved in accessing specific cells. This is obviously needed when you consider the size of each memory chip and importance of being able to select only specific cells out of millions. The decoders work by highlighting each cell and making them available. The cells are arranged in a grid with lines running up and down, making columns called bit lines, and lines running across, making rows called word lines. The row decoder works first by triggering a transistor that opens the entire row. Then, the bit lines for each cell that is being requested are activated through the column decoder. The decoders receive input in the form of binary numbers that correspond to the address of that cells that are being requested. This is much like the addresses for our homes, but using only binary digits. Each cell has a unique binary number associated to it.

Read/Write Operator

The cells are then accessed by the “read/write operator” through the bit lines. How the bit lines are used depends on whether the cell is being read or written to. There are two bit lines for each cell, one on each side. To read a cell, the voltage of the cell is interpreted by measuring the potential difference between these two bit lines, using the sense amplifier. To write to a cell, the operator uses inverters and connects a bit line to the ground or connects a bit line to the power source. The other bit line stays neutral, which is what causes a difference in potential. In the case of SRAM, connecting the bit line to the ground causes the voltage to go low and connecting a bit line to the power source causes the voltage to go high. In the case of DRAM, connecting to the ground causes the charges to leave the capacitor and connecting to the power source causes charges to build up on the capacitor.

Conclusion

The process of addressing and reading or writing happens within a matter of nanoseconds. This means the computer can quickly access the memory thousands of times a second which makes this form of memory vital to any type of computer. It is not, however, the only needed type of memory. In fact, this memory is not useful for storing over long periods of time, especially if the computer were to be turned off. While SRAM is said to be static, both SRAM and DRAM are volatile memories because they need a constant DC power source to maintain their states. If the power source is disconnected, the charges leave and the potentials drop to zero, erasing the information stored in all the cells. This is why the hard drive serves its special function of holding information even when the power is gone.

Works Cited

Carns, T. K., Zheng, X., & Wang, K. L. (1999). SRAM CHIPS. Encyclopedia of Electrical & Electronics Engineering, Vol. 20, p322-341, 20p. Retrieved April 2012

Frenzel, L. (2010). Electronics Explained. Newnes.

Informa UK Ltd. (2004). RAM and ROM memories. Future Mobile Handsets.

Oshima, Y., Sheu, B. J., & Jen, S. H. (1999). DRAM CHIPS. Encyclopedia of Electrical & Electronics Engineering, Vol. 6(1st Edition), p58-68, 11p. Retrieved April 2012

Pierce, R. (2012, Jan 8 ). Binary Digits. Retrieved April 24, 2012, from Math Is Fun: http://www.mathsisfun.com/binary-digits.html

Tyson, J., & Coustan, D. (2000, August 25). How RAM Works. Retrieved April 2012, 22, from HowStuffWorks: http://computer.howstuffworks.com/ram.htm

working

This website uses cookies

As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://corp.maven.io/privacy-policy

Show Details
Necessary
HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
LoginThis is necessary to sign in to the HubPages Service.
Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
AkismetThis is used to detect comment spam. (Privacy Policy)
HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
Features
Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
MavenThis supports the Maven widget and search functionality. (Privacy Policy)
Marketing
Google AdSenseThis is an ad network. (Privacy Policy)
Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
Index ExchangeThis is an ad network. (Privacy Policy)
SovrnThis is an ad network. (Privacy Policy)
Facebook AdsThis is an ad network. (Privacy Policy)
Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
AppNexusThis is an ad network. (Privacy Policy)
OpenxThis is an ad network. (Privacy Policy)
Rubicon ProjectThis is an ad network. (Privacy Policy)
TripleLiftThis is an ad network. (Privacy Policy)
Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
Statistics
Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
ClickscoThis is a data management platform studying reader behavior (Privacy Policy)