CMP 101 Fundamentals of Computer and programming in C Rohit Khokher.

Slides:



Advertisements
Similar presentations
Chapter 4 The Central Processing Unit
Advertisements

Components of a computer system
Computer Structure.
C SINGH, JUNE 7-8, 2010IWW 2010, ISATANBUL, TURKEY Advanced Computers Architecture, UNIT 2 Advanced Computers Architecture UNIT 2 CACHE MEOMORY Lecture7.
Chapter 5 Internal Memory
Computer Organization and Architecture
LOGO.  Concept:  Is read-only memory.  Do not lose data when power is lost.  ROM memory is used to produce chips with integrated.
The Central Processing Unit: What Goes on Inside the Computer.
Memory Chapter 3. Slide 2 of 14Chapter 1 Objectives  Explain the types of memory  Explain the types of RAM  Explain the working of the RAM  List the.
Technology Component: Computer Hardware – Part 2 Basic Components Dr. V.T. Raja Oregon State University.
Technology Component: Computer Hardware – Part 2 Basic Components Dr. V.T. Raja Oregon State University.
Computer Organization Prepared by:Anh Q. Vu Course:CS-147 Professor:Sin-Min Lee Date:Summer
IT Systems Memory EN230-1 Justin Champion C208 –
COMPUTER MEMORY Modern computers use semiconductor memory It is made up of thousands of circuits (paths) for electrical currents on a single silicon chip.
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.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
F1020/F1031 COMPUTER HARDWARE MEMORY. Read-only Memory (ROM) Basic instructions for booting the computer and loading the operating system are stored in.
Memory. Random Access Memory Defined What is memory? operating system and other system software that control the usage of the computer equipment application.
Computer Architecture Part III-A: Memory. A Quote on Memory “With 1 MB RAM, we had a memory capacity which will NEVER be fully utilized” - Bill Gates.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Von Neumann Architecture & Terminology & Performance Week 3.
Chapter 3 Computer Hard ware
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Computers: Information Technology in Perspective By Long and Long Copyright 2002 Prentice Hall, Inc. Computers: Information Technology in Perspective.
Writer:-Rashedul Hasan Editor:- Jasim Uddin
Lecture#14. Last Lecture Summary Memory Address, size What memory stores OS, Application programs, Data, Instructions Types of Memory Non Volatile and.
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Principles of Information Systems, Sixth Edition Hardware: Input, Processing, and Output Devices Chapter 3.
Random access memory.
1 Inside the Computer Chapter 6 Copyright Prentice-Hall, Inc
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
The Central Processing Unit: What Goes on Inside the Computer
Chapter 5 Internal Memory. Semiconductor Memory Types.
Computer Architecture CST 250 MEMORY ARCHITECTURE Prepared by:Omar Hirzallah.
Memory Cell Operation.
Primary Storage Primary storage is the storage that is directly available to the CPU. It is also known as: Main Memory Main Memory Direct Access Storage.
Computer Architecture Lecture 24 Fasih ur Rehman.
Overview von Neumann Architecture Computer component Computer function
The Computer System.
Computer operation is of how the different parts of a computer system work together to perform a task.
Computer Hardware – Part 2 Basic Components V.T. Raja, Ph.D., Information Management Oregon State University.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
1 Memory Hierarchy (I). 2 Outline Random-Access Memory (RAM) Nonvolatile Memory Disk Storage Suggested Reading: 6.1.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Lecture # 10 Processors Microcomputer Processors.
Components of Computer. Memory Unit Most important part of the computer Used to store data and instructions that are currently in use Main memory consists.
Processor/Memory Chapter 3
Internal Memory.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Discovering Computers 2011: Living in a Digital World Chapter 4
introduction to computer
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Primary Storage and Secondary Storage Devices Chapter 3
William Stallings Computer Organization and Architecture 8th Edition
שמות מאפיינים ומטרות של זיכרונות ROM - ו RAM
William Stallings Computer Organization and Architecture 7th Edition
Introduction to Computing
William Stallings Computer Organization and Architecture 8th Edition
BIC 10503: COMPUTER ARCHITECTURE
MICROPROCESSOR MEMORY ORGANIZATION
Chapter 4: MEMORY.
William Stallings Computer Organization and Architecture 8th Edition
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

CMP 101 Fundamentals of Computer and programming in C Rohit Khokher

Central Processing Unit Main Memory (RAM) FlashProgrammable Read only Memory (PROM) Read only Memory (ROM) Cache Memory Decoder Program Control Register Instruction Register Memory Address Register Memory Buffer Register Input/output Register General Purpose Register Accumulator Register General Purpose Register I/O D E V I C E s ALU Control Unit

Instruction Set Instruction Operation (op) CodeOperand ADDOperand oneOperand two AR0 Instruction Accumulator register General Purpose Register Before execution After execution

Registers RegisterUsage Memory Address Register (MAR) It holds the memory location address. Memory Buffer Register (MBR) I holds the content to be stored (written) or read from the memory. Program Control Register (PC) It holds the address of the next instruction to be executed. Accumulator Register (A)It holds data to be operated upon, intermediate results and processing results. Instruction Register (I)It hold the current instruction which is being executed. Input/output Registers(I/O) It is used to communicate with the input/output devices.

PC A, R0 0 I+ A, R Control Unit Decoder Decoder Interprets the instruction Decoded instructions Control unit takes the decoded instruction s and sends signals to ALU or other units for execution IMPORTANT: Immediately after the control unit takes the address from PC the PC is set to the address of the next instruction automatically IMPORTANT: Immediately after the control unit takes the address from PC the PC is set to the address of the next instruction automatically Main memory code segment Contents Instruction

Processor Speed System clock: It emit millions of pulses per second. The pulses are emitted at regular intervals (clock cycles). The ALU & control unit operations are synchronized by system clock. Instructions are interpreted into actions and each action is executed at properly defined intervals

Go to address D Read content of D Write it into register A Go to address E Read content of E Write it into register B A B ADD contents of registers A and B Write the result into register C C The instruction (+ D, E) may be interpreted as goto, read, write add, write

Instruction Cycle One instruction cycle is the time required to perform on instruction. Several instruction cycles are required to fetch, decode and execute an instruction. The shorter the clock cycle the faster the processor

Instruction Cycle The clock speed is measured in GHz. Gigahertz, refers to frequencies in the billions of cycles per second range (1,000,000,000 Hz). Intel® Core i7 Processor The best desktop processor family on the planet¹ 3.06 GHz

Processor Types CISC : Complex Instruction Set Computer. A set of large number of variable length instructions. RISC: Reduce instruction set computers. EPIC: Explicitly parallel Instruction Computing Parallel Computation

Main Memory Storage Evaluation Criteria Explanation Storage capacityMaximum number of bytes/words. Access timeTime required to locate and retrieved stored data. Cost per bit of storageCost of a memory unit of a desired capacity. Volatile/NonvolatileVolatile memory looses data when power source is turned off or interrupted. Nonvolatile memory retains data when power is turned off or interrupted. Random accessIn random access memory (RAM) every data item can be accessed independently at any instance of time. Main memory, primary memory or simply memory is used by CPU to store/retrieve data and instructions temporarily.

Why more bits? Larger numbers and address space Main memory Interfacing device requests to read or write contents Controller AddressesContents …n Address buss: Sends the memory address of the data. Address space: Number of memory byte or words Address space = 2 n where n is the number of bits in address bus. Data buss Bits

Fixed and variable length memory Word addressable memory: Where each word is of fixed size 16-bits, 32-bits or 64-bit words. They can store 2, 4 or 8 characters (or bits). Such memory is viewed as fixed length memory. Character (or byte) addressable memory is viewed as variable length memory.

RAM, ROM, PROM & EPROM Random Access Memory (RAM) Volatile Read Only Memory (ROM) Nonvolatile, storing data in ROM is called burning in, used for microprogramming and system boot program, user cannot program it. Programmable Read Only Memory (PROM) Nonvolatile but unlike ROM user can write a program only once. Erasable Programmable Read Only Memory (EPROM) Nonvolatile, It is like ROM or PROM but user can erase and write programs repeatedly. There are two types of EPROM: Ultra violet EPROM (Erased using ultraviolet light)and EEPROM (Erased using high voltage. EPROM is also called flash memory.

Cache Memory Cache memory is the fast memory like registers. It is used to minimize the memory-processor speed mismatch. It is a buffer between the main memory and the processor.

Read about the following Computer Memory Types L1 cache L2 cache RAM - the Main Memory DRAM Fast Page Mode DRAM EDO DRAM SDRAM PC133 SDRAM DDR SDRAM DDR2 SDRAM Dual-channel DDR 1T-SRAM Direct RDRAM SIMMs DIMMs RIMMs Presence detect Parity memory ECC memory Memory upgrades Evolution Flash memory Magnetic RAM

The basic rule--which states that the number of transistors on a chip doubles every 24 months--has been the guiding principle of the high-tech industry since it was coined by Intel co-founder Gordon Moore in 1965.