1 EGR 277 – Digital Logic Syllabus Office Hours No food or drinks in the classrooms Web page (demonstration) Lecture #1 EGR 277 – Digital Logic Reading.

Slides:



Advertisements
Similar presentations
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Advertisements

Chapter Chapter Goals Know the different types of numbers Describe positional notation.
ECE 331 – Digital System Design
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
DIGITAL SYSTEMS TCE1111 Representation and Arithmetic Operations with Signed Numbers Week 6 and 7 (Lecture 1 of 2)
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.
COE 202: Digital Logic Design Number Systems Part 1
Data Representation – Chapter 3 Sections 3-2, 3-3, 3-4.
Mantıksal Tasarım – BBM231 M. Önder Efe
Number Systems Lecture 02.
Number Systems.
© Janice Regan, CMPT 128, Jan CMPT 128: Introduction to Computing Science for Engineering Students Integer Data representation Addition and Multiplication.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Numbering systems.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Computer Number Systems. d n-1 d n-2 d n d 2-m d 1-m d -m Conventional Radix Number r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } -m ≤
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,
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
Number systems, Operations, and Codes
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.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
AEEE2031 Data Representation and Numbering Systems.
Digital Systems and Binary Numbers
Number Systems & Operations
 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.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
Chapter 2 Binary Values and Number Systems Chapter Goals Distinguish among categories of numbers Describe positional notation Convert numbers in.
Computer Number System
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
Introduction to Digital Electronics Lecture 2: Number Systems.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
Number Representation 1 Lecture 2. Outcomes By the end of the session you should: – Understand what bits/bytes/words are. – Understanding conversion between.
Lecture No. 4 Computer Logic Design. Negative Number Representation 3 Options –Sign-magnitude –One’s Complement –Two’s Complement  used in computers.
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.
Welcome to CSE 370 Introduction to Digital Design Jan 10, 2002.
Dr. Nermin Hamza 1. Materials Book: Digital Design 4 th M. Morris Mano and Michael D. Ciletti 2.
Unit 1 Introduction Number Systems and Conversion.
Digital Systems and Binary Numbers
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Digital Systems and Binary Numbers
Number Systems.
Number System conversions
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Systems and Binary Numbers
Chapter 2: Number Systems
Chapter Four Data Representation in Computers By Bezawit E.
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Binary Addition (1 of 2) Two 1-bit values A B A + B 1
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Presentation transcript:

1 EGR 277 – Digital Logic Syllabus Office Hours No food or drinks in the classrooms Web page (demonstration) Lecture #1 EGR 277 – Digital Logic Reading Assignment: Chapter 1 in Digital Design, 3 rd Edition by Mano Digital System – a system that works with discrete elements of information (a set of symbols) rather than with continuous signals as in an analog system. This discrete information is represented in binary form. Data processing is carried out by means of binary logic elements using binary signals. Quantities are stored in binary storage elements (memory).

2 Lecture #1 EGR 277 – Digital Logic Digital System – a system that works with discrete elements of information (a set of symbols) rather than with continuous signals as in an analog system. This discrete information is represented in binary form. Data processing is carried out by means of binary logic elements using binary signals. Quantities are stored in binary storage elements (memory). Illustration: Chapter 1 – Binary Systems

3 Lecture #1 EGR 277 – Digital Logic 1. Decimal Numbers Base = 10, ten unique digits: (0,1,2,3,4,5,6,7,8,9), place values, counting sequence, examples, LSD and MSD Number Systems 2. Binary Numbers Base = 2, two unique digits: (0 and 1), binary digit = “bit”, place values, counting sequence, examples, LSB and MSB

4 Lecture #1 EGR 277 – Digital Logic 3. Octal Numbers Base = 8, eight unique digits: (0,1,2,3,4,5,6,7), place values, counting sequence, examples, LSD and MSD Number Systems 4. Hexadecimal Numbers Base = 16, sixteen unique digits: (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F), binary digit = “bit”, place values, counting sequence, examples, LSB and MSB

5 Lecture #1 EGR 277 – Digital Logic Arithmetic operations in other bases are very similar to the familiar operations that we have always used in base 10. Arithmetic Operations Examples: (of addition, subtraction, and multiplications in various bases)

6 Lecture #1 EGR 277 – Digital Logic Converting Between Bases Examples: 1. Converting to decimal: expand by place value as previously seen 2. Converting from decimal: A. For the integer portion: Use repeated division by the base (LSD is found first) B. For the fractional portion: Use repeated multiplication by the base (MSD is found first).

7 Lecture #1 EGR 277 – Digital Logic 3.Converting between binary, octal, and hexadecimal – simple replacement A) Binary to octal Examples: B) Binary to hexadecimal Examples:

8 Lecture #1 EGR 277 – Digital Logic Complements Complements are commonly used to represent negative numbers and to perform subtraction. There are two types of complements which can be applied to any base: GeneralBase 2Base 10 (r-1)’s complement1’s complement9’s complement r’s complement2’s complement10’s complement Where r = base And a general number X might consist of the digits X = aaaaaaa.bbb n = number of digits before the decimal point m = number of digits after the decimal point Formal definitions: (r-1)’s complement of X = r n – r -m – X ( = r n –1-X if m = 0) r’s complement of X = r n – X = (r-1)’s complement + r -m (= (r-1)’s complement + 1 if m = 0)

9 Lecture #1 EGR 277 – Digital Logic Shortcut approach to finding complements: 9’s comp: subtract each digit from 9 10’s comp: 9’s comp + 1 if m = 0 1’s comp: replace each 0 with 1 and replace each 1 with 0 2’s comp: 1’s comp + 1 if m = 0 2’s comp (alternate method): Move from the right until the first 1 is encountered. Complement each bit after (but not including) this 1. Examples:

10 Lecture #1 EGR 277 – Digital Logic Representing negative numbers in 2’s complement form: Negative numbers are typically represented in 2’s complement form in computers or other digital systems. Example: int variables in C++ are represented using two bytes, where the MSB is a sign bit. If the MSB = 1, the number is negative and in 2’s complement form. 1)What are the max and min values that can be stored? 2)What happens when an overflow occurs? (Show a sample program)

11 Lecture #1 EGR 277 – Digital Logic Subtraction using r’s complement: A complement can be used to represent a negative value. It is difficult for a computer to subtract, but relatively simple to add and to find complements. Therefore, it is common to add a complement rather than to subtract. Examples:

12 Lecture #1 EGR 277 – Digital Logic Subtraction using (r-1)’s complement: Examples: