CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: 0249990362. LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.

Slides:



Advertisements
Similar presentations
التصميم المنطقي Second Course
Advertisements

Number Systems & Operations
Arithmetic Operations and Circuits
Chapter 1 Binary Systems 1-1. Digital Systems
Digital Fundamentals Floyd Chapter 2 Tenth Edition
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Assembly Language and Computer Architecture Using C++ and Java
Level ISA3: Information Representation
Assembly Language and Computer Architecture Using C++ and Java
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
DIGITAL SYSTEMS TCE1111 Representation and Arithmetic Operations with Signed Numbers Week 6 and 7 (Lecture 1 of 2)
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
FIGURES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Dr. Bernard Chen Ph.D. University of Central Arkansas
Data Representation Number Systems.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
Numbering systems.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
1 Digital Convergence! Smart Phone: IT + Telecommunication + Consumer Electronics + Entertainment Analog vs Digital system Ex: Watch, LP vs CD, Camera.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
IT101: INFORMATION TECHNOLOGY FUNDAMENTALS 1 Edited By Dr. Ahmed Abo-Bakr Information Technology Dept. Faculty of Computers & Information.
ECE 331 – Digital System Design
1 EENG 2710 Chapter 1 Number Systems and Codes. 2 Chapter 1 Homework 1.1c, 1.2c, 1.3c, 1.4e, 1.5e, 1.6c, 1.7e, 1.8a, 1.9a, 1.10b, 1.13a, 1.19.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Number systems, Operations, and Codes
1 Dr. Mohamed Abdur Rahman Office hours Sunday: 10:00- 12:00 & Tuesday: 3:00 - 3:50 Course website: Has been created
Number Systems & Operations
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
Introduction To Number Systems Binary System M. AL-Towaileb1.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Chapter 1: Binary Systems
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.
© Prepared By: Razif Razali 1 CHAPTER TWO TCS1023 NUMBERING SYSTEM.
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
ECE DIGITAL LOGIC LECTURE 3: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/19/2016.
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.
Lecture No. 4 Computer Logic Design. Negative Number Representation 3 Options –Sign-magnitude –One’s Complement –Two’s Complement  used in computers.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
1 CS 352 Introduction to Logic Design Lecture 1 Ahmed Ezzat Number Systems and Boolean Algebra, Ch-1 + Ch-2.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
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.
Unit 1 Introduction Number Systems and Conversion.
Chapter 1 Digital Systems and Binary Numbers
Introduction To Number Systems
Lecture 1: Introduction and Numbers
디지털 로직 및 CAD 실습 Fundamentals of Logic Design (6e) Charles H. Roth, Jr.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Digital Logic & Design Dr. Waseem Ikram Lecture 02.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
Chapter 3 Data Representation
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
University of Gujrat Department of Computer Science
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic & Design Lecture 02.
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Systems and Binary Numbers
Binary to Decimal Conversion
Introduction To Number Systems
Presentation transcript:

CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.

Course Reference Materials 1.Digital Fundamentals with PLD Programming by Thomas L. FLOYD. 2.Logic and Computer Design Fundamentals, 2 nd Edition. by M. Morris MANO and Charles R. KIME. 3.Fundamentals of Digital Logic With VHDL Design. by Stephen BROWN and Zvonko VRANESIC. 4. Fundamentals of Logic Design, 5 th Edition by Charles H. ROTH, Jr.

COURSE OUTLINE INTRODUCTION TO DIGITAL LOGIC SYSTEMS NUMBER SYSTEM AND CONVERSION BINARY TO DECIMAL DECIMAL TO BINARY BINARY ARITHMETIC REPRESENTATION OF NEGATIVE NUMBERS BINARY CODES BOOLEAN ALGEBRA APPLICATION OF BOOLEAN ALGEBRA KARNAUGH MAPS

COURSE OUTLINE QUINE – McCLUSKEY METHOD COMBINATIONAL CIRCUIT DESIGN AND SIMULATION USING GATES MULTIPLEXERS, DECODERS SEQUENTIAL LOGIC DESIGN MINI PROJECT

CHAPTER ONE NUMBER SYSTEM AND CONVERSION Digital systems are used extensively in computation and data processing, control systems, communications, and measurement. REASONS 1. Digital systems are capable of greater accuracy than analog systems 2. Reliability is greater than analog. 3. More data can be stored in storage device when digitized than when they are not. INTRODUCTION

Design of Digital Systems Digital System Design is in three parts - System Design - Logic Design - Circuit Design

Design of Digital Systems  SYSTEM DESIGN: Breaking the overall system into subsystems and specifying the characteristics of each subsystem.  LOGIC DESIGN: Determining how to interconnect basic logic building blocks to perform a specific function.  CIRCUIT DESIGN: Specifying the interconnection of specific components such as resistors, diodes, and transistors to form a gate, flip – flop, or other logic building block.

Switching Circuits A switching circuit has one or more inputs and one or more outputs which take on discrete values. In this course we shall study two types of switching circuits – combinational and sequential.

Switching Circuits  Combinational Circuit:The output values depend only on the present value of the inputs and not on the past values.  Sequential Circuit: The outputs depend on both the present and past input values.

A block Diagram of a Switching Circuit Switching Circuit Outputs Inputs Z1Z1 ZnZn Z1Z1 X1X1 X2X2 XnXn :. :.

Number System and Conversion The decimal (base 10) numbers are called positional numbers, each position is assigned a weight. For example, = 9 X X X X X = 1 X X X X X X 2 -2 = ½ + 0 =

Number Conversion Any positive integer R (R > 1) can be chosen as the radix or base of a number system. If the base is R, then R digits (0, 1,..., R – 1) are used.

Number Conversion A number written in positional notation can be expanded in power series in R. For example, N = (a 4 a 3 a 2 a 1 a 0.a -1 a -2 a -3 ) R = a 4 X R 4 + a 3 X R 3 + a 2 X R 2 + a 1 X R 1 + a 0 X R 0 + a -1 X R -1 + a -2 X R -2 + a -3 X R -3 Where a i is the coefficient of R i and 0≤ a i ≥ R-1.

For bases greater than 10, more than 10 symbols are needed to represent the digits. For example, In hexadecimal (base 16), A represents 10 10, B represents 11 10, C represents 12 10, D represents 13 10, E represents 14 10, and F represents Thus; A3F 16 = 10 X X X 16 0 = = Number Conversion

NUMBER CONVERSION TYPES Binary – to - decimal conversion Decimal - to - binary conversion -Repeated division – by – R method. (R = Radix or Base) -Sum – of – weights method.

The base R equivalent of a decimal integer N can be represented as: N = (a n a n-1...a 2 a 1 a 0 ) = a n R n + a n-1 R n a 2 R 2 + a 1 R 1 + a 0. If we divide N by R, the remainder is a 0 : N/R = a n R n-1 + a n-1 R n a 2 R 1 + a 1 = Q 1, remainder a 0 REPEATED DIVISION - BY - R METHOD

Then we divide the quotient Q 1 by R: Q 1 /R = a n R n-2 + a n-1 R n a 3 R 1 + a 2 = Q 2, remainder a 1 This process is continued until we finally obtain a n. Note that the remainder obtained at each division step is one of the desired digits and the least significant digit (LSB) is obtained first. REPEATED DIVISION - BY - R METHOD

SUM – OF – WEIGHT METHOD  Determine the set of binary weights whose sum is equal to the decimal number. The lowest weight is 1, which is 2 0.  Doubling any weight, you get the next higher weight. Example: 9 = or 9 = Thus 9 = 1001

Conversion Decimal Fractions to Binary  There are two ways of converting Decimal fractions to Binary Sum – of – weight method Repeated Multiplication by R Method (where R is the Radix or Base).

Sum – of – Weight Method  The most significant weight is 0.5, which is 2 -1  Halving any weight, get you next lower weight. Example 0.5, 0.25, 0.125, = = = There is a 1 in the 2 -1 position, a 0 in the 2 -2 position, and a 1 in the 2 -3 position.

REPEATED MULTIPLICATION BY R METHOD  Conversion of a decimal fraction to base R can be done using successive multiplications by R. A decimal fraction F can be represented as  F = (.a -1 a -2 a -3...a -m ) R = a -1 R -1 + a -2 R -2 + a -3 R a -m R -m  Multiplying by R yields FR = a -1 + a -2 R -1 + a­ -3 R a -m R -m+1 = a -1 + F 1

Where F 1 represents the fractional part of the result and a -1 is the integer part. Multiplying F 1 by R yields F 1 R = a -2 + a -3 R a -m R -m+2 = a -2 + F 2 This process is continued until we have obtained a sufficient number of digits Note that the integer part obtained at each step is one of the desired digits and the most significant digit (MSB) is obtained first. REPEATED MULTIPLICATION BY R METHOD

Example: Convert to binary. F = X 2 = (a -1 = 1), F 1 =.250 X 2 = (a -2 = 0), F 2 =0.500 X 2 = (a -3 = 1) =

BINARY ARITHMETIC Arithmetic operations in digital systems are usually done in binary because design of logic circuits to perform binary arithmetic is much easier than for decimal. Binary arithmetic operations: Addition Multiplication Subtraction Division

The addition table for binary numbers is = = = = 0 and carry 1 to the next column. Carrying 1 to a column is equivalent to adding 1 to that column. BINARY ADDITION

Add and in binary = = = carries BINARY ADDITION

BINARY SUBTRACTION The subtraction table for binary number is 0 – 0 = 0 0 – 1 = 1 and borrow 1 from next column 1 – 0 = 1 1 – 1 – 0 Borrowing 1 from a column is equivalent to subtracting 1 from that column.

BINARY SUBTRACTION Example of binary subtraction A borrow from 3 rd position

BINARY SUBTRACTION Exercise

BINARY MULTIPLICATION The multiplication table for binary numbers is 0 X 0 =0 0 X 1 = 0 1 X 0 = 0 1 X 1 = 1 Exercise Find X in binary.

Binary Multiplication Example (2): Find 101 X X

BINARY DIVISION ASSIGNMENT (1) Read on binary division

Representation of Signed Numbers In most computers, in order to represent both positive and negative numbers the first bit in a word is used as a sign bit, with 0 used for plus and 1 used for minus. For an n – bit word, the first bit is the sign and the remaining n -1 bits represent the magnitude of the number. Thus an n – bit word can represent any one of 2 n-1 positive integers or 2 n-1 negative integers.

The 1’s complement and 2’s complement The 1’s complement and 2’s complement are commonly used because arithmetic units are easy to design using these systems

Finding the 1’s complement For the 1’s complement system a negative number, -N, is represented by its 1’s complement, N. The 1’s complement of a positive integer N is defined as N = (2 n – 1) – N An alternative way of finding the 1’s complement is to simply complement N bit – by – bit by replacing 0’s with 1’s and 1’s with 0’s.

Finding the 2’s complement For the 2’s complement number system, a positive number, N, is represented by a 0 followed by the magnitude as in the sign and magnitude system; however, a negative number, -N, is represented by its 2’s complement, Ѝ.

Finding the 2’s complement = 2 n – N Note that N = (2 n – 1) – N. This implies = 2 n – N = (2 n – 1 – N) + 1 = N + 1 Another way of finding the 2’s complement of a binary number is as follows:  Start at the right with the LSB and write the bits as they are up to and including the first 1.  Take the 1’s complement of the remaining bits.

Back to True Binary Form To convert from 1’s complement back to the true binary, reverse all the bits. To go from 2’s complement form back to true binary, take the 1’s complement of the 2’s complement number and add 1 to the least significant bit.

ARITHMETIC OPERATION WITH SIGNED NUMBERS  Addition of Signed Numbers The two numbers in an addition are the addend and augend. The result is the sum. There are four cases that can occur when two signed binary numbers are added.

Four Cases of Signed Binary Addition Both numbers positive Positive number with magnitude larger than negative number Negative number with magnitude larger than positive number Both numbers negative.

Both Numbers Positive The sum is positive and is therefore in true (uncomplemented) binary. +

Positive number magnitude larger than negative number: The final carry bit is discarded. The sum is positive and therefore in true (uncomplemented) binary. +

Negative number with magnitude larger than positive number The sum is negative and therefore in 2’s complement form

Both numbers negative The final carry bit is discarded. The sum is negative and therefore in 2’s complement form

Over flow: When two numbers are added and the number of bits required to represent the sum exceeds the number of bits in the two numbers, an overflow results as indicated by an incorrect sign bit. An overflow occurs only when both numbers are negative or both numbers are positive. Example: In this example the sum of 183 requires eight magnitude bits. Since there are seven magnitude bits in the numbers (one bit is the sign bit), there is a carry into the sign bit which produces the overflow indication.