100% found this document useful (1 vote)
2K views27 pages

5..memory Design

The instructor thanks the author for sharing the slides on memory design. There are three types of memory organization that can be formed using N x W chips: increasing the word size, increasing the number of words, or increasing both. The document then provides examples of designing different memory capacities using various N x W chips through these three approaches.

Uploaded by

Harshit Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views27 pages

5..memory Design

The instructor thanks the author for sharing the slides on memory design. There are three types of memory organization that can be formed using N x W chips: increasing the word size, increasing the number of words, or increasing both. The document then provides examples of designing different memory capacities using various N x W chips through these three approaches.

Uploaded by

Harshit Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 27

• The instructor thanks the author for sharing

the slides
MEMORY DESIGN
Memory Design

• Available Memory chip Size MN, W: N × W

• Required memory size: N1 × W1, Where N1 ≥ N


and W1 ≥ W

• Required number of MN, W chips: p × q, Where


p = N1 / N and q = W1 / W
Memory design
There are 3 types of organizations of N1 × W1 that can
be formed using N × W
• N1 = N and W1 > W => increasing the word size of the
chip
• N1 > N and W1 = W => increasing the number of
words in the memory
• N1 > N and W1 > W => increasing both the number of
words and number of bits in each word.
There are different types of organization of N1 x W1 –memory using N x W –bit
chips

How many 1024x 8 RAM chips are needed to provide a memory capacity of 2048 x 8?
Case 1:
If NI > N & WI = W
NI
Increase number of words by the factor of p =
N
How many 1024x 4 RAM chips are needed to provide a memory capacity of 1024 x 8?
Case 2:
If NI = N & WI > W
I
Increase the word size of a Memory by a factor of q = W
W

How many 1024x 4 RAM chips are needed to provide a memory capacity of 2048 x 8?
Case 3:
If NI > N & WI > W
Increase number of words by the factor of p &
Increase the word size of a Memory by a factor of q
Memory design – Increasing the word size
• Problem - 1
• Design 128 × 16 - bit RAM using 128 × 4 - bit RAM
• Solution: p = 128 / 128 = 1; q = 16 / 4 = 4
• Therefore, p × q = 1 × 4 = 4 memory chips of size 128 × 4 are required to
construct 128 × 16 bit RAM

S.No Memory N × W N1 × W1 p q p*q x y z Total


Type

1 RAM 128 × 4 128 × 16 1 4 4 7 0 0 7

x – number of address lines


y (p = 2y) – to select one among the same type of memory
z – to select the type of memory
Memory Address Map
Component Hexadecimal address Address Bus

From To 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

RAM 1.1 0000 007F x 1


0
1 0
x 1
x 1
0 0
x 1
x 1
0 x 1
0 x
0

RAM 1.2 0000 007F x x x x x x x

RAM 1.3 0000 007F x x x x x x x

RAM 1.4 0000 007F x x x x x x x

Substitute 0 in place of x to get ‘From’ address and 1 to get ‘To’ address


Memory design – Increasing the word size

Data Bus
16

4 4 4 4
Data (0-3) Data (0-3) Data (0-3) Data (0-3)

Address (0-6) Address (0-6) Address (0-6) Address (0-6)

128 × 4 128 × 4 128 × 4 128 × 4


RAM RAM RAM RAM

Address CS R/W CS R/W CS R/W CS R/W


Bus
7
Chip Select

Read/write Control
Memory Design
Data r/w
6-0
16
7

128 x 4 128 x 4 128 x 4 128 x 4


RAM RAM RAM RAM

4 4 4 4
1
Memory Design – Increasing the number of
words
• Problem - 2
• Design 1024 × 8 - bit RAM using 256 × 8 - bit RAM
• Solution: p = 1024 / 256 = 4; q = 8 / 8 = 1
• Therefore, p × q = 4 × 1 = 4 memory chips of size 256 × 8 are required to
construct 1024 × 8 bit RAM

S.NO Memory NxW N 1 x W1 P q p*q x y z Total

1024
1 RAM 256 × 8 4 1 4 8 2 0 10
×8
2
3
4
Memory Address Map
Component Hexadecimal address Address Bus

From To 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

RAM 1 0000 00FF x0 1


0 0 1 x 1
0 0
x 1
x 1
0 0
x 1
x 1
0 x 1
0 x
0

RAM 2 0100 01FF 0 1 x x x x x x x x

RAM 3 0200 02FF 1 0 x x x x x x x x

RAM 4 0300 03FF 1 1 x x x x x x x x

Substitute 0 in place of x to get ‘From’ address and 1 to get ‘To’ address


Memory Design – Increasing the number of words
Data
8 Address Bus 256 × 8 Bus
Address Bus 8 RAM 8
A0 – A7 R/W
CS

Data
Address Bus 256 × 8 Bus
0 8 RAM 8
1
A8 CS R/W
2×4 2
A9 decoder
Data
3 Address Bus 256 × 8 Bus
8 RAM 8
CS R/W

Data
Address Bus 256 × 8 Bus
8 RAM 8
CS R/W
8 R/W
Data
Bus
Design with gates
Data
8 Address Bus 256 × 8 Bus
Address Bus 8 RAM 8
A9 A8 A 0 – A7 R/W
CS

Data
Address Bus 256 × 8 Bus
8 RAM 8
CS R/W

Data
Address Bus 256 × 8 Bus
8 RAM 8
CS R/W

Data
Address Bus 256 × 8 Bus
8 RAM 8
CS R/W
8 R/W
Data
Bus
256 × 8
Data
987-0 RAM 1 r/w

8
8

256 × 8
RAM 2

8
2×4
Decoder
256 × 8
3 2 1 0 RAM 3

256 × 8
RAM 4

8
Memory Design
• Problem - 3
• Design 256 × 16 – bit RAM using 128 × 8 – bit RAM chips

S.NO Memory NxW N 1 x W1 P q p*q x y z Total

1 RAM 128 × 8 256 × 16 2 2 4 7 1 0 8

4
Memory Address Map
Component Hexadecimal address Address Bus

From To 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

RAM 1.1 0000 007F 0 x x x x x x x

RAM 1.2 0000 007F 0 x x x x x x x

RAM 2.1 0080 00FF 1 x x x x x x x

RAM 2.2 0080 00FF 1 x x x x x x x


Data
76-0 r/w

Address Bus
128 × 8 128 × 8
RAM 1.1 RAM 1.2
1×2
Decoder
1 0
16
8
8

128 × 8 128 × 8
RAM 2.1 RAM 2.2
16

8
8
Memory Design
• Problem - 4
• Design 256 × 16 – bit RAM using 256 × 8 – bit RAM chips and
256 × 8 – bit ROM using 128 × 8 – bit ROM chips.
S.NO Memory NxW N1 x W1 P q p*q x y z Total

256 × 256 ×
1 RAM 1 2 2 8 0 1 9
8 16
128 ×
2 Rom 256 × 8 2 1 2 7 1 1 9
8
3

4
Memory Address Map
Component Hexadecimal address Address Bus

From To 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

RAM 1.1 0000 00FF 0 x x x x x x x x

RAM 1.2 0000 00FF 0 x x x x x x x x

ROM 1 0100 017F 1 0 x x x x x x x

ROM 2 0180 01FF 1 1 x x x x x x x


Address Bus
128 × 8 Data
876-0 ROM 1
r/w

1×2 1×2 8
Decoder Decoder
1 0 1 0
128 × 8
ROM 2

256 × 8 256 × 8
RAM 1.1 RAM 1.2

16

8
8
Memory design
• Problem – 5
• A computer employs RAM chips of 128 x 8 and ROM chips of
512 x 8. The computer system needs 256 bytes of RAM, 1024
x 16 of ROM, and two interface units with 256 registers each.
A memory mapped I/O configuration is used. The two higher -
order bits of the address bus are assigned 00 for RAM, 01 for
ROM, and 10 for interface registers.
• a. Compute total number of decoders are needed for the
above system?
• b. Design a memory-address map for the above system
• c. Show the chip layout for the above design
Requirements
S.NO Memory NxW N 1 x W1 P q p*q x y z Total

1 RAM 128 × 8 256 × 8 2 1 2 7 1 2 10

1024 ×
2 ROM 512 × 8 2 2 4 9 1 2 12
16
Interfa
3 256 2 1 2 8 1 2 11
ce
4

q is 1 always for interfaces.


Number of registers = 2x
P = number of interfaces
Number of data lines = size of registers
Memory Address Map
Component Hexadecimal Address Address Bus
From To 15 - 12 11 10 9 8 7 6 5 4 3 2 1 0

RAM1 0000 007F 0 0 0 x x x x x x x

RAM2 0200 027F 0 0 1 x x x x x x x

ROM1.1 0400 05FF 0 1 0 x x x x x x x x x

ROM1.2 0400 05FF 0 1 0 x x x x x x x x x

ROM2.1 0600 07FF 0 1 1 x x x x x x x x x

ROM2.2 0600 07FF 0 1 1 x x x x x x x x x

Interface1 0800 08FF 1 0 0 x x x x x x x x

Interface2 0A00 0AFF 1 0 1 x x x x x x x x


Address Bus
11 10 128 × 8 Data r/w
9876-0 RAM 1

128 × 8
RAM 2

0
1
512 × 8 512 × 8
ROM 1.1 ROM 1.2
3×8 2
Decoder
3
4 512 × 8 512 × 8
ROM 2.1 ROM 2.2
5

Select Interface 1
Ch. Address r/w Data

Select Interface 2
Ch. Address r/w Data
Example
A computer employs RAM chips of 1024 x 8 and ROM chips of
2048 x 4. The computer system needs 2K bytes of RAM, and 2K
bytes of ROM and an interface unit with 256 registers each. A
memory-mapped I/O configuration is used. The two higher -order
bits of the address bus are assigned 00 for RAM, 01 for ROM, and 10
for interface.
a). How many RAM and ROM chips are needed?

b). How many lines of the address bus must be used to access Computer system
memory? How many of these lines will be common to all chips?

c). How many lines must be decoded for chip select? Specify the size of the decoder
d). Draw a memory-address map for the system and Give the address range in
hexadecimal for RAM, ROM

e). Develop a chip layout for the above said specifications


Example 2
A computer employs RAM chips of 1024 x 8 and ROM chips of
2048 x 4. The computer system needs 2K x 16 of RAM, and 2K x 16
ROM and an interface unit with 256 registers each. A memory-
mapped I/O configuration is used. The two higher -order bits of the
address bus are assigned 00 for RAM, 01 for ROM, and 10 for
interface..
a). How many RAM and ROM chips are needed?

b). How many lines of the address bus must be used to access total memory? How many
of these lines will be common to all chips?
c). How many lines must be decoded for chip select? Specify the size of the decoder

d). Draw a memory-address map for the system.


e). Draw a memory-address map for the system and Give the address range in
hexadecimal for RAM, ROM
f). Develop a chip layout for the above said specifications
References
Text Book(s)
• M. M. Mano, Computer System Architecture,
Prentice-Hall,2004
• J. P. Hayes, Computer system architecture,
McGraw Hill,2000

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy