Computer Operation What basic hardware components are inside a personal computer?

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

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.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
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 TK6123: COMPUTER ORGANISATION & ARCHITECTURE Prepared By: Associate Prof. Dr Masri Ayob Lecture 6: CPU and Memory (1)
The Computer Processor
Computer Structure.
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
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.
Computer Architecture and the Fetch-Execute Cycle
Computer Architecture and the Fetch-Execute Cycle
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Title: Computer Operation Subject: Computer Studies EDD 5161 F Educational Communication & Technology.
Week 2.  Understand what the processor is and what it does.  Execute basic LMC programs.  Understand how CPU characteristics affect performance.
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Computer Systems - Registers. Starter… Discuss in pairs the definition of the following Control Unit Arithmetic and Logic Unit Registers Internal clock.
Computer Structure & Architecture 7b - CPU & Buses.
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.
System Unit Working of CPU. The CPU CPU The CPU CPU stands for central processing unit. it is brain of computer It is most important component of the.
Dale & Lewis Chapter 5 Computing components
Computer operation is of how the different parts of a computer system work together to perform a task.
Structure and Role of a Processor
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
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.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
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;
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Stored Program Concept Learning Objectives Learn the meaning of the stored program concept The processor and its components The fetch-decode-execute and.
Computer Systems Nat 4/5 Computing Science Computer Structure:
CPU Lesson 2.
Computing Science Computer Structure: Lesson 1: Processor Structure
A Ben Itaba Presentation
8085 Microprocessor Architecture
Systems Architecture Keywords Fetch Execute Cycle
The CPU, RISC and CISC Component 1.
Von Neumann architecture
Control Unit Operation
Chapter 10: Computer systems (1)
Stored program concept
Lesson Objectives A note about notes: Aims
Introduction of microprocessor
Components of Computer
Course Name: Computer Application Topic: Central Processing Unit (CPU)
CENTRAL PROCESSING UNIT CPU (microprocessor)
General Architecture of Digital Computer
Computer Architecture
Hook – CPU Knowledge Check
IB Computer Science Topic 2.1.1
Teaching Computing to GCSE
Processor Organization and Architecture
Introduction to Microprocessors and Microcontrollers
Number Representations and Basic Processor Architecture
Functional Units.
COMS 161 Introduction to Computing
Basic Computer Organization
The Little Man Computer
Central Processing Unit
Components of a CPU AS Computing - F451.
GCSE OCR 1 The CPU Computer Science J276 Unit 1
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.
OCR GCSE (9-1) Computer Science (J276)
Computer Architecture
Presentation transcript:

Computer Operation What basic hardware components are inside a personal computer?

System unit Input devices CPU Main memory (RAM, ROM) Output devices Secondary storage

Arithmetic and logic unit Control unit Memory unit Input/ output unit CPU control bus data bus address bus Simple Model Computer block diagram

There are some components in each unit. Address Decoder Memory Address Register Memory Data RegisterMemory Unit Arithmetic and Logic Unit Control Unit Logic Circuit Status Register Accumulator Instruction Decoder Instruction Register Program Counter

Arithmetic and logic unit SRACC ALU  It performs arithmetic(i.e. mathematic) manipulation.  Accumulator (ACC)  To hold the final result or intermediate result of the operation temporarily.  Status register (SR)  To describe the status of the current content in the accumulator.  Logic circuit  To perform arithmetic and logic operation.

Accumulator The accumulator acts as the rough work sheet. You can write down the intermediate result or final result of your calculation. For example, when evaluating (4 + 2) + (8 – 3) You better write down the result on the rough work sheet!! Exercises

Status Register It describes the current status of the accumulator. These flags include the zero flag, carry flag, overflow flag, negative flag, etc.

For example, 9 Accumulator oddintegernegative zero

0 Accumulator oddintegernegative zero

-1.8 Accumulator oddintegernegative zero

Instruction decoder PC IR Control unit It directs all operations within the computer Instruction register (IR) To hold the current instructions Instruction decoder To interprets the current instruction Program counter (PC) To hold the address of the next instruction. Exercises

Let’s see how the control unit works! For example, you are a soldier. The General Mr. Chan gives you several confidential envelops. Each envelop contains only one command from the General.

The Commander A knows the order to open the envelop and the Commander B reads the command inside each envelop. You cannot open the envelops or read the commands yourself. The Messenger translate the command to you.

The Commander A knows which envelop should be opened first and give it to Commander B.

The Commander B reads the command. At the same time, the Commander A prepares to give Commander B the command of the next envelop.

However, you don’t know English!!!!! The Messenger translate the command to you. 叫你走佬呀 !!!! Then you know the command from the General Mr. Chan. 我知啦 !!!!

The Messenger plays the role of instruction decoder. The Commander B acts as Instruction register. The Commander A acts as Program Counter.

Control unit +1 PC IR Instruction decoder Main memory READ A 04 READ B READ A Data flow among the IR, PC, instruction decoder and main memory

main memory address decoder MDR MAR Memory Unit  Memory Address register (MAR)  To hold the addresses of the data or instructions to be accessed.  Memory Data register (MDR)  To hold the data or instructions to be written to or fetched(read) from main memory.  Address Decoder  To interpret the address held in the MAR.

Control unit +1 PC IR Instruction decoder Memory unit READ A 04 READ B 05  MAR MDR Address decoder Main memory 03 READ A 03 READ A Data flow among the IR, PC, instruction decoder, MAR, MDR, address decoder and main memory

Question 1 Work Harder Exercises Question 2 Question 3 Question 4 Question 5 Ans 1 Ans 2 Ans 4 Ans 3 Ans 5

Exercise One Exercises Which of the following registers is NOT in the control unit ? Instruction Register Program Counter Memory Data Register Accumulator Hint

Exercise One Which of the following registers is NOT in the control unit ? Instruction Register Program Counter Memory Data Register Accumulator Exercises

Exercise Two Decoder is a component of the Visual display unit. Main memory CU ALU Exercises Hint

Exercise Two Exercises Decoder is a component of the Visual display unit. Main memory CU ALU

Exercise Three Exercises What is the instruction register? The circuit required to decode the instruction The memory location of the next instruction to be executed The register to hold the address of the next instruction The register to hold the instruction to be executed Hint

Exercise Three Exercises What is the instruction register? The circuit required to decode the instruction The memory location of the next instruction to be executed The register to hold the address of the next instruction The register to hold the instruction to be executed

Exercise Four Exercises Which of the following about program counter is/are correct? (1) It holds the address of present instruction. (2) Its content changes automatically. (3) Its content cannot be altered by user. (1) only (2) and (3) only (1) and (3) only (2) only Hint

Exercise Four Exercises Which of the following about program counter is/are correct? (1) It holds the address of present instruction. (2) Its content changes automatically. (3) Its content cannot be altered by user. (1) only (2) and (3) only (1) and (3) only (2) only

Exercise Five Exercises Which of the following about accumulator is/are correct? (1) It is a general purpose register. (2) It is used to store the results temporary. (3) It is the register that the ALU acts on. (1) only (2) and (3) only (1) and (3) only (2) only Hint

Exercise Five Exercises Which of the following about accumulator is/are correct? (1) It is a general purpose register. (2) It is used to store the results temporary. (3) It is the register that the ALU acts on. (1) only (2) and (3) only (1) and (3) only (2) only

Exercises