Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

The CPU The Central Presentation Unit What is the CPU?
The Fetch – Execute Cycle
Machine cycle.
Central Processing Unit
CS364 CH16 Control Unit Operation
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
ARITHMETIC LOGIC SHIFT UNIT
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.
The CPU. Parts of the CPU Control Unit Arithmetic & Logic Unit Registers.
CPS 101 Introduction to Computational Science Wensheng Shen Department of Computational Science SUNY Brockport.
Computer Systems. Computer System Components Computer Networks.
Stored Program Concept: The Hardware View
The processor 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.
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
CH12 CPU Structure and Function
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Basic Operational Concepts of a Computer
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.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Week 2.  Understand what the processor is and what it does.  Execute basic LMC programs.  Understand how CPU characteristics affect performance.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
The Central Processing Unit (CPU) and the Machine Cycle.
Computer Science 101 Computer Systems Organization ALU, Control Unit, Instruction Set.
Fetch-execute cycle.
CMSC 150 PROGRAM EXECUTION CS 150: Wed 1 Feb 2012.
Computer Systems - Registers. Starter… Discuss in pairs the definition of the following Control Unit Arithmetic and Logic Unit Registers Internal clock.
D75P 34 – HNC Computer Architecture
M. Mateen Yaqoob The University of Lahore Spring 2014
Computer Studies/ICT SS2
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
1.4 Representation of data in computer systems Instructions.
Dale & Lewis Chapter 5 Computing components
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
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.
CPU (Central Processing Unit). The CPU is the brain of the computer. Sometimes referred to simply as the processor or central processor, the CPU is where.
Chapter 5 Computer Organization TIT 304/TCS 303. Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can.
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;
1 What we want: execute High Level Language (HLL) programs What we have: computer hardware (a glorified calculator)
OCR GCSE Computer Science Teaching and Learning Resources
Control Unit Operation
Lecture 13 - Introduction to the Central Processing Unit (CPU)
William Stallings Computer Organization and Architecture 8th Edition
System Architecture 1 Chapter 2.
Data Representation – Instructions
The fetch-execute cycle
The Processor and Machine Language
Functional Units.
Topic 6 LC-3.
Processor Organization and Architecture
Sequencing, Selection, and Loops in Machine Language
Multicycle Approach We will be reusing functional units
Program Execution.
CPU Structure and Function
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.
Instruction execution and ALU
Computer Architecture
Sec (2.3) Program Execution.
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

Basic Computer Organization, CPU L1 Prof. Sin-Min Lee Department of Computer Science

currently the fastest, most powerful CPU are Intel Pentium III processor

In the first phase of the cycle, the processor fetches an instruction from memory. The address of the instruction to fetch is stored in an internal register named the program counter, or PC. As the processor is waiting for the memory to respond with the instruction, it increments the PC. This means the fetch phase of the next cycle will fetch the instruction in the next sequential location in memory (unless the PC is modified by a later phase of the cycle).

1. ACCUMULATOR(ACC). The accumulator size matches that of the memory word because data is transferred from memory to the accumulator and from the accumulator to memory. The CPU has the capability to add and subtract values from the value stored in the accumulator.

2.PROGRAM COUNTER(PC) This register holds the memory address of the next instruction to be executed by the processor. 3.INSTRUCTION REGISTER (IR) The instruction register holds the instruction currently being executed by the processor. The IR is broken into two parts: the left-most digit is an instruction code, or OP CODE, while the right 2 digits are (usually) interpreted as a memory address. 4.CONDITION CODE REGISTER (CC) This register holds one digit (actually either a 0 or a 1). This register is used to store a value based on the comparison of two numeric values: the CC has value 0 (zero) if the compared values are NOT equal and value 1 if the values are equal.

Decode phase In the decode phase the processor stores the information returned by the memory in another internal register, known as the instruction register, or IR. The IR now holds a single machine instruction, encoded as a binary number. The processor decodes the value in the IR in order to figure out which operations to perform in the next stage.

In the execution stage the processor actually carries out the instruction. This step often requires further memory operations; for example, the instruction may direct the processor to fetch two operands from memory, add them, and store the result in a third location (the addresses of the operands and the result are also encoded as part of the instruction).