ECE- 1551 DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.

Slides:



Advertisements
Similar presentations
Data Representation COE 202 Digital Logic Design Dr. Aiman El-Maleh
Advertisements

DATA REPRESENTATION CONVERSION.
Chapter 1 Binary Systems 1-1. Digital Systems
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Level ISA3: Information Representation
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
Number Systems and Arithmetic
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Numbering systems.
Numeral Systems Subjects: Numeral System Positional systems Decimal
IT-101 Section 001 Lecture #3 Introduction to Information Technology.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
Data Representation – Chapter 3 Section 3-1. Terminology “Digital” –Discrete, well defined values/steps –Opposite of analog –Analogy: digital is to analog.
Data Representation in Computer Systems. 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
Lecture 2 Bits, Bytes & Number systems
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Number systems, Operations, and Codes
Digital Logic Lecture 2 Number Systems
Number Base Conversions
Data Representation – Chapter 3 Section 3-1. Terminology “Digital” –Discrete, well defined values/steps –Opposite of analog –Analogy: digital is to analog.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
AEEE2031 Data Representation and Numbering Systems.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Digital Systems Digital Logic and Design Dr. Musab Bassam Zghool Text Book: Mano Morris M. “ Digital Logic And Computer Design ”
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
Introduction To Number Systems Binary System M. AL-Towaileb1.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Computer Number System
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
Chapter 1 : Introduction to Binary Systems 1.1. Introduction to Digital Systems 1.2. Binary Numbers 1.3. Number Base Conversion 1.4. Octal and Hexadecimal.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
 2012 Pearson Education, Inc. Slide Chapter 4 NumerationSystems.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
Number Systems. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Digital logic COMP214  Lecture 2 Dr. Sarah M.Eljack Chapter 1 1.
EEE 301 : Digital ELECTRONICS Amina Hasan Abedin Senior lecturer, Dept of EEE, BRAC University.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Unit 1 Introduction Number Systems and Conversion.
Introduction To Number Systems
NUMBER SYSTEMS.
Discrete Mathematics Numbering System.
CHAPTER 1 : INTRODUCTION
Number Systems.
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
ITE102 – Computer Programming (C++)
Number Systems Lab session 1 Xuan Guo.
Chapter 3 Data Representation
Number System conversions
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Numbering System TODAY AND TOMORROW 11th Edition
A primer on number representations in computers
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Systems and Binary Numbers
Number Systems Rayat Shikshan Sanstha’s
William Stallings Computer Organization and Architecture 10th Edition
Number Systems Rayat Shikshan Sanstha’s
UNIT – 3 & 4. Data Representation and Internal
Presentation transcript:

ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016

What is a Digital System A digital system is an interconnection of digital modules. To understand the operation of each digital module, it is necessary to have a basic knowledge of digital circuits and their logical function.  Structure: The way components are interrelated  a collection of interconnected digital modules designed to perform a particular service or function  Function: The operation of each individual component as part of the structure  Takes a set of discrete information inputs and discrete internal information (system state) and generates a set of discrete information outputs. Digital Processing System Current State Analog Inputs Digital Outputs Digital Inputs ADC The quantization of a process can be performed automatically by an analog ‐ to ‐ digital converter, a device that forms a digital (discrete) representation of a analog (continuous) quantity.

Digital System and Binary Numbers  Digital systems use just two discrete values and are therefore said to be binary.  A binary digit, called a bit, has two values: 0 and 1.  Discrete elements of information are represented with groups of bits called binary codes.  For example, the decimal digits 0 through 9 are represented in a digital system with a code of four bits (e.g., the number 7 is represented by 0111).  How a pattern of bits is interpreted as a number depends on the code system in which it resides.  To make this distinction, we could write (0111) 2 to indicate that the pattern 0111 is to be interpreted in a binary system, and (0111) 10 to indicate that the reference system is decimal.  Then = 7 10, which is not the same as (0111) 10, or one hundred eleven. Thus, a digital system is a system that manipulates discrete elements of information represented internally in binary form.

Numbers Systems  Decimal Numbers  Binary Numbers  Octal and Hexadecimal Number Systems  Converting Between Bases  Converting Any Base to Decimal  Converting Decimal to Any Base  Converting Between Binary and Octal  Converting Between Binary and Hexadecimal

Decimal Number System  The standard numbers used in the US are base ten, this is the decimal number system. This system uses ten different symbols to represent numbers. These symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Each digit in a decimal number has a specific value. The number 7,392 is represented by 7 thousand, 3 hundreds, 9 tens, and 2 ones. 7 x x x x 10 0 = 7392  Convention is to write numeric coefficients and from their position deduce powers of 10, with powers increasing from right to left. a 5 a 4 a 3 a 2 a 1 a 0.a -1 a -2 a a a a a a a a a a -3  Coefficients aj are any of the 10 digits (0,1,2,3,4,5,6,7,8,9)  Subscript j value gives the place value. Hence the power of 10.

Binary Number System  The number system typically used in digital logic will be base 2, this is the binary number system. This system uses two different symbols to represent numbers, 0 and 1.  The table below shows how the binary system progresses to more than three digits to represent even one decimal digit. Number SystemDecimalBinary One10001 Two20010 Three30011 Four40100 Five50101 Six60110 Seven70111 Eight81000 Nine91001 Ten101010

Octal and Hexadecimal Number Systems  Other useful number systems used in digital logic are octal and hexadecimal.  Octal uses 8 symbols to represent numbers. These symbols are 0, 1, 2, 3, 4, 5, 6, and 7. Hexadecimal uses 16 symbols to represent numbers. These symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.  It can be hard to read 8 bits of binary. The 1’s and 0’s tend to blend together and it can cause mistakes. Octal and hexadecimals can be used to condense long binary strings into shorter hexadecimal values.  F.g long strings of bits in the addresses, instructions, and data in digital systems.  For example, B65F is used to represent (Will be discussed later in conversion section)

Octal and Hexadecimal Number Systems  The table below shows the progression used for octal and hexadecimal. Number SystemDecimalBinaryOctalHexdecimal One Two Three Four Five Six Seven Eight Nine Ten A Eleven B tweleve C Thirteen D Fourteen E Fifteen F Sixteen

Conversion Between Bases

 The main source of confusion is when the conversion requires math in different bases an example of this is below. (10) 7 + (6) 8 = (1101) 2  This demonstrates the difficulty of even adding two small numbers when using different bases.  A useful method is to convert the entire problem to base 10, and after the answer has been found, convert the answer to the desired base.  Converting Any Base to Decimal…

Conversion Between Bases: 1: Converting Any Base to Decimal The conversion of a number in base r to decimal is done by expanding the number in a power series and adding all the terms

Converting Any Base to Decimal: Binary to Decimal  A useful word to describe the base of a number system is radix. The radix of a decimal number is ten, and the radix of a binary number is two.  Decimal system uses 10 digits, where as binary uses 2. That is, in binary system coefficients can have only 2 values: 0 and 1.  Each coefficient a j is multiplied by a power of the radix, e,g 2 j and the results are added to obtain the decimal equivalent  For example, the decimal equivalent of the binary number is ?? 1 * * * * * * * 2 -2 = 26.75

Converting Any Base to Decimal: Binary to Decimal

Converting Any Base to Decimal  There are many different number systems. In general, a number expressed in a base ‐ r. system has coefficients multiplied by powers of r: r n a n + r n-1 a n-1 + r n-2 a n-2 + ……+ r 2 a 2 + r 1 a 1 + r 0 a 0 + r -1 a a a -3 +……+ r m-2 a m-2 + r m-1 a m-1 + r m a m.  Coefficients a j range in value from 0 to r -1.  Examples:  (4021.2) 5 =?  (127.4) 8 = ?  (B65F) 16 =?

Conversion Between Bases: 2: Converting Decimal to any Base For integer part by dividing the number and all successive quotients by r and accumulating the remainders. For fraction part by multiplying the number and all successive fractions by r and accumulating the resulting integers.

Converting Decimal to any Base  If the number includes a radix point, it is necessary to separate the number into an integer part and a fraction part, since each part must be converted differently.  The conversion of a decimal integer to a number in base r is done by dividing the number and all successive quotients by r and accumulating the remainders.  Example: Convert decimal 41 to binary.

Converting Decimal to Binary Base: Answer Slide  Convert decimal 41 to binary. First, 41 is divided by 2 to give an integer quotient of 20 and a remainder of 12. Then the quotient is again divided by 2 to give a new quotient and remainder. The process is continued until the integer quotient becomes 0. The coefficients of the desired binary number are obtained from the remainders as follows:

Converting Decimal to Octal Base: Example 2  Convert decimal 153 to octal.

Converting Decimal to Octal Base: Answer Slide

Converting Decimal to Any Base: Numbers with Fractions  Convert (0.6875)10 to binary. First, is multiplied by 2 to give an integer and a fraction. Then the new fraction is multiplied by 2 to give a new integer and a new fraction. The process is continued until the fraction becomes 0 or until the number of digits has sufficient accuracy. The coefficients of the binary number are obtained from the integers as follows:

Converting Decimal to Any Base: Summary  Successive Quotients  The method used to convert a decimal integer number to any other radix is called Successive Quotients. This method uses a recursive algorithm.  The integer column begins with the decimal number being converted. The second row is the first row divided by the radix, the quotient on the left and the remainder on the right. This pattern is continued until the quotient returns 0. The conversion is read least significant bit, LSB on the top. The algorithm for this process is itemized below. 1. Divide the initial decimal number by the radix. 2. Place the remainder into the LSB (Least Significant Bit) digit of the converted result. 3. Divide the current quotient by the radix. 4. Place the remainder into the next LSB digit of the converted result. 5. Repeat Step 3 and 4 until the quotient is 0

Converting Decimal to Any Base: Summary  Successive Products  The process of converting decimal fractions is a similar recursive algorithm process. 1. Multiply the initial decimal fraction by the radix. 2. Place the integer into the MSB (Most Significant Bit) digit of the converted result. 3. Multiply the current fraction by the radix. 4. Place the integer into the next MSB digit of the converted result. 5. Repeat Step 3 and 4 until the fraction is 0 or the required number of bits have been converted.

Converting Decimal to Any Base: Numbers with Fractions Example  Convert (0.513) 10 to octal:  Convert ( ) 10 to binary  Convert ( ) 10 to octal

Quickly Converting Between Binary and Hexadecimal  Conversion from and to binary, octal and hexadecimal helps shorter patterns of octal and hex characters to recognize than long patterns of 1’s and 0’s.  Since 2 3 =8 and 2 4 =16. Each octal digit corresponds to three binary digits and each hexadecimal digit corresponds to four binary digits.  To convert from binary to octal, first partition the binary number into group of three digits each.  Starting from the binary point and preceding from the left to the right.  Corresponding octal digit is then assigned to each group.  Example ( ) = ( ) 8

Quickly Converting Between Binary and Hexadecimal  Conversion from binary to hexadecimal is similar, except binary number is divided into groups of four digits:  Example ( ) 2 = 2 C 6 B F 2 (2C6B.F2) 16

Next Class  Study Number Systems – Signed and Unsigned numbers.