Lecture 1: 8/27/2002CS170 Fall 20021 CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.

Slides:



Advertisements
Similar presentations
DATA REPRESENTATION CONVERSION.
Advertisements

Lecturer: Omid Jafarinezhad Sharif University of Technology Department of Computer Engineering 1 Fundamental of Programming (C) Lecture 2 Number Systems.
CS 151 Digital Systems Design Lecture 2 Number Systems Prof. Ahmed Sameh Room 239A.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
ENGIN112 L2: Number Systems September 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 2 Number Systems Russell Tessier KEB 309 G.
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Binary and Hexadecimal Numbers
Number Systems.
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
CS105 INTRODUCTION TO COMPUTER CONCEPTS BINARY VALUES & NUMBER SYSTEMS Instructor: Cuong (Charlie) Pham.
How Computers Work Dr. John P. Abraham Professor UTPA.
Numbering Systems. CSCE 1062 Outline What is a Numbering System Review of decimal numbering system Binary representation range Hexadecimal numbering system.
DECIMAL BASE Based on power of 10 In the number 2,468 – from right to left -- the 8 represents the ones, the 6 represents the tens, the 4 represents the.
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Number Systems What is the Standard Base we
Data Representation – Chapter 3 Section 3-1. Terminology “Digital” –Discrete, well defined values/steps –Opposite of analog –Analogy: digital is to analog.
1-1 Lecture 1 Class Overview and Appendix A -- Number Systems.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
Lecture 2 Bits, Bytes & Number systems
6 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Digital Logic Lecture 2 Number Systems
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Positional Notation 642 in base 10 positional notation is:
ECE456: Number Systems (review)
Number Base Conversions
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.
Data Representation – Chapter 3 Section 3-1. Terminology “Digital” –Discrete, well defined values/steps –Opposite of analog –Analogy: digital is to analog.
Chapter 2 Number Systems: Decimal, Binary, and Hex.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
Computer Number System
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Lecture 2: 8/29/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
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.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Programmable Logic Controller
Some basic concepts underlying computer archi­tecture
Lecturer: Santokh Singh
Chapter 02 Nell Dale & John Lewis.
1. Number Systems.
Lecture 3: Binary values and number systems
Convert Decimal to Binary
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
Chapter 3 Data Representation
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Number System conversions
University of Gujrat Department of Computer Science
Number Systems and Binary Arithmetic
Introduction to IT By: Muhammed s. anwar.
There are 10 types of people of people in this world…
Number Systems Lecture 2.
Number Systems.
Chapter Four Data Representation in Computers By Bezawit E.
Number Systems created by: S.Shahrukh haider
Numeral systems (radix)
Hexadecimal.
Remember the 10 types of people of people in this world…
Networks & I/O Devices.
Dr. Clincy Professor of CS
Presentation transcript:

Lecture 1: 8/27/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture 1: 8/27/2002

CS170 Fall Outline What is a computer? An overview of number systems Decimal Binary Octal Hexadecimal

Lecture 1: 8/27/2002CS170 Fall Processor Memory A Computer Input Output Five classic components of a computer: Input, Output, Memory, Data path, Control TapesKeyboardMousescanner DisplayPaper Processor

Lecture 1: 8/27/2002CS170 Fall Computers are built on two key principles All computers use the binary number system (base 2) (basic nature of electronic circuits ON/OFF, current flow/does not flow) Machine alphabet has two letters “0”, “1” Each letter is a binary digit “bit”. Byte is 8 bits Both instructions and data are represented by numbers Instructions and data are stored in memory and are read and written as numbers

Lecture 1: 8/27/2002CS170 Fall Number Systems Numbers can be represented in any base (humans use base 10) Symbols for a number system of base B are 0, 1, 2, …, B –1 decimal (base 10) 0, 1, 2,.., 9binary (base 2) 0, 1 notation “number B ” (375 in decimal is written , 1011 in binary is written ) Value of i th digit d is “d * B i” where i starts from 0 and increases from right to left 2 1 0ipositional notation 3 7 5d 5 * 10 0 =5 7 * 10 1 =70 3 * 10 2 =300 Three hundred and seventy five

Lecture 1: 8/27/2002CS170 Fall Conversion from binary to decimal Convert to decimal = (1 * 2 0 ) + (1 * 2 1 ) + (0 * 2 2 ) + (1 *2 3 ) = = i d This process can be used for conversion from any number system to decimal (TRY convert to decimal)

Lecture 1: 8/27/2002CS170 Fall Conversion from decimal to binary Convert to binary Step 1: divide value by 2 and record remainder Step 2: as long as quotient not zero, continue to divide the newest quotient by 2 and record the remainder Step 3: when obtain a zero as quotient, binary representation consists of remainders listed from right to left in order OperationQuotientremainder 13 by by by by =

Lecture 1: 8/27/2002CS170 Fall Conversion from decimal to binary Convert to octal (octal is base 8) Previous approach can be used to convert from decimal to any number system OperationQuotientremainder 13 by by = = (5 * 8 0 ) + (1 * 8 1 ) = 13 10

Lecture 1: 8/27/2002CS170 Fall Other Number Systems Octal (base 8) Symbols (0, 1, 2, 3, 4, 5, 6, 7) Working with too long binary numbers is a problem Hexadecimal (base 16) Symbols (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F) Byte = 8 bits = 2 hex digits ( 1 hex digit is 4 bits)

Lecture 1: 8/27/2002CS170 Fall Conversion from binary to hex Convert to hex Divide binary number into 4 bits groups from right to left E 16 34E

Lecture 1: 8/27/2002CS170 Fall DecimalBinaryHexadecimal A B C D E F 2 0 = 12 7 = = 22 8 = = 42 9 = = = = = = = = = 8190 Kilo 2 10 Tera2 40 Mega 2 20 Peta2 50 Giga2 30