You are on page 1of 15

Tutorial -9

Module 7

Chips

available:
64K ROM -8

64K RAM -4
LS138-2

Design an 8086 based system that has the


following memory requirements:

256K of ROM from 00000H


256K of ROM from C0000H
256K of RAM from 60000H.

Chips
1 M ROM 4
1 M RAM -12
LS 138 -2
Quad 2 1/p OR
-1

80286
It has 16 MB of memory

4M is ROM and the rest is RAM


Half of the ROM - mapped to address space
starting at 00 00 00H

Half to address space starting from E0 00 00H


The RAM is mapped continuously from address 20
00 00H.

8086

SRAM: 16KB
From 02000H

ROM: 16 KB

Memory chips to be used are as per following


specification
SRAM- 2K x 8bit

ROM- 2K x 8bit

74138 decoders (4 numbers)


Using these decoders and minimum number of

From 09000H

logic gates draw the memory interfacing diagram

1 M SRAM 04 00 00 00H

Memory
Interface

MS621000 128 K x 8
4 Banks 512K

Address Lines 17

Data 8

MS62100

OE
WE

CE1
CE2

Memory
Interface

RAM1 04 00 00 00 - 04 07 FF FF
RAM2 - 04 08 00 00 - 04 0F FF FF

RAM Layout
02 00 00 00
B0

WE0

WE1
B1

02
07
FFDFF-D
0

A2 A18

WE3

WE2
B2

B3

RD
CE1

D8-D15

D16-D23

D24-D31

CE2

A31
A30
A29

GAL22V10C

I10

I/O

I9

I/O

I8

I/O

I7

I/O

I6

I/O

I5

I/O

I4

I/O

I3

I/O

I2

I/O

I1

I/O

I0
CLK

GAL22V10C

WR

I10

I/O

RAM1

A28

I9

I/O

RAM2

A27

I8

I/O

WR0

A26

I7

I/O

WR1

A25

I6

I/O

WR2

A24

I5

I/O

WR3

A23

I4

I/O

BE0

A22

I3

I/O

BE1

A21

I2

I/O

BE2

A20

I1

I/O

BE3

A19

I0
CLK

port (

Program

A28, A27, A26, A25, A24, A23, A22, A21, A20, A19,
BE0, BE1, BE2,BE3,WR: in STD_LOGIC

RAM1, RAM2, WR0,WR1,WR2,WR3 :out STD_LOGIC


);

WR0 <= BE0 OR WR

WR1 <= BE1 OR WR

Program

WR2 <= BE2 OR WR


WR3 <= BE3 OR WR

RAM1 = A28 or A27 or Not(A26) or A25 or


A24 or A23 or A22 or A21 or A20 or A19

Program

RAM2 = A28 or A27 or Not (A26) or A25 or


A24 or A23 or A22 or A21 or A20 or Not (A19)

Chips available:
27256 - 4
61256 - 14
Inverter - 1
LS138 - 4
4-i/p OR gates- 1

80286-based system has the foll memory


requirements
576KB of memory
128KB

ROM

rest

RAM

64 K ROM

000000H

64 K ROM

0F0000H

RAM

040000H

System is expandable in nature

Chips available:
32K ROM -24
32K RAM - 8
LS138 -4

8086 system has the foll memory requirements:


384K of ROM from 00000H

384K of ROM from A0000H


256K of RAM from 60000H

You might also like