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

Post on 21-Jan-2016

218 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

Datapath

Registers

ALUs

Buses

ClockQuickTime™ and a

decompressorare needed to see this picture.

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.

Registers

Registers have a fixed “word” size

Number of registers are usually a power of 2Special Purpose

QuickTime™ and a decompressor

are needed to see this picture.

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

A Simple ALU circuit

Control Unit

Sequences operations

Ensures data is at the correct place at the correct time

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.

Point-to-point bus

Point-to-point bus connects two specific devices

Common pathway

Common pathway connects a number of devices

“Multipoint” bus

Bus Protocol

Data bus

Control lines

QuickTime™ and a decompressor

are needed to see this picture.

Address lines

Power lines

Data Bus

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

QuickTime™ and a decompressor

are needed to see this picture.

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.

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.

Power lines

Power lines - provides the power to the circuitry.

Bus Types

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

Internal Bus (System Bus) External Bus Local Bus

Just Some Wires?

Synchronous buses

QuickTime™ and a decompressor

are needed to see this picture.

Asynchronous buses

Handshaking ProtocolReqREADReadyDATAACK

Bus arbitration

Daisy Chain Arbitration

Centralized Parallel Arbitration

Distributed Arbitration using self-selection

Distributed arbitration using collision detection

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.

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.

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.

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.

Instruction-based I/O

No memory use

Limited CPUs can use devices

top related