COMS 161 Introduction to Computing

Slides:



Advertisements
Similar presentations
The Fetch – Execute Cycle
Advertisements

Central Processing Unit
Arithmetic Logic Unit (ALU)
Microprocessor.  The CPU of Microcomputer is called microprocessor.  It is a CPU on a single chip (microchip).  It is called brain or heart of the.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Chapter 0 Introduction to Computing
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
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.
What’s on the Motherboard? The two main parts of the CPU are the control unit and the arithmetic logic unit. The control unit retrieves instructions from.
CPU Fetch/Execute Cycle
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computer Science 210 Computer Organization The von Neumann Architecture.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
General Concepts of Computer Organization Overview of Microcomputer.
Intro MIPS Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens The Stored Program Computer 1945: John von Neumann – Wrote a.
Computer Science 101 Computer Systems Organization.
1 COMS 161 Introduction to Computing Title: Computing Basics Date: September 15, 2004 Lecture Number: 10.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Architecture 2 nd year (computer and Information Sc.)
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.
20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
Computer Babble Talk Dung X. Nguyen Rice University.
Chapter 5: Computer Systems Organization Invitation to Computer Science,
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
3.1.4 Hardware a. describe the function and purpose of the control unit, memory unit and ALU (arithmetic logic unit) as individual parts of a computer;
Computer Architecture Adapted from CS10051 originally by Professor: Johnnie Baker Computer Science Department Kent State University von Neuman model.
CPU Lesson 2.
OCR GCSE Computer Science Teaching and Learning Resources
Systems Architecture Keywords Fetch Execute Cycle
The CPU, RISC and CISC Component 1.
Von Neumann architecture
The Stored Program Computer
Starter: Stored Program Concept (von Neumann Architecture)
Computer Science 210 Computer Organization
Introduction to Computer Architecture
Microprocessor and Assembly Language
Chapter 4 The Von Neumann Model
IB Computer Science Topic 2.1.1
Teaching Computing to GCSE
System Architecture 1 Chapter 2.
The Basic Organization of Computers T.Jeya M.Sc., M.Phil Assistant Professor, Department of CS, SAC Women’s College. Cumbum. Tamilnadu.
Chapter 4 The Von Neumann Model
Functional Units.
The Von Neumann Model Basic components Instruction processing
Introduction to Computer Architecture
Chapter 5: Computer Systems Organization
The Little Man Computer
Fundamental Concepts Processor fetches one instruction at a time and perform the operation specified. Instructions are fetched from successive memory locations.
Components of a CPU AS Computing - F451.
Unit 1.1 System Architecture Lesson 2
GCSE OCR 1 The CPU Computer Science J276 Unit 1
A Top-Level View Of Computer Function And Interconnection
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.
Computer Architecture
Little work is accurate
Sec (2.3) Program Execution.
Presentation transcript:

COMS 161 Introduction to Computing Title: Computer Organization Date: April 4, 2005 Lecture Number: 31

Announcements Office Hours Homework 8 Exam 3 Monday’s 2:30 – 4:30 Due Wednesday, April 6 Exam 3 Wednesday, April 13 HTML Computer History Computer Organization

Review Hardware CPU Control Unit Registers Arithmetic and Logic Unit (ALU)

Outline Today’s computers Memory Instruction execution

Von Neumann Architecture ALU Instruction fetch decode Central Processing Unit Control unit Main memory I/O

Harvard Architecture Control unit Central Processing Unit Main memory ALU Instruction fetch decode Central Processing Unit Control unit Main memory I/O

Central Processing Unit Coordinates other activities (I/O devices) Controls the fetch and execute cycle fetch next instruction And it keeps on going Next instruction becomes current instruction in the CPU And going decode current instruction And going And going execute current instruction

Main Memory Storage device for data and instructions Reasonably fast access Works with groups of bytes called words Standard size words 32, 64, 128 Words have unique addresses Constant access time regardless of word location in memory First, last, all the same

Main Memory Random Access Memory (RAM) Readable Writable Get the contents of memory words Writable Change the contents of memory words Usually volatile Loses its values when power is turned off Access time 7.5ns, 10ns, 50ns, 70ns

Main Memory Read Only Memory (ROM) Readable Permanent Provides security Permanent Nonvolatile Special-purpose storage for data and instructions System bios Instructions to start the computer

Terminology CPU Bus Central processing unit Set of lines connecting different components Data bus Address bus Control bus

Terminology Register MAR Fast storage on the CPU Memory address register Stores memory address CPU wants to access

Terminology MDR Memory data register Stores data to be written from the CPU to memory Stores data from the memory requested by the CPU

The CPU and Main Memory Clock ALU Instruction fetch decode Central Processing Unit M A R MDR Main memory Control Bus Address Bus Clock Data Bus

CPU-Main Memory Interaction CPU specifies the address of a memory word it desires Address is stored in the Memory Address Register (MAR) Memory system accesses desired word Puts the word on the Data Bus CPU stores data on the data bus in the Memory Data Register (MDR)

The CPU and Main Memory Clock ALU Instruction fetch decode Central Processing Unit M A R MDR Main memory Control Bus Read/write, memory word available, … Address Bus Clock Data Bus

More Terminology PC IR Program counter Contains the memory address of the next instruction IR Instruction register Place where instruction is stored while it is decoded

The CPU and Main Memory Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Address Bus Data Bus Control Bus Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Clock

Instruction Cycle 1. CPU puts PC value into the MAR Clock ALU decode Central Processing Unit M A R MDR PC IR Address Bus Data Bus Control Bus Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Clock

Instruction Cycle 1. CPU puts PC value into the MAR Clock Central Processing Unit Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus PC IR ALU Instruction decode Address Bus M A R MDR Data Bus Clock

Instruction Cycle 2. CPU request a memory read Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus Address Bus Data Bus Clock

Instruction Cycle 2. CPU request a memory read Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus Address Bus Data Bus Clock

Instruction Cycle 3. CPU increments the PC Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus Address Bus Data Bus Clock

Instruction Cycle 3. CPU increments the PC Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus Address Bus Data Bus Clock

Instruction Cycle 4. Memory signals CPU data is on the data bus Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus Address Bus Data Bus Clock

Instruction Cycle 4. Memory signals CPU data is on the data bus Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus Address Bus Clock Data Bus

Instruction Cycle 5. CPU save the data (instruction) in the MDR Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus Address Bus Data Bus Clock

Instruction Cycle 5. CPU save the data (instruction) in the MDR Clock Central Processing Unit Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus PC IR ALU Instruction decode Address Bus M A R MDR Clock Data Bus

Instruction Cycle 6. CPU moves instruction to the IR Clock ALU Instruction decode Central Processing Unit M A R MDR PC IR Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus Address Bus Data Bus Clock

Instruction Cycle 6. CPU moves instruction to the IR Clock Central Processing Unit Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Control Bus PC IR ALU Instruction decode Address Bus M A R MDR Clock Data Bus

Instruction Cycle: Repeats 1. CPU puts PC value into the MAR ALU Instruction decode Central Processing Unit M A R MDR PC IR Address Bus Data Bus Control Bus Main memory 1011011000110010 1011011111110010 1011011000110000 0101011100000111 program instructions Clock