CSE115: Introduction to Computer Science I

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Machine cycle.
Chapter 1. Basic Structure of Computers
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
Computer Systems. Computer System Components Computer Networks.
Computer Processing CSCE 110 J. Michael Moore.
Stored Program Concept: The Hardware View
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.
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.
CPU Fetch/Execute Cycle
Basic Operational Concepts of a Computer
Computer Organization Computer Organization & Assembly Language: Module 2.
CSE115 / CSE503 Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall 1.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Topic 1Topic 2Topic 3Topic 4Topic
Assembly Language A Brief Introduction. Unit Learning Goals CPU architecture. Basic Assembler Commands High level Programming  Assembler  Machine Language.
The Central Processing Unit (CPU) and the Machine Cycle.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Fetch-execute cycle.
CMSC 150 PROGRAM EXECUTION CS 150: Wed 1 Feb 2012.
Lecture 7: 9/17/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Architecture Lecture 03 Fasih ur Rehman.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
CPU The Central Processing Unit (CPU), has 3 main parts: Control Unit Arithmetic and Logic Unit Registers. These components are connected to the rest.
Dale & Lewis Chapter 5 Computing components
HOW COMPUTERS WORK THE CPU & MEMORY. THE PARTS OF A COMPUTER.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
CPUz 4 n00bz.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
Chapter 10: Computer systems (1)
Machine and Assembly Language
CPU Organisation & Operation
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Computer Science 210 Computer Organization
Microprocessor and Assembly Language
Computer Architecture
The fetch-execute cycle
The Processor and Machine Language
Functional Units.
CS149D Elements of Computer Science
The Little Man Computer
Multicycle Approach We will be reusing functional units
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Program Execution.
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Instruction execution and ALU
Sec (2.3) Program Execution.
Presentation transcript:

CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 645-4739 alphonce@buffalo.edu

Announcements Cell phones off Name signs out

Today’s lessons Instructions are encoded as bit strings Machine languages Fetch-Decode-Execute cycle Assembly languages High-level languages Requirements for a programming language

Computer Organization Central Processing Unit (CPU) Registers General purpose (e.g. R1 – R16) Special purpose (e.g. Program Counter and Instruction Register) Arithmetic Logic Unit (ALU) Memory

Computer Organization Memory (RAM) Processor (CPU) 11010010 R1 R2 11010010 . . . R16 11010010 11010010 PC IR 11010010 11010010 ALU 11010010

Encoding instructions Example 1101000001000010 1101 000001 000010 INSTR ARG1 ARG2 ADD Reg1 Reg2

Instruction decoding “ADD” OP CODE R1 R2 1 1 0 1 0 0 0 0 0 1 0 0 0 0 1 0 Circuitry to decode rest of instruction and carry it out (“execute” the instruction) This wire will carry a 1 only if the op code of the instruction is 1101.

Fetch-Decode-Execute cycle Fetch an instruction (& update PC) Decode instruction Execute instruction (load instruction into IR from location in PC) Fetch Update PC Decode Execute

Low-level languages Machine language Assembly language 1101000001000010 Assembly language ADD R1 R2

High level languages Java We can write “x + y” instead of “ADD R1 R2” (in addition to with several MOV instructions) Others: C#, Erlang, Python, ML, Prolog, Lisp, etc.