The Wayback Machine - https://web.archive.org/web/20240727095224/https://www.geeksforgeeks.org/design-of-512x8-ram-using-128x8-ram/
Open In App

Design of 512×8 RAM using 128×8 RAM

Last Updated : 05 Dec, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

If we see RAM physically then we notice that RAM is made up of a few chips. We can design the required RAM size using basic RAM chips. We can observe a basic RAM chip as follows:

  • CS1: For chip select 1, the value should be 1
  • CS2: For chip select 2, the value should be 0.

Read and Write: Used for upcoming signals.

If we have n bit address and m bit words then our RAM size will be 2n x m.

Example:

n=7 bit, m=8 bit
RAM size= 128 x 8 

Given: 

Basic RAM size = 128 x 8
Required RAM size  = 512 x 8

To design a RAM size of 512×8 from 128×8, here are some calculations we need to do first:

1. Number of chips required:

Number of chips required  = Desired RAM Size/ Basic RAM Size
                                          =512x8/128x8
                                          =4 chips

2. Address Bits:

Required Size is 512 x 8  
512 x 8= 29 x 8
Therefore, 9 bit address is required

3. Decoder Size: If the number of words is increasing there will be a need for a decoder. In this case number of words is increasing (from 128 to 512).

Size of decoder= number of times words increasing
128⇢512
words increased by 4 times
Decoder Size= 2x4

Pictorial Description (Design of 512×8 RAM) is as follows: 

From the above calculations, we see that we need four 128 x 8 RAM chips to design a 512 x 8 RAM size. If only the number of words is increasing then all chips will be arranged vertically. But, if the size of the data bit is also increasing, we have to horizontally arrange our new chip (For this case, we had to actually get the no. of column required using word size is desired / word size in the given chip. The no. of row required would be desired size/size in the given chip for example (512/128)). In this case, only the number of words is increasing (128-512) so all chips will be arranged vertically.

  1. In a 512 x 8 RAM, there is a 9-bit address, we will divide this 9-bit address into 2 and 7-bit addresses.
  2. The 2-bit address will be input as a 2 x 4 decoder, this decoder will have 4 output and the input will have 2 bits.
  3. The 4 output of the decoder will enable every RAM of 128 x 8 individually.
  4. Also, we can write 128 x 8 RAM chip as 27 x 8, every RAM chip will need a 7-bit address. We will connect the remaining 7-bit address line to every RAM.
  5. This 7-bit address will select any word from the 128 words of that RAM, the selected word will be the output as the 8-bit word in the output bus.


Similar Reads

Random Access Memory (RAM) and Read Only Memory (ROM)
Random Access Memory (RAM) is a type of computer memory that is used to temporarily store data that the computer is currently using or processing. RAM is volatile memory, which means that the data stored in it is lost when the power is turned off. RAM is typically used to store the operating system, application programs, and data that the computer
5 min read
Difference between Random Access Memory (RAM) and Hard Disk Drive (HDD)
A person novice to computers often is in confusion between Random Access Memory (RAM) and Hard Disk Drive (HDD). Here we draw comparisons between the two. Similarities between RAM and HDD : Both are used for storage of data.Both are physical components of the computer machine.Both RAM and HDD are measured in bytesBoth RAM and HDD can affect the per
3 min read
Magnetic Random Access Memory (M-RAM)
MRAM stands for magnetoresistive random access memory and is a non-volatile type of RAM. Magnetic state refers to the electrical resistance of a metal when it is placed in a magnetic field. The MRAM uses magnetic states and magnetisation direction in a ferromagnetic material(a material which is highly susceptible to magnetization to store data bits
4 min read
RAM Full Form
RAM stands for Random Access Memory. RAM is used to read and write into memory. RAM stores files and data of programs that are currently being executed by CPU. It is a volatile memory as data loses when power is turned off. RAM can be further divided into two classifications: Static RAM (SRAM), and Dynamic RAM (DRAM). History of RAM : In the year 1
2 min read
Difference between RAM and SRAM
RAM and SRAM both are types of memories that are present inside a computer. They are a type of volatile memory that are present in a computer system. RAM and SRAM are abbreviations that expand to Random Access Memory and Static Random Access Memory respectively. 1. Random access memory (RAM) : It is a type of volatile memory as it loses data after
3 min read
Different Types of RAM (Random Access Memory )
RAM(Random Access Memory) is a part of the computer's Main Memory which is directly accessible by the CPU. RAM is used to Read and Write data into it which is accessed by the CPU randomly. RAM is volatile in nature, which means if the power goes off, the stored information is lost. RAM is used to store the data that is currently processed by the CP
7 min read
Difference between RAM and ROM
Memory is an important part of the Computer which is responsible for storing data and information on a temporary or permanent basis. Memory can be classified into two broad categories: Primary MemorySecondary MemoryWhat is Primary Memory?Primary Memory is a type of Computer Memory that the Preprocessor directly accesses. It is used to store data on
6 min read
Difference between Good Design and Bad Design in Software Engineering
The term design is used in two ways. While used as verb, it means - the design process and used as noun, it means- the result of design process. Design is a meaningful engineering representation of something that is to be built. The result of a design process is called as design model or the design of the system. Design for computer software is as
2 min read
System Design - Design Google Calendar
Google Calendar is like a special calendar that we can use on our computer or phone. We can use it to remember important things, like birthdays, appointments, and events. We can also set reminders to help us remember when something is coming up soon. We can also share our calendars with our family or friends. It's like having our own special schedu
8 min read
How to Design a Rate Limiter API | Learn System Design
A Rate Limiter API is a tool that developers can use to define rules that specify how many requests can be made in a given time period and what actions should be taken when these limits are exceeded. Rate limiting is an essential technique used in software systems to control the rate of incoming requests. It helps to prevent the overloading of serv
11 min read
three90RightbarBannerImg