How Computers Work in Simple english Dr. John P. Abraham Professor UTPA.

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

Chapter 2 Data Manipulation Dr. Farzana Rahman Assistant Professor Department of Computer Science James Madison University 1 Some sldes are adapted from.
1 Microprocessor History. 2 The date is the year that the processor was first introduced. Many processors are re- introduced at higher clock speeds for.
The Little man computer
1 Lecture-2 CSIT-120 Spring 2001 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Computer Systems. Computer System Components Computer Networks.
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Stored Program Concept: The Hardware View
Computer Hardware What goes on inside?. Deeper.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
State Machines Used to Design Sequential Circuits.
Computer ArchitectureFall 2007 © Sep 10 th, 2007 Majd F. Sakr CS-447– Computer Architecture.
CPU Structure and Instruction Execution Timothy C. Rice Jr., MIT.
SUPERSCALAR EXECUTION. two-way superscalar The DLW-2 has two ALUs, so it’s able to execute two arithmetic instructions in parallel (hence the term two-way.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
How Computers Work Dr. John P. Abraham Professor UTPA.
The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
The CPU (or Central Processing Unit. Statistics Clock speed – number of instructions that can be executed per second Data width – The number of bits held.
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
What have mr aldred’s dirty clothes got to do with the cpu
Computer Architecture and the Fetch-Execute Cycle
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
The Central Processing Unit (CPU) and the Machine Cycle.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Computer Science 101 Computer Systems Organization ALU, Control Unit, Instruction Set.
Computer Architecture 2 nd year (computer and Information Sc.)
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Electronic Analog Computer Dr. Amin Danial Asham by.
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
Elements of Datapath for the fetch and increment The first element we need: a memory unit to store the instructions of a program and supply instructions.
CMSC 104, Lecture 061 Stored Programs A look at how programs are executed.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
COMPUTER SYSTEM FUNDAMENTAL Genetic Computer School THE PROCESSING UNIT LESSON 2.
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
The Little man computer
Introduction to Programming Part 2
Control Unit Lecture 6.
The Central Processing Unit
Micro-programmed Control Unit
Processor (I).
Design of the Control Unit for Single-Cycle Instruction Execution
The fetch-execute cycle
The Processor and Machine Language
Figure 8.1 Architecture of a Simple Computer System.
Computer Organization and ASSEMBLY LANGUAGE
Design of the Control Unit for One-cycle Instruction Execution
Basic Computer Organization
MIPS Processor.
Processor Organization and Architecture
Computer Architecture
Program Execution.
Basic Computer Organization
A Top-Level View Of Computer Function And Interconnection
Instruction execution and ALU
COMPUTER ARCHITECTURE
Presentation transcript:

How Computers Work in Simple english Dr. John P. Abraham Professor UTPA

Credit given Much of these slides are borrowed.. The author did not leave information for me to cite.

Analogy A clerk and Boxes that holds instructions and data Think of it like post boxes, each box numbered. Each post office box instead of holding letters, holds simple digital information.

Instructions and Data If we consider one wall of boxes to hold instructions and another data, and start by reading the information or instructions in the first box on the instruction wall, we would then access each box sequentially unless instructed to do otherwise; we are executing a program.

Set of instructions called a program the clerk may read the information in the first box on the instruction wall and it says to take the information in the third box on the data wall and add it together with the information in the second box on the data wall, write down the sum and place it in the fifth box on the data wall. This process adds two numbers together and stores the result in a different location.

Branching with a condition the clerk may read information in the first box on the instruction wall instructing if the information or data in the first box on the data wall is larger than the information or data in the second box on the data wall, then go to the twenty-first box on the instruction wall and perform that instruction, or if it isn't larger, perform the instruction in the second box on the instruction wall. This is the decision making capability of the computer and gives it the power to do different things based upon conditions.

How computer starts When we boot the computer (start it) we force the processor to go to a special memory area which is ROM, or permanent memory. The clerk would, when he comes to work, go to a special area that is always the same and contains the same instructions. Since the clerk, when he goes home, forgets all about work, this area essentially retrains him rapidly and tells him to go the file cabinet and bring out the necessary work and place it in all the correct post office boxes. Once he is done loading all the boxes, he can start at the first and follow instructions from there on.

How does computer work with so many languages & Desciplines Software Hardware –Recognizes switches that are turned off and on –Transistors can act as switches and amplifiers. –One switch that provides two states,

Transistor analogy C Collector. Power supply voltage B base E Emittor By varying levels of current in B, the amount of current flowing into E can be regulated

2n2n 1 – – 32 6 –

ASCII and Unicode 8 bits 16 or 32 bits

Opcode and Operand Operation And what is operated on How many instructions needed?

Computer System CPU - memory Peripherals (input & output)

CPU Control unit ALU Registers Interconnection

Operation of a CPU 1. Figure out where the next instruction is in the memory (instruction address calculation). 2. Fetch the instruction 3. Figure out what the fetched code means (decoding the instruction). 4. If it requires an operand –a. Figure out where the operand is kept (operand address calculation). b. Fetch the operand

continued c. If there are multiple operands repeat a and b. 5. Execute the instruction (such as add, subtract, multiply, jump, loop, etc) 6. Figure out the location to store the result (operand address calculation) 7. store the result, if there are multiple results repeat 6 and Go back to 1 to do the next instruction, or End if it is the last instruction.

Instruction Cycle State Diagram