Information Manipulation

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

DAP teaching computer architecture at Berkeley since 1977
CS364 CH16 Control Unit Operation
1  1998 Morgan Kaufmann Publishers We will be reusing functional units –ALU used to compute address and to increment PC –Memory used for instruction and.
Damian BrowneLuis PabonPedro Tovar The operation of a computer in executing a program consists of a sequence of Instruction Cycles, with one machine.
Slide 1CPU Emulator Tutorial This program is part of the software suite that accompanies the book The Digital Core, by Noam Nisan and Shimon Schocken 2003,
The LC-3 – Chapter 6 COMP 2620 Dr. James Money COMP
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
1 Programming & Programming Languages Overview l Machine operations and machine language. l Example of machine language. l Different types of processor.
Chapter 9_1 Following Instructions: Principles of Computer Operation.
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
 Prof. Dr. M. H. Assal Introduction to Computer AS 26/10/2014.
Adding Automated Functionality to Office Applications.
Design and Synthesis of a RISC Stored-Program Machine
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Computer Science 210 Computer Organization The Instruction Execution Cycle.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Following Instructions: Principles of Computer Operation
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Copyright ©2005  Department of Computer & Information Science Introducing Programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Chapter 9 Following Instructions: Principles of Computer Operation.
Lecture 3. Diff b/w RAM and Registers Registers are used to hold data immediately applicable to the operation at hand Registers are used to hold data.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Session 3 Process and organize data 1. Terminology 2 For a list of computer and internet terminology, please see the.
Dr. José M. Reyes Álamo 1.  Review: ◦ Statement Labels ◦ Unconditional Jumps ◦ Conditional Jumps.
The von Neumann Model – Chapter 4
Computer Systems Week 7: Looping and Input/Output with 3-bit Alma Whitfield.
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.
The 8051 Microcontroller and Embedded Systems
Lecture 7: 9/17/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
8-1 Compilers Compiler A program that translates a high-level language program into machine code High-level languages provide a richer set of instructions.
1.4 Representation of data in computer systems Instructions.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Data Manipulation, part two Introduction to computer, 2 nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
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.
JUMP, LOOP, AND CALL INSTRUCTIONS
Jump and Branch Instructions
Computer Organization Instructions Language of The Computer (MIPS) 2.
Introduction to Computing Systems and Programming Programming.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Chapter 9 Turing Machines What would happen if we change the stack in Pushdown Automata into some other storage device? Truing Machines, which maintains.
Chapter 1: Introduction to Computers and Programming
BASIC PROGRAMMING C SCP1103 (02)
Chapter 9: Principle of Computer Operation
What Computers Can and Cannot Do
BASIC PROGRAMMING C SCP1103 (02)
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Computer Organization & Assembly Language Chapter 3
Following Instructions: Principles of Computer Operation
Computer Science 210 Computer Organization
Do it now You will find your do it now task in your workbook – look for the start button! Thursday, 20 September 2018.
Chapter 1: Introduction to Computers and Programming
Computer Science 210 Computer Organization
CS149D Elements of Computer Science
CPU Emulator Tutorial This program is part of the software suite
CSCI-N 100 Dept. of Computer and Information Science
Sec (2.3) Program Execution.
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Information Manipulation CSCI-N 100 Dept. of Computer and Information Science

Doing what its told Computers deterministically perform instructions to process information Deterministically Computer determines which instruction to execute next Required by construction to execute a specific instruction based only on program and data given to it No alternatives, no options Will execute one and only one next instruction

Computers… Have no imagination or creativity Have no intuition Are literal (no decorum, irony, subtlety…) Do no have a sense of humor Are not vindictive, cruel… Are not purposeful Have no free will

The Process Information Manipulation Sits in switches called memory Memory just ‘holds’ information until called Cannot manipulate information in memory Manipulation Information called Placed in register Information manipulated Put back into memory

Fetch and Execute Cycle A sequence of actions Getting instructions Figuring out what to do Gather data needed to do it Doing it Saving the results Repeat (if necessary)… Happens millions of times, short period of time

What’s in the cycle Elemental commands (sometimes called machine language) Each computer has limited number How many not important Structures that process the information

The Structures Structures that process information Sequence – done in order one step after another Decision – yes/no, true/false Iteration – also called looping Computer will only follow directions given to it in the written program

What’s in the cycle (cont’d) Any change or interference in instructions can change computers ability to complete task and give any type of result Blue screen of death Cyclic redundancy Computer ‘froze’

Properties of memory Discrete locations Addresses Value Organized in order Addresses Location in memory with a given number Starts at zero (0) Value Contents of location Finite capacity Each location has capacity of 1 byte (8 bits)

Make it Stop Early computers had Start/Stop buttons Newer machines execute an “idle loop” Instructions continually check if there is anything to do Mouse click Keystroke