cs101 processor and ram how do the zeros and ones change form in the processor?

23
CS101 Processor and Ram

Upload: grace-moore

Post on 18-Jan-2016

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS101 Processor and Ram How do the zeros and ones change form in the processor?

CS101

Processor and Ram

Page 2: CS101 Processor and Ram How do the zeros and ones change form in the processor?

• How do the zeros and ones change form in the processor?

Page 3: CS101 Processor and Ram How do the zeros and ones change form in the processor?

Why do we want to know this?

• We want to know this because the processor is one of the most important inventions of all time

• We want to be amongst the few people in the world to know the basics of this important invention (and it will be on the quiz)

Page 4: CS101 Processor and Ram How do the zeros and ones change form in the processor?

The basic on/off switches of a processor are arranged to form

logic gates• In logic gates 0 = false and 1 = true

– Another way to think about it is:• Switch off = 0 = false Switch on = 1 = true

• Four logic gates are:– AND gate– OR gate– XOR gate– Inverter (NOT) gate

Page 5: CS101 Processor and Ram How do the zeros and ones change form in the processor?

AND Gate Output

Page 6: CS101 Processor and Ram How do the zeros and ones change form in the processor?

OR Gate Output

Page 7: CS101 Processor and Ram How do the zeros and ones change form in the processor?

XOR Gate Output

Page 8: CS101 Processor and Ram How do the zeros and ones change form in the processor?

Inverter (NOT) Gate Output

Page 9: CS101 Processor and Ram How do the zeros and ones change form in the processor?

Using logic gates…

• … zeros and ones can go into the processor and change into different zeros and ones.

• … the processor can perform five functions: addition, subtraction, multiplication, division, and logical comparison

Page 10: CS101 Processor and Ram How do the zeros and ones change form in the processor?

Which means…

… everything your computer does (email, instant message, play games, listen to music, play video, word process, etc) must be broken down into addition, subtraction, multiplication, division, and logical comparison which is accomplished by running zeros and ones through the logic gates found in a processor.

Page 11: CS101 Processor and Ram How do the zeros and ones change form in the processor?

How a program runs on a computer

• When you double click on a program icon to run a program the programs directions are sent to RAM

• As the programs directions are needed they are sent to the processor to be processed

• The processor has two main parts:– Control Unit– ALU (Arithmetic Logic Unit)

Page 12: CS101 Processor and Ram How do the zeros and ones change form in the processor?

• The Control Unit in the processor is responsible for controlling the program as it runs.

• The Arithmetic Logic Unit in the processor is responsible for processing the addition, subtraction, multiplication, division, and logical expressions.

Page 13: CS101 Processor and Ram How do the zeros and ones change form in the processor?

• RAM and CPU

Page 14: CS101 Processor and Ram How do the zeros and ones change form in the processor?

How a program runs on a computer

Page 15: CS101 Processor and Ram How do the zeros and ones change form in the processor?
Page 16: CS101 Processor and Ram How do the zeros and ones change form in the processor?
Page 17: CS101 Processor and Ram How do the zeros and ones change form in the processor?
Page 18: CS101 Processor and Ram How do the zeros and ones change form in the processor?
Page 19: CS101 Processor and Ram How do the zeros and ones change form in the processor?
Page 20: CS101 Processor and Ram How do the zeros and ones change form in the processor?
Page 21: CS101 Processor and Ram How do the zeros and ones change form in the processor?
Page 22: CS101 Processor and Ram How do the zeros and ones change form in the processor?
Page 23: CS101 Processor and Ram How do the zeros and ones change form in the processor?

Upgrading Processor/Ram Notes