csci-100 introduction to computing hardware design part i

11
CSCI-100 Introduction to Computing Hardware Design Part I

Upload: hope-simon

Post on 04-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CSCI-100 Introduction to Computing Hardware Design Part I

CSCI-100Introduction to Computing

Hardware DesignPart I

Page 2: CSCI-100 Introduction to Computing Hardware Design Part I

• Levels of representationHigh Level Language

Program (e.g., C)

Machine Language Program

Compiler

temp = v[k];

v[k] = v[k+1];

v[k+1] = temp;

0000 1001 1100 0110 1010 1111 0101 10001010 1111 0101 1000 0000 1001 1100 0110 1100 0110 1010 1111 0101 1000 0000 1001 0101 1000 0000 1001 1100 0110 1010 1111

Logic Circuit Description(Circuit Schematic Diagrams)

Architecture Implementation

Page 3: CSCI-100 Introduction to Computing Hardware Design Part I

• Electricity and SwitchesModern computers are powered by electricity, using electrical signals to store and manipulate information

The components of a computer require electrical power to carry out their assigned task

• Electricity generates the light that shines through a computer screen, illuminating the individual pixels that make up images and letters

• Electricity runs the motor that spins the hard-drive disk, allowing information to be accessed

• Main memory and CPU employ electrical signals to store and manipulate data

• Bit patterns are represented by the presence or absence of electrical current along a wire

Page 4: CSCI-100 Introduction to Computing Hardware Design Part I

• SwitchesThe most basic tool for controlling the flow of electricity is a switch

• A switch can be flipped to connect or disconnect two wires, thus regulating the flow of electricity between them

Page 5: CSCI-100 Introduction to Computing Hardware Design Part I

• TransistorsA transistor is a solid piece of metal attached to a wire that serves as a switch by alternatively conducting or resisting electricity

• Solid-state switches; either permit or block current flow• A control input causes state change

Page 6: CSCI-100 Introduction to Computing Hardware Design Part I

A large number of transistors, as well as the electrical conducting paths that connect them, can be printed photographically on a wafer of silicon to produce a device known as an integrated circuit or, more commonly, a chip

At current technology levels, 25 million or more transistors can fit into a space only 1cm2

Transistors can be combined to form a circuit, which controls the flow of electricity in order to produce a particular behavior

Page 7: CSCI-100 Introduction to Computing Hardware Design Part I

The production of integrated circuits is one of the most complex engineering processes in the world

• Transistors on chips can be as small as .065 microns (roughly 1/1,500th the width of human hair)

• Since a hair or dust particle can damage circuitry during manufacture, chips are created in climate-controlled "clean rooms"

Page 8: CSCI-100 Introduction to Computing Hardware Design Part I

• GateThe term gate suggests a simple circuit that controls the flow of electricity

• In the case of a NOT gate, the flow of electricity is manipulated so that the output signal is always opposite of the input signal

• We can think of a gate as computing a function of binary values

– 0 represents no current; 1 represents current

– symbol to the left (triangle w/ circle) used to denote NOT gate

– truth table to right describes mapping of input to output

Page 9: CSCI-100 Introduction to Computing Hardware Design Part I

Many other simple circuits can be defined to perform useful tasks

• AND gate – produces voltage on its output wire if both input wires carry voltage

• OR gate – produces voltage on its output wire if either input wire carries voltage

• AND, OR, and NOT gates can be combined to construct all the circuitry required to store and manipulate information within a computer

Page 10: CSCI-100 Introduction to Computing Hardware Design Part I

• Boolean Logic and GatesBoolean logic describes operations on true/false values

True/false maps easily onto bistable environment

Boolean logic operations on electronic signals can be built out of transistors

Boolean operations

• a AND b

– True only when a is true and b is true

• a OR b

– True when a is true, b is true, or both are true

• NOT a

– True when a is false and vice versa

Page 11: CSCI-100 Introduction to Computing Hardware Design Part I

Boolean expressions

• Constructed by combining together Boolean operations

– Example: (a AND b) OR ((NOT b) AND (NOT a))

Truth tables capture the output/value of a Boolean expression

• A column for each input plus the output

• A row for each combination of input values

• Example: (a AND b) OR ((NOT b) and (NOT a))