marie:an introduction to a simple computer michael dougherty 4.1 - 4.5 september 17, 2009

26
MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Upload: bruce-fowler

Post on 21-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

MARIE:An Introduction to a Simple Computer

Michael Dougherty

4.1 - 4.5

September 17, 2009

Page 2: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Central Processing Unit

CPUFetches Program InstructionsDecode Each InstructionPerform Operation

Divided into two partsDatapathControl Unit

Page 3: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Datapath

Registers

ALUs

Buses

ClockQuickTime™ and a

decompressorare needed to see this picture.

Page 4: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Registers

D Flip-Flops can be used as registersA clock pulse controls access to the data

QuickTime™ and a decompressor

are needed to see this picture.

Page 5: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Registers

Registers have a fixed “word” size

Number of registers are usually a power of 2Special Purpose

Page 6: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

QuickTime™ and a decompressor

are needed to see this picture.

Page 7: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

ALU

Performs the operations such as comparisons, adding, and multiplying

Generally has two data inputs and one data output

These operations often affect bits in the status register

Page 8: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

A Simple ALU circuit

Page 9: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Control Unit

Sequences operations

Ensures data is at the correct place at the correct time

Page 10: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

The BUS

The wires that connect the CPU to other components

Only one item at a time can use the bus

Speed is affected by length and number of devices sharing it.

Page 11: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Point-to-point bus

Point-to-point bus connects two specific devices

Page 12: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Common pathway

Common pathway connects a number of devices

“Multipoint” bus

Page 13: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Bus Protocol

Data bus

Control lines

QuickTime™ and a decompressor

are needed to see this picture.

Address lines

Power lines

Page 14: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Data Bus

Data bus - the actual information to move from one location to another

QuickTime™ and a decompressor

are needed to see this picture.

Page 15: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Control lines

Control lines - tell which device has permission to use the bus and for what.

QuickTime™ and a decompressor

are needed to see this picture.

Page 16: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Address lines

Address lines - the location in memory that the data should be read from or written to.

QuickTime™ and a decompressor

are needed to see this picture.

Page 17: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Power lines

Power lines - provides the power to the circuitry.

Page 18: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Bus Types

Processor-memory Buses I/O Buses Backplane Bus Personal Computer Buses

Internal Bus (System Bus) External Bus Local Bus

Page 19: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Just Some Wires?

Synchronous buses

QuickTime™ and a decompressor

are needed to see this picture.

Page 20: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Asynchronous buses

Handshaking ProtocolReqREADReadyDATAACK

Page 21: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Bus arbitration

Daisy Chain Arbitration

Centralized Parallel Arbitration

Distributed Arbitration using self-selection

Distributed arbitration using collision detection

Page 22: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Clocks

Speed

Clock cycles

Clock Frequencies (MHz or GHz)

Clock Cycle TimeBus clocks

Overclocking

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 23: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Speed vs. Performance

Same clock speed ≠ same performance Intel 286

PentiumQuickTime™ and a

decompressorare needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 24: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Overclocking

Pushes manufacturer’s time constraints

QuickTime™ and a decompressor

are needed to see this picture.

QuickTime™ and a decompressor

are needed to see this picture.

Page 25: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

The I/O Subsystem

Most familiar items of computer

Not connected directly to the CPUMemory-mapped I/O

QuickTime™ and a decompressor

are needed to see this picture.

Page 26: MARIE:An Introduction to a Simple Computer Michael Dougherty 4.1 - 4.5 September 17, 2009

Instruction-based I/O

No memory use

Limited CPUs can use devices