Lecture 4 Number Systems. von Neumann Model Every computer today is based on the von Neumann Model. It is based on 3 ideas: 1.Four subsystems 2.Stored.

Slides:



Advertisements
Similar presentations
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Advertisements

CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
CS 104 Introduction to Computer Science and Graphics Problems Basic Organization & Concepts 09/09/2008 Yang Song (Prepared by Yang Song and Suresh Solaimuthu)
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Binary Numbers.
CPS-304 DIGITAL LOGIC & DESIGN Instructor : Ms. Saba Iqbal.
© Copyright 2012 by Pearson Education, Inc. All Rights Reserved. 1 Number Systems 0, 1 0, 1, 2, 3, 4, 5, 6, 7 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 0, 1, 2, 3,
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
Studies in Big Data 4 Weng-Long Chang Athanasios V. Vasilakos MolecularComputing Towards a Novel Computing Architecture for Complex Problem Solving.
Copyright © 2003 by Prentice Hall Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
©Brooks/Cole, 2003 Foundations of Computer Science from Data Manipulation to Theory of Computation Behrouz A. Forouzan, Brooks/Cole — Thomson Learning,
Computer Systems Organization CS 1428 Foundations of Computer Science.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Introduction Lecture 01.
NUMBER SYSTEM.
CMSC104 Lecture 2 Remember to report to the lab on Wednesday.
Lecture 2 Bits, Bytes & Number systems
Chapter 7—Objects and Memory The Art and Science of An Introduction to Computer Science ERIC S. ROBERTS Java Objects and Memory C H A P T E R 7 Yea, from.
Integer Representation for People Computer Organization and Assembly Language: Module 3.
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Chapter 1 Introduction. Understand the concept of a black box, a data processor, and a programmable data processor. Define the von Neumann model and name.
CPIT 201 Introduction to Computing
Chapter 1 Introduction.
Department of Mathematics Computer and Information Science1 CS112: Survey of Computer Science Chapter One Review: Introduction, Chapter Two: Number Systems.
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Number Systems 0, 1 0, 1, 2,
Chapter 2 Data Representation.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Computer Number System
CS 101 INTRODUCTION TO COMPUTING * image from The Central Eglinton Community Centre website.
©Brooks/Cole, 2003 Chapter 1 Introduction. ©Brooks/Cole, 2003 Figure 1-1 Data processor model This model represents a specific-purpose computer not a.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Number Systems and Binary Arithmetic Quantitative Analysis II Professor Bob Orr.
CHAPTER 1 INTRODUCTION.  Data Processor: ◦ The basic definition of a computer is as a data processor. ◦ A black box that: 1.Accepts input data, 2.Processes.
Lecture 4 Number Systems Lecturer: Sumaira Hussain.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
Programmable Logic Controller
Appendix F Number Systems binary 0, 1 0, 1, 2, 3, 4, 5, 6, 7
Computer Architecture and Number Systems
Digital Design Chapter One Digital Systems and Binary Numbers
Chapter 1 Introduction.
Digital Logic and Computer Organization
Octal to Decimal Decimal Octal Binary Hexadecimal.
Number System.
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
Lecture 3: Binary values and number systems
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
Chapter 2 – Computer hardware
Chapter 1 Introduction.
Number System conversions
Number Systems and Binary Arithmetic
Introduction to IT By: Muhammed s. anwar.
Chapter 4 Number Systems.
Ch2: Data Representation
Machine Architecture and Number Systems
Chapter 1 Number System RGGP, Narwana.
Machine Architecture and Number Systems
Data Representation and Organization
Machine Architecture and Number Systems
Machine Architecture and Number Systems
Chapter Four Data Representation in Computers By Bezawit E.
Introduction to Computer Architecture
Notes from Last Class Office Hours: GL Accounts?
Machine Architecture and Number Systems
Presentation transcript:

Lecture 4 Number Systems

von Neumann Model Every computer today is based on the von Neumann Model. It is based on 3 ideas: 1.Four subsystems 2.Stored Program Concept 3.Sequential Execution of Instructions

Four subsystems:Four subsystems: 1. Memory 1. Memory – the storage area of programs and data. 2.ALU 2.ALU – arithmetic/logic operations take place 3.Control Unit 3.Control Unit – control Memory, ALU, and I/O 4.I/O 4.I/O – accept input data/send output data

Input/Output Subsystem secondary storage The definition is very broad; it includes the secondary storage devices. Disk Disk – stores data and programs for processing

Stored Program Concept The von Neumann model states that the program must be stored in memory. The memory of modern computers hosts both – a program – its corresponding data

Sequential Execution of Instructions A program is made of a finite number of instructions. The control unit – fetches one instruction from memory – interpret it – execute it The instructions are executed one after another.

Storing Data Store data in the form of an electrical signal, specially its presence or absence. This implies that a computer can store data in one of two states. Binary number system

Data organization Although data should be stored only in one form (a binary pattern) inside a computer, data outside a computer can take many forms. Data come in different forms: – Numbers – Text – Images – Audio – Video

Requirements of von Neumann model 1.The programs must be stored in memory. 2.The programs must be a sequence of instructions.

Number System "A set of values used to represent different quantities is known as Number System". The digital computer represents all kinds of data and information in binary numbers. It includes audio, graphics, video, text and numbers. The total number of digits used in a number system is called its base or radix. The base is written after the number as subscript such as

Types of Number System Decimal number system Binary number system Octal number system Hexadecimal number system

Decimal Number System The Decimal Number System consists of ten digits from 0 to 9. These digits can be used to represent any numeric value. The base of decimal number system is 10. The decimal number system is used in general.

Binary Number System Digital computer represents all kinds of data and information in the binary system. Binary Number System consists of two digits 0 and 1. Its base is 2. Each digit or bit in binary number system can be 0 or 1

Octal Number System Octal Number System consists of eight digits from 0 to 7. The base of octal system is 8. Octal number system is used as a shorthand representation of long binary numbers.

Hexadecimal Number System The Hexadecimal Number System consists of 16 digits from 0 to 9 and A to F. The alphabets A to F represent decimal numbers from 10 to 15. The base of this number system is 16. This number system provides shortcut method to represent long binary numbers.

CONVERTING NUMBERS FROM ONE BASE INTO ANOTHER Binary to Decimal Multiplication by the power of 2 Decimal to Binary Repeated division by 2

Decimal to Octal Division by 8 and storing remainder Octal to Decimal Multiplication by the power of 8 Binary to Octal first group into set of three digits from right side and then convert into decimal Octal to Binary look up each octal digit to obtain the equivalent group of three binary digits Octal =345 Binary = = binary CONVERTING NUMBERS FROM ONE BASE INTO ANOTHER

Decimal to Hexadecimal Division by 16 and storing remainder Hexadecimal to Decimal Multiplication by the power of 16 Binary to Hexadecimal first group into set of four digits from right side. into and then convert into decimal Hexadecimal to Binary look up each hexadecimal digit to obtain the equivalent group of four binary digits Hexadecimal =A2DE Binary = CONVERTING NUMBERS FROM ONE BASE INTO ANOTHER