machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

Similar documents
Chapter 4 The Components of the System Unit

Chapter 7: Processor and Memory

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

7/28/ Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc.

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Computers Are Your Future

Chapter 4 The Components of the System Unit

Computers Are Your Future

Q1. Describe C.P.U and its subunits with the help of diagram?

MICROPROCESSOR MCQs. 1) What does the microprocessor comprise of? a. Register section b. One or more ALU c. Control unit d.

Technology in Action

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

System Unit Components Chapter2

Components of a personal computer

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

Chapter 9: A Closer Look at System Hardware

Chapter 9: A Closer Look at System Hardware 4

Chapter One. Introduction to Computer System

The Components of the System Unit

Module 5a: Introduction To Memory System (MAIN MEMORY)

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Chapter 2. Prepared By: Humeyra Saracoglu

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Computer Organization and Assembly Language (CS-506)

5 Computer Organization

Unit - II. Computer Concepts and C Programming 06CCP13. Unit II

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

INTRODUCTION TO COMPUTERS

3 Computer Architecture and Assembly Language

Basic Computer Architecture

Computer Organization

System Unit. By: Khadeeja Farkash

5 Computer Organization

Homeschool Enrichment. The System Unit: Processing & Memory

Chapter Two. Hardware Basics: Inside the Box

SYSTEM BUS AND MOCROPROCESSORS HISTORY

MSc-IT 1st Semester Fall 2016, Course Instructor M. Imran khalil 1

Chapter I The System Unit

Main Memory (RAM) Organisation

k -bit address bus n-bit data bus Control lines ( R W, MFC, etc.)

THE MICROCOMPUTER SYSTEM CHAPTER - 2

About the Presentations

Sir Sadiq s computer notes for class IX. Chapter no 4. Storage Devices

The Central Processing Unit

Memory Study Material

Inside the Computer System

Unit 2: Technology Systems. Computer and technology systems

Mother Board And Its Components By :- IMRAN QURESHI

Microcomputer Architecture and Programming

So computers can't think in the same way that people do. But what they do, they do excellently well and very, very fast.

Segment 1A. Introduction to Microcomputer and Microprocessor

,e-pg PATHSHALA- Computer Science Computer Architecture Module 25 Memory Hierarchy Design - Basics

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T

Full file at

Introduction read-only memory random access memory

CS 320 February 2, 2018 Ch 5 Memory

Large and Fast: Exploiting Memory Hierarchy

UNIT-V MEMORY ORGANIZATION

MICROPROCESSOR MEMORY ORGANIZATION

PDF created with pdffactory Pro trial version How Computer Memory Works by Jeff Tyson. Introduction to How Computer Memory Works

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Explain the functions of the main components of a basic computer system (Part 2) S. Neebar

Discovering Computers 2012

Computer Organization

System Unit Components. Chapter2

MEMORY BHARAT SCHOOL OF BANKING- VELLORE

Computers and Microprocessors. Lecture 34 PHYS3360/AEP3630

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

CS 101, Mock Computer Architecture

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

Another fundamental component of the computer is the main memory.

Concept of Memory. The memory of computer is broadly categories into two categories:

Elementary Computing CSC M. Cheng, Computer Science 1

CC411: Introduction To Microprocessors

An Overview of the Computer System. Kafui A. Prebbie 24

COA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.

The CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:

COMPUTER BASICS Processing/Storage

Computers in Business: Concepts in Hardware and Software

Memory classification:- Topics covered:- types,organization and working

VISUAL SUMMARY. The System Unit

Introduction to the Personal Computer

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

Introduction To Computer Hardware. Hafijur Rahman

Technology in Action. Chapter Topics. Participation Question. Participation Question. Participation Question 8/8/11

(Computer Hardware, System Unit & its parts.) Lecture # By: M.Nadeem Akhtar. Lecturer. Department of CS & IT.

Contents. Main Memory Memory access time Memory cycle time. Types of Memory Unit RAM ROM

Computer Organization

Computer Architecture

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422)

Lecture-7 Characteristics of Memory: In the broad sense, a microcomputer memory system can be logically divided into three groups: 1) Processor

Internal Memory. Computer Architecture. Outline. Memory Hierarchy. Semiconductor Memory Types. Copyright 2000 N. AYDIN. All rights reserved.

Electricity: Voltage. Gate: A signal enters the gate at a certain voltage. The gate performs operations on it, and sends it out was a new signal.

Parts of Computer hardware Software

What is the typical configuration of a computer sold today? 1-1

Identify Components of the. Motherboard

Operating system Dr. Shroouq J.

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Transcription:

Central Processing Unit (CPU) A processor is also called the CPU, and it works hand in hand with other circuits known as main memory to carry out processing. The CPU is the "brain" of the computer; it follows the instructions of the software (program) to manipulate data into information. The CPU consists of three parts:- (1) The control unit (CU) (2) the arithmetic/logic unit (ALU), which both contains (3) registers, or high-speed storage areas. All are linked by a kind of electronic "roadway" called a bus. The control unit - for directing electronic signals: The control unit deciphers each instruction stored in it and then carries out the instruction. It directs the movement of electronic signals between main memory and the arithmetic/logic unit. It also directs these electronic signals between main memory and the input and output devices. For every instruction, the control unit carries out four basic operations, known as the machine cycle. In the machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result. 19

The arithmetic/logic unit -for arithmetic and logical operations: The arithmetic/logic unit (ALU) performs arithmetic operations and logical operations and controls the speed of those operations. As you might guess, arithmetic operations are the fundamental math operations: addition, subtraction, multiplication, and division. Logical operations are comparisons. That is, the ALU compares two pieces of data to see whether one is equal to (=), greater than (>), or less than (<) the other. (The comparisons can also be combined, as in "greater than or equal to" and "less than or equal to.") Registers -special high-speed storage areas: The control unit and the ALU also use registers, special areas that enhance the computer's performance. Registers are high-speed storage areas that temporarily store data during processing. They may store a program instruction while it is being decoded, store data while it is being processed by the ALU, or store the results of a calculation. The most important registers are: - 1. Program Counter (PC): It contains the address of the next instruction to be executed. 2. Instruction Register (IR): It contains the instruction being executed. 3. Address Register (AR) or memory Address Register (MAR): holds the address of memory location. 4. Accumulator (A): it is register that holds the data to be used in arithmetic and logic operation and also holds the results of processing operations. 5. (B, C, D, E, F, H, and L) register: these registers contain the data to execute the operation. 20

Buses -data roadways: Buses or bus lines are electrical data roadways through which bits are transmitted within the CPU and between the CPU and other components of the motherboard. A bus resembles a multilane highway: The more lanes it has, the faster the bits can be transferred. The oldfashioned 8-bit-word bus of early microprocessors had only eight pathways. Data is transmitted four times faster in a computer with a 32-bit bus, which has 32 pathways, than in a computer with an 8-bit bus. There are several principal expansion bus standards, or "architectures," for microcomputers. The various components of the CPU are connected together with lines called Internal lines (Internal Buses). The lines connected the CPU to the reminder of the computer components are called External lines (External Buses). A computer main memory is interfaced to the CPU through three groups of lines or buses: Data bus, Address bus, Control bus. Memory The memory unit is an essential component in any digital computer since it is needed for storing programs and data. A memory unit is a collection of storage cells together with associated circuits needed to transfer information in and out of storage. The memory stores binary information in groups of bits called words. A word in a memory is an entity of bits that move in and out of storage as a unit. A memory word is a group of 1 s and 0 s and may represent a number, an instruction code, one or more alphanumeric characters, or any other binary-coded information. Most computer memories use words whose number of bits is a multiple of 8. Thus a 16-bit word contains two bytes, and 32bit word is made up of four bytes. The capacity of memories in commercial computers is usually stated as the total number of bytes that can be stored. The number of words in the memory and the number of bits in each word specify the internal structure of a memory unit. 21

Special input lines called address lines select one particular word. Each word in a memory is assigned an identification number, called an address, starting from 0 and continuing with 1, 2, 3, up to 2 k - 1 where k is the number of address lines. The selection of a specific word inside the memory is done by applying the k-bit binary address to the address lines. A decoder inside the memory accepts this address and opens the paths needed to select the bits of the specified word. Computer memories may range from 1024 words, requiring an address of 10 bits, to 4G words, requiring 32 address bits. The memory components of a computer system can be divided into four main groups:- 1. Internal processor memory: This comprises a small set of highspeed registers used as a working memory for temporary storage of instructions and data. 2. Main memory (also called primary memory): This is a relatively large fast memory used for program and data storage during computer operation. It is characterized by the fact that locations in main memory can be accessed directly and rapidly by the CPU instruction set. The principle technology used for main memory is based on semiconductor integrated circuits (ICs). 3. Secondary memory (also called auxiliary memory): This is generally much larger in capacity but also much slower than main memory. It is used for storing system programs, large data files, and the like which are not continually required by the CPU; it is also serves as an overflow memory when the capacity of the main memory is exceeded. Information in secondary storage is accessed indirectly via inputoutput programs that first transfer the required information to main memory. Representative technologies used for secondary memory are magnetic disks and tapes. 22

4. Cache Memory, which serves as an intermediate temporary storage unit logically positioned between the processor registers and main memory. Unlike the other memory levels mentioned above, caches are transparent to the programmer. The total memory capacity of a computer can be visualized as being a hierarchy of components. The memory hierarchy system consists of all storage devices employed in a computer system from the slow but highcapacity auxiliary (secondary) memory to a relative faster main memory, to an even smaller and faster cache memory accessible to the high-speed processing logic. The reason of having two or three levels of memory hierarchy is economics. As the storage capacity of the memory increases, the cost per bit for storing binary information decreases and the access time of the memory becomes longer. Figure below illustrates the components in a typical memory hierarchy. Memory hierarchy in a computer system In addition, most current computer operating systems allow for the use of virtual memory -that is, some free hard-disk space is used to extend the 23

capacity of RAM. First L1, then L2, then RAM, then hard disk (or CD- ROM)-that is the order in which the processor goes about searching for data or program instructions. In this progression, each kind of memory or storage is slower than its predecessor. Primary storage Is temporary or working storage and is often called memory or main memory. The four principal types of memory chips are RAM, ROM, CMOS, and flash. 1. RAM chips -to temporarily store program instructions and data: RAM chips-ram stands for random access memory-are for primary storage; they temporarily hold (1) software instructions and (2) data before and after it is processed by the CPU. Because its contents are temporary, RAM is said to be volatile-the contents are lost when the power is turned off. This is why you should frequently-every 5-10 minutes, say transfer (save) your work to a secondary-storage medium such as your hard disk, in case the electricity goes off while you're working. Two types of RAM chips used in personal computers: DRAM (dynamic RAM) must be constantly refreshed by the CPU or it will lose its contents. i. SDRAM (synchronous DRAM) is the most popular type of DRAM. SDRAM has a synchronous interface, meaning that it waits for a clock signal before responding to its control inputs. It is synchronized with the computer's system bus, and thus with the processor. 24

168-pin SDRAM ii. DDR-SDRAM (Double Data Rate SDRAM) (sometimes called "DDR1" for greater clarity) doubles the minimum read or write unit; every access refers to at least two consecutive words. Typical DDR-SDRAM clock speeds are 133, 166 and 200 MHz (7.5, 6, and 5 ns/cycle), generally described as DDR-266, DDR-333 and DDR- 400 (3.75, 3, and 2.5 ns per beat). Corresponding 184-pin DIMMS are known as PC2100, PC2700 and PC3200. Speeds up to DDR-550 (PC4400) are available. 184-pin DDR iii. DDR2-SDRAM is very similar to DDR-SDRAM, but doubles the minimum read or write unit again, to 4 consecutive words. This allows the bus speed of the SDRAM to be doubled without increasing the speed of internal RAM operations; instead, internal operations are performed in units 4 times as wide as SDRAM. Typical DDR2-SDRAM clock speeds are 200, 266, 333 or 400 MHz (5, 3.75, 3 and 2.5 ns/cycle), generally described as 25

DDR2-400, DDR2-533, DDR2-667 and DDR2-800 (2.5, 1.875, 1.5 and 1.25 ns per beat). Corresponding 240-pin DIMMS are known as PC2-3200 through PC2-6400. Speeds up to DDR2-1250 (PC2-10000) are available. 240-pin DDR2 iv. DDR3-SDRAM continues the trend, doubling the minimum read or write unit to 8 consecutive words. This allows another doubling of bandwidth and external bus speed without having to change the speed of internal operations, just the width. SRAM (static RAM) is faster than any DRAM and will retain its contents without having to be refreshed by the CPU. If you're short on memory capacity, you can usually add more RAM chips by plugging them into the motherboard. Chips can be bought single or in so-called memory modules, circuit boards that can be plugged into expansion slots on the motherboard. There are two types of such modules: SIMMs and DIMMS, both of which use DRAM chips. A SIMM (single inline memory module) has RAM chips on only one side. A DIMM (dual inline memory module) has RAM chips on both sides. 26

2. ROM chips - to store fixed start-up instructions: Unlike RAM, to which data is constantly being added and removed, ROM (read-only memory) cannot be written on or erased by the computer user without special equipment. ROM chips contain fixed start-up instructions. That is, ROM chips are loaded, at the factory, with programs containing special instructions for basic computer operations, such as those that start the computer. These chips are nonvolatile; their contents are not lost when power to the computer is turned off. 3. CMOS chips - to store flexible start-up instruction: Pronounced "seemoss," CMOS (complementary metal-oxide semiconductor) chips are powered by a battery and thus don't lose their contents when the power is turned off. CMOS chips contain flexible start-up instructions, such as time, date, and calendar, which must be kept current even when the computer is turned off. Unlike ROM chips, CMOS chips can be reprogrammed, as when you need to change the time for daylight savings time. 4. Flash memory chips-to store flexible programs: Also a nonvolatile form of memory, flash memory chips can be erased and reprogrammed more than once (unlike PROM chips, which can be programmed only once). Flash memory, which can range up to 32 gigabytes in capacity, is used to store programs not only in personal computers but also in cell phones, printers, and digital cameras. 27

How Cache Works: Pronounced "kash," cache is a special very high-speed memory sometimes used to increase the speed of processing by making current programs and data available to the CPU at a rapid rate. The cache memory is employed in computer systems to compensate for the speed differential between main memory access time and processor logic. CPU logic is usually faster than main memory access time, with the result that processing speed is limited primarily by the speed of main memory. A technique used to compensate for the mismatch in operating speeds is to employ an extremely fast, small cache between the CPU and main memory whose access time is close to processor logic clock cycle time. The cache is used for storing segments of programs currently being executed in the CPU and temporary data frequently needed in the present calculations. By making programs and data available at a rapid rate, it is possible to increase the performance rate of the computer. While the I/O processor manages data transfers between auxiliary memory and main memory, the cache organization is concerned with the transfer of information between main memory and CPU. Thus each is involved with a different level in the memory hierarchy system. There are two kinds of cache-level 1 and Level 2: (1) Level 1 (L1) cache-part of the microprocessor chip: Level 1 (L1) cache, also called internal cache, is built into the processor chip. Ranging from 8 to 512 kilobytes, its capacity is less than that of Level 2 cache, although it operates faster. (2) Level 2 (L2) cache-not part of the microprocessor chip: This is the kind of cache usually referred to in computer ads. Level 2 (L2) cache, also called 28

external cache, resides outside the processor chip and consists of SRAM chips. Capacities range from 64 kilobytes to 2 megabytes. (Intel ads call L2 Advanced Transfer Cache.) 29