3*8 decoder control unit 2*4 decoder sc 100e 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15...

15
3*8 decoder Control Unit 2*4 decoder SC 100 E 1 0 1 2*4 decoder 1 001 xxx 1 000 zzz 15 14 12 OPR q7 q0 t 3 t2 t 1 t0 S AC FGI INPR OUTR FGO PC M A R Memory 4096*2bytes teletypewriter monitor To I I To OPR MBR 1 C0 C1 C2 C3 To MAR F R 100 xx x yy y 101 zz z

Upload: julia-lawrence

Post on 26-Mar-2015

215 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 2: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

매크로 명령어(= 기계어 , 어셈블리명령어 ) 처리

FetchFR : 00 (C0)

ExecuteFR : 10 (C2)

IndirectFR : 01 (C1)

InturruptFR : 11 (C3)

c0t0

c0t1

c0t2

메모리 읽기

[ 명령어 읽기 : 메모리→ CPU]- decode

c1t0

c1t1

c1t2

c1t3

c3t0

c3t1

c3t2

c3t3

q7’Ic0t

3

- branch

메모리 읽기

[ 유효주소 만들기 ]

← 실행 명령 (ADD, AND)

- branchc2t0

c2t1

c2t2

c2t3

메모리 읽기

[ 실행 데이터 읽기 ]

- branch

- no-op

Page 3: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 4: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 5: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 6: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 7: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

매크로 명령어(= 기계어 , 어셈블리명령어 ) 처리

FetchFR : 00 (C0)

ExecuteFR : 10 (C2)

IndirectFR : 01 (C1)

InturruptFR : 11 (C3)

c0t0

c0t1

c0t2

메모리 읽기

[ 명령어 읽기 : 메모리→ CPU]- decode

c1t0

c1t1

c1t2

c1t3

c3t0

c3t1

c3t2

c3t3

q7’Ic0t

3

- branch

메모리 읽기

[ 유효주소 만들기 ]

← 실행 명령 (ADD, AND)

- branchc2t0

c2t1

c2t2

c2t3

메모리 읽기

[ 실행 데이터 읽기 ]

- branch

- no-op

Page 8: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 9: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 10: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 11: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

매크로 명령어(= 기계어 , 어셈블리명령어 ) 처리

FetchFR : 00 (C0)

ExecuteFR : 10 (C2)

IndirectFR : 01 (C1)

InturruptFR : 11 (C3)

c0t0

c0t1

c0t2

메모리 읽기

[ 명령어 읽기 : 메모리→ CPU]- decode

c1t0

c1t1

c1t2

c1t3

c3t0

c3t1

c3t2

c3t3

q7’Ic0t

3

- branch

메모리 읽기

[ 유효주소 만들기 ]

← 실행 명령 (ADD, AND)

- branchc2t0

c2t1

c2t2

c2t3

메모리 읽기

[ 실행 데이터 읽기 ]

- branch

- no-op

Page 12: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 13: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 14: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz

Page 15: 3*8 decoder Control Unit 2*4 decoder SC 100E 101101 2*4 decoder 1 001 xxx 1 000 zzz yyy 100 yyy 15 1412 OPR q7 q0 t3 t2 t1 t0 S AC FGI INPR OUTR FGO PC

3*8decoder

ControlUnit

2*4decoder

SC

100E

101

2*4decoder

1 001 xxx1 000 zzz

yyy 100 yyy

1514 12

OPR

q7

q0

t3 t2t1t0

S

AC

FGI INPR OUTR FGO

PC

MAR

Memory4096*2bytes

teletypewriter monitor

To I

I

To OPR

MBR

1 C0 C1 C2 C3

To MAR

F R

100

xxxyyy

101

zzz