the structure computer architecture – the elementary educational computer

18
The structure COMPUTER ARCHITECTURE – The elementary educational computer

Upload: ginger-summers

Post on 17-Jan-2016

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The structure COMPUTER ARCHITECTURE – The elementary educational computer

The structure

COMPUTER ARCHITECTURE – The elementary educational computer

Page 2: The structure COMPUTER ARCHITECTURE – The elementary educational computer

The structure

- Von Neumann model

- 5 units

- memory unit

- arithmetic and logic unit

- control unit

- input unit

- output unit

COMPUTER ARCHITECTURE – The elementary educational computer

Page 3: The structure COMPUTER ARCHITECTURE – The elementary educational computer

Mode of operation

- The instruction

- “fetch” phase

- “execute” phase

- FETCHMAR(PC)READPC(PC)+1IR(MBR)CONTROL BLOCK(IR)OPCODE

DECODINGGO TO EXECUTE PHASE

COMPUTER ARCHITECTURE – The elementary educational computer

Page 4: The structure COMPUTER ARCHITECTURE – The elementary educational computer

Mode of operation

COMPUTER ARCHITECTURE – The elementary educational computer

Page 5: The structure COMPUTER ARCHITECTURE – The elementary educational computer

Instructions

- ADD with two addresses

- ADD with one address

- MOVE

- JUMP

- STORE

- LOAD

- INPUT

- OUTPUT

COMPUTER ARCHITECTURE – The elementary educational computer

Page 6: The structure COMPUTER ARCHITECTURE – The elementary educational computer

ADD – with two addresses

Format

|ADD|AD1|AD2|

In symbolic notationMAR(IR)AD1

READAR1(MBR)MAR(IR)AD2

READAR2(MBR)ADDACC(AR1)+(AR2)FRNew valuesGO TO FETCH PHASE

COMPUTER ARCHITECTURE – The elementary educational computer

Page 7: The structure COMPUTER ARCHITECTURE – The elementary educational computer

The diagram

COMPUTER ARCHITECTURE – The elementary educational computer

Page 8: The structure COMPUTER ARCHITECTURE – The elementary educational computer

ADD – with one address

Format

|ADD|AD1|

In symbolic notationMAR(AD1)READAR1(MBR)ADDACC(ACC)+(AR1)FRNew valuesGO TO FETCH PHASE

COMPUTER ARCHITECTURE – The elementary educational computer

Page 9: The structure COMPUTER ARCHITECTURE – The elementary educational computer

The diagram

COMPUTER ARCHITECTURE – The elementary educational computer

Page 10: The structure COMPUTER ARCHITECTURE – The elementary educational computer

MOVE

Format

|MOVE|AD1|AD2|

In symbolic notationMAR(IR)AD1

READMAR(IR)AD2

READWRITEGO TO FETCH PHASE

COMPUTER ARCHITECTURE – The elementary educational computer

Page 11: The structure COMPUTER ARCHITECTURE – The elementary educational computer

The diagram

COMPUTER ARCHITECTURE – The elementary educational computer

Page 12: The structure COMPUTER ARCHITECTURE – The elementary educational computer

JUMP

Format

|JZ|AD1|

In symbolic notationZF=0 GO TO FETCH

PHASEZF=1 PC(IR)AD1

GO TO FETCH PHASE

COMPUTER ARCHITECTURE – The elementary educational computer

Page 13: The structure COMPUTER ARCHITECTURE – The elementary educational computer

The diagram

COMPUTER ARCHITECTURE – The elementary educational computer

Page 14: The structure COMPUTER ARCHITECTURE – The elementary educational computer

STORE

Format

|STORE|AD1|

In symbolic notationMAR(IR)AD1

MBR(ACC)WRITEGO TO FETCH

PHASE

COMPUTER ARCHITECTURE – The elementary educational computer

Page 15: The structure COMPUTER ARCHITECTURE – The elementary educational computer

The diagram

COMPUTER ARCHITECTURE – The elementary educational computer

Page 16: The structure COMPUTER ARCHITECTURE – The elementary educational computer

LOAD

Format

|LOAD|AD1|

In symbolic notationMAR(IR)AD1

READACC(MBR)FRNew valuesGO TO FETCH

PHASE

COMPUTER ARCHITECTURE – The elementary educational computer

Page 17: The structure COMPUTER ARCHITECTURE – The elementary educational computer

The diagram

COMPUTER ARCHITECTURE – The elementary educational computer

Page 18: The structure COMPUTER ARCHITECTURE – The elementary educational computer

INPUT / OUTPUT

Format

|INPUT| INPUT DEVICE ADDRESS|

|OUTPUT| OUTPUT DEVICE ADDRESS|

In symbolic notationINPUT DEVICE(IR)INPUT DEVICE ADDRESS

ACC(INPUT DEVICE)GO TO FETCH ADDRESS

OUTPUT DEVICE(IR)OUTPUT DEVICE

ADDRESS

(OUTPUT DEVICE)ACCGO TO FETCH ADDRESS

COMPUTER ARCHITECTURE – The elementary educational computer