lecture 5 computer hardware. von neumann architecture

29
Lecture 5 Computer Hardware

Upload: vivian-adams

Post on 21-Jan-2016

253 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Lecture 5 Computer Hardware. von Neumann Architecture

Lecture 5

Computer Hardware

Page 2: Lecture 5 Computer Hardware. von Neumann Architecture
Page 3: Lecture 5 Computer Hardware. von Neumann Architecture

von Neumann Architecture

Page 4: Lecture 5 Computer Hardware. von Neumann Architecture

Secondary Storage - The Disc Drive

Page 5: Lecture 5 Computer Hardware. von Neumann Architecture

The Very Simple Computer

Page 6: Lecture 5 Computer Hardware. von Neumann Architecture

Half Adder

a b

s

c

HalfAdder

a b

c s

a b

s

c

HalfAdder

a b

c s

a b

s

c

a b

s

c

HalfAdder

a b

c s

HalfAdder

a b

c s

Page 7: Lecture 5 Computer Hardware. von Neumann Architecture

Full Adder

Page 8: Lecture 5 Computer Hardware. von Neumann Architecture

N-Bit Adder

Page 9: Lecture 5 Computer Hardware. von Neumann Architecture

Ripple-Carry Adder

Page 10: Lecture 5 Computer Hardware. von Neumann Architecture

S-R Latch and D-Type Flip Flop

Page 11: Lecture 5 Computer Hardware. von Neumann Architecture

Register Transfer

Page 12: Lecture 5 Computer Hardware. von Neumann Architecture

The Fetch - Execute Cycle

Page 13: Lecture 5 Computer Hardware. von Neumann Architecture

Running the VSC

enEXE

MARMEM1LAT

ACC2LAT

1PCPC

04IRMAR

MARMEMIR

PCMAR

][

:

][

Page 14: Lecture 5 Computer Hardware. von Neumann Architecture

enEXE

MARMEM1LAT

ACC2LAT

1PCPC

04IRMAR

MARMEMIR

PCMAR

][

:

][

Running the VSC

Page 15: Lecture 5 Computer Hardware. von Neumann Architecture

enEXE

MARMEM1LAT

ACC2LAT

1PCPC

04IRMAR

MARMEMIR

PCMAR

][

:

][

Running the VSC

Page 16: Lecture 5 Computer Hardware. von Neumann Architecture

enEXE

MARMEM1LAT

ACC2LAT

1PCPC

04IRMAR

MARMEMIR

PCMAR

][

:

][

Running the VSC

Page 17: Lecture 5 Computer Hardware. von Neumann Architecture

enEXE

MARMEM1LAT

ACC2LAT

1PCPC

04IRMAR

MARMEMIR

PCMAR

][

:

][

Running the VSC

Page 18: Lecture 5 Computer Hardware. von Neumann Architecture

enEXE

MARMEM1LAT

ACC2LAT

1PCPC

04IRMAR

MARMEMIR

PCMAR

][

:

][

Running the VSC

Page 19: Lecture 5 Computer Hardware. von Neumann Architecture

Running the VSC

enEXE

MARMEM1LAT

ACC2LAT

1PCPC

04IRMAR

MARMEMIR

PCMAR

][

:

][

Page 20: Lecture 5 Computer Hardware. von Neumann Architecture

Fetch-Execute Cycle Timing Diagram

Page 21: Lecture 5 Computer Hardware. von Neumann Architecture

Control UnitExecuting OpCodes

LDAen - load ACC enable - moves value in LAT1 into ACC

STAen - store ACC enable - moves value in ACC into MEM[MAR]

ADDen - ADD enable

CMPen - CMP (1's complement) enable - takes the bitwise inverse of LAT1

BNNen - if(ACC7 = 0) then PC = IR<4:0>

SHLen - shift-left enable

SHRen - shift-right enable

HLTen - halts the fetch-execute cycle by setting

ControlUnit

IR

Page 22: Lecture 5 Computer Hardware. von Neumann Architecture

Arithmetic Logic Unit

Page 23: Lecture 5 Computer Hardware. von Neumann Architecture

Programming the VSC

addr label instruction addr machine code .

0 LDA A 00000 00000100

1 ADD B 00001 01000101

2 STO C 00010 00100110

3 HLT 00011 11111111

4 A 24 00100 00011000

5 B 30 00101 00011110

6 C 0 00110 00000000

Page 24: Lecture 5 Computer Hardware. von Neumann Architecture

Types of Multiprocessors

SISD - Single Instruction - Single DataSIMD - Single Instruction - Multiple DataMISD - Multiple Instruction - Single DataMIMD - Multiple Instruction- Multiple Data

Page 25: Lecture 5 Computer Hardware. von Neumann Architecture
Page 26: Lecture 5 Computer Hardware. von Neumann Architecture
Page 27: Lecture 5 Computer Hardware. von Neumann Architecture
Page 28: Lecture 5 Computer Hardware. von Neumann Architecture
Page 29: Lecture 5 Computer Hardware. von Neumann Architecture