BLOCK DIAGRAM OF A COMPUTER SYSTEM

Similar documents
CHAPTER 7: The CPU and Memory

Central Processing Unit (CPU)

MICROPROCESSOR AND MICROCOMPUTER BASICS

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Basic Concepts of Information Technology (IT)

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

The Central Processing Unit:

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

1 PERSONAL COMPUTERS

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

CPU Organisation and Operation

Microprocessor & Assembly Language

Chapter 2 Logic Gates and Introduction to Computer Architecture

(Refer Slide Time: 00:01:16 min)

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Notes on Assembly Language

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Computer Organization. and Instruction Execution. August 22

CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

PART B QUESTIONS AND ANSWERS UNIT I

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

LSN 2 Computer Processors

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Central Processing Unit

Chapter 1 Computer System Overview

Chapter 01: Introduction. Lesson 02 Evolution of Computers Part 2 First generation Computers

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

Computer organization

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

CPU Organization and Assembly Language

PROBLEMS. which was discussed in Section

MACHINE ARCHITECTURE & LANGUAGE

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

Computer Literacy. Hardware & Software Classification

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Discovering Computers Living in a Digital World

OVERVIEW OF MICROPROCESSORS

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

Learning Outcomes. Simple CPU Operation and Buses. Composition of a CPU. A simple CPU design

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Computer Systems Structure Main Memory Organization

Block diagram of typical laptop/desktop

Week One Lecture Note 1.0 INTRODUCTION TO COMPUTER 1.1 WHAT IS COMPUTER?

İSTANBUL AYDIN UNIVERSITY

Primary Memory. Input Units CPU (Central Processing Unit)

A Computer Glossary. For the New York Farm Viability Institute Computer Training Courses

Tech Application Chapter 3 STUDY GUIDE

TEST CHAPTERS 1 & 2 OPERATING SYSTEMS

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Chapter 8 Memory Units

Systems I: Computer Organization and Architecture

Central Processing Unit Simulation Version v2.5 (July 2005) Charles André University Nice-Sophia Antipolis

Module 1 Introduction to Information and Communication Technologies

Administrative Issues

Addressing The problem. When & Where do we encounter Data? The concept of addressing data' in computations. The implications for our machine design(s)

================================================================

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: COMPUTER ORGANIZATION AND ARCHITECTURE (Code: )

How It All Works. Other M68000 Updates. Basic Control Signals. Basic Control Signals

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

1 Classical Universal Computer 3

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories

Python Programming: An Introduction to Computer Science

RAM & ROM Based Digital Design. ECE 152A Winter 2012

lesson 1 An Overview of the Computer System

Operating System Fundamentals Robert Power & Robert Ford

A s we saw in Chapter 4, a CPU contains three main sections: the register section,

1 Computer hardware. Peripheral Bus device "B" Peripheral device. controller. Memory. Central Processing Unit (CPU)

New Mexico Broadband Program. Basic Computer Skills. Module 1 Types of Personal Computers Computer Hardware and Software

Programming Logic controllers

Python Programming: An Introduction to Computer Science

Operating system Dr. Shroouq J.

Building a computer. Electronic Numerical Integrator and Computer (ENIAC)

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:

Introduction to Computers, Anatomy of Computers, Input and Output Devices

Lecture 2: Computer Hardware and Ports.

TIMING DIAGRAM O 8085

Basic Computer Organization

An Overview of Stack Architecture and the PSC 1000 Microprocessor

What's in a computer?

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM

Memory Basics. SRAM/DRAM Basics

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

COMPUTER ORGANIZATION AND ARCHITECTURE. Slides Courtesy of Carl Hamacher, Computer Organization, Fifth edition,mcgrawhill

CSCI 4717 Computer Architecture. Function. Data Storage. Data Processing. Data movement to a peripheral. Data Movement

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Computer Basics: Chapters 1 & 2

Chap-02, Hardware and Software. Hardware Model

Microprocessor and Microcontroller Architecture

Transcription:

BLOCK DIAGRAM OF A COMPUTER SYSTEM Analysis of CPU In order to work, a computer needs some sort of "brain" or "calculator". At the core of every computer is a device roughly the size of a large postage stamp. This device is known as the central processing unit or CPU for short. It is a small chip inside the computer. It reads and executes program instructions, performs calculations, and makes decisions. The CPU is responsible for storing and retrieving information on disks and other media. A fast CPU leads to good performance. A poor CPU may hang the computer. What does the CPU do? CPU carries out instructions and tells the rest of the computer system what to do. This is done by the Control Unit of the CPU which sends command signals to the other components of the system. Performs arithmetic calculations and data manipulation, eg. Comparisons, sorting, combining, etc. The computer's calculator is a part of the CPU known as the Arithmetic Logic Unit. Holds data and instructions which are in current use. These are kept in the Main Store or Memory. Structure of CPU: CPU consists of several sections: Control Unit (CU): Arithmetic and Logic Unit (ALU): Memory Unit: A number of Registers: Program Counter (PC) Instruction Decoder Instruction Register (IR) Process Status Register Accumulator (ACC) some General Purpose Registers

Control Unit: The control unit directs the entire computer system to carry out stored program instructions. The control unit must communicate with both the arithmetic logic unit and main memory. The control unit uses the instruction contained in the Instruction Register to decide which circuits need to be activated. The control unit co-ordinates the activities of the other two units as well as all peripheral and auxiliary storage devices linked to the computer. The control unit instructs the arithmetic logic unit which arithmetic operations or logical operation is to be performed. Instruction Register (IR): A special register in the CPU that holds the next instruction to be performed within the CPU. The Control Unit accesses this register to decide which circuits need to be activated. Program Counter (PC): It keeps track of the next memory address of the instruction that is to be executed. In other words, it holds the address of the memory location of the next instruction when the current instruction is executed by the microprocessor. Each instruction is read from the memory into the instruction register. The process of reading an instruction is often referred to as the fetch-execute process. Arithmetic Logic Unit: The arithmetic logic unit executes arithmetic and logical operations. Arithmetic operations include addition, subtraction, multiplication and division. Logical operations compare numbers, letters and special characters. Comparison operations test for three conditions: equal-to condition in which two values are the same less-than condition in which one value is smaller than the other greater-than condition in which one value is larger than the other. Relational operations (=, <, >) are used to describe the comparison operations used by the arithmetic logic unit. The arithmetic logic unit performs logic functions such as AND, OR and NOT. Accumulator: The accumulator is used to accumulate results. It is the place where the answers from many operations are stored temporarily before being put out to the computer's memory. General Purpose Registers: The other general-purpose registers hold data on which operations are to be performed by the arithmetic logic unit. RAM: RAM stands for Random Access Memory. This is the main store and is the place where the programs and software we load gets stored. When the Central Processing Unit runs a program, it fetches the program instructions from the RAM and carries them out. If the Central Processing Unit needs to store the results of calculations it can store them in RAM. Random Access Memory can have instructions READ from it by the CPU and also it can have numbers or other computer data WRITTEN to it by the CPU. The more RAM in your computer, the larger the programs you can run. When we switch a computer off, whatever is stored in the RAM gets erased.

ROM: ROM stands for Read Only Memory. The CPU can only fetch or read instructions from Read Only Memory (or ROM). ROM comes with instructions permanently stored inside and these instructions cannot be over-written by the computer's CPU. ROM memory is used for storing special sets of instructions which the computer needs when it starts up. When we switch the computer off, the contents of the ROM does not become erased but remains stored permanently. Therefore it is non-volatile. The following is a diagram showing the relationship between the Central Processing Unit and the Main Memory (RAM and ROM). Memory Unit consists of: Memory Address Register: The memory address register (MAR) holds the address of the memory location where the next instruction is to be executed. While the first instruction is being executed, the address of the next memory location is held by it. Memory Data Register: The memory data register (MDR) is the register that contains the data to be stored in the computer storage (e.g. RAM), or the data after a fetch from the computer storage. It acts like a buffer and holds anything that is copied from the memory ready for the processor to use it. Address Decoder: It interprets the address in the MAR and selects the appropriate cell in the main memory to be accessed. Then, we'll have a look in the read/write of memory: How to read data from memory: The Control Unit sends a "read" signal to the memory. MAR gets the address of required data word. Address Decoder select appropriate memory cell. The required data word is sent to MDR, then send to outside via data bus. How to write data to memory: The Control Unit sends a "write" signal to the memory. MAR gets the address of target memory cell. MDR gets the data word being written. Address Decoder select appropriate memory cell. The data word in MDR is transferred to target memory location. How the CPU works: The CPU is centrally located on the motherboard. Since the CPU carries out a large share of the work in the computer, data pass continually through it. The data come from the RAM and the units (keyboard, drives, etc.). After processing, the data is sent back to the RAM and the units. The CPU continually receives instructions to be executed. Each instruction is a data processing order. The work itself consists mostly of calculations and data transport. The Instruction-Execution Cycle: The CPU performs four steps in executing an instruction:

The control unit gets the instruction from memory. The control unit decides what the instruction means and directs the necessary data to be moved from the memory to the arithmetic logic unit. The arithmetic logic unit performs the actual operation on the data. The result of the operation is stored in memory or a register. The first two instructions make up what is called the instruction time. The last two instructions make up what is called the execution time. The combination of these two is called a machine cycle. Each central processing unit has an internal clock (or system clock), which produces pulses at a fixed rate to synchronize all computer operations. A single machine cycle instruction is made up of a number of sub instructions, each of which must take at least one clock cycle. How the CPU finds Instructions and Data: The location in memory for each instruction and each piece of data is identified by an address, or a number that stands for a location in the computer memory. The following is an example of a simple case of adding two numbers together and placing the result in a location X. The command executed is - Let X = N1 + N2. See the diagram below. Execution of Instruction: Take X= n1+ n2;", such a simple addition, as an example: The CPU need to: Load the content of memory cell associate with n1 to the Accumulator. Add the content of memory cell associate with n2 to the Accumulator. Store the content of accumulator to memory cell associate with x. You may once again think that the 3 operations above is simple. Actually, to load the content of n1 to Accumulator, the CPU already needs to: Transfer the content of PC to MAR

Decode the address held by MAR Transfer the instruction to MDR Instruction are carried to IR by MDR Increment of PC Decode the Instruction in IR by Instruction Decoder Operand part of Instruction is transferred to MAR Decode the Address held by MAR Transfer the content to MDR MDR carries the content to Accumulator Communication Pathways (BUS): The Control Unit, ALU and the primary Storage unit must have a way to communicate. These links among and within the various units are called busses. A bus, in computing, is a set of physical connections (cables, circuits, etc.) which can be shared by multiple hardware components in order to communicate with one another. A bus is classified by name according to its function. 1. Control Bus: It is the pathway for all timing and controlling functions sent by the control unit to the other units of the system. 2. Address Bus: It is the pathway that is used to locate the storage position in memory where the next instruction to be executed or the next piece of data will be found. 3. Data Bus: It is the pathway where the actual data transfer takes place. Ankit Gupta ankitg1689@gmail.com