Logic Design EE-2121 Manesh T. Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic.

Slides:



Advertisements
Similar presentations
Digital Systems Introduction Binary Quantities and Variables
Advertisements

Logic Gates.
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
Types of Logic Circuits
التصميم المنطقي Second Course
A digital system is a system that manipulates discrete elements of information represented internally in binary form. Digital computers –general purposes.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 3 Dr. Shi Dept. of Electrical and Computer Engineering.
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Storage of Bits Computers represent information as patterns of bits
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
DIGITAL ELECTRONICS CIRCUIT P.K.NAYAK P.K.NAYAK ASST. PROFESSOR SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY.
Number Systems & Logic Gates Day 2. Octal Number System Base (Radix)8 Digits0, 1, 2, 3, 4, 5, 6, 7 e.g = =648 1 =88 0 =1 The digit.
Mantıksal Tasarım – BBM231 M. Önder Efe
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 
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
CS231 Fundamentals1 Fundamentals What kind of data do computers work with? – Deep down inside, it’s all 1s and 0s What can you do with 1s and 0s? – Boolean.
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Binary Numbers.
Lecture 7 How computers process data (Number Systems) PRESENTED BY MD. MAHBUBUL ALAM, PHD 1.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
Logic and Digital System Design - CS 303
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
The Digital Logic Level
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Number systems & Binary codes MODULE 1 Digital Logic Design Ch1-2 Outline of Chapter 1  1.1 Digital Systems  1.2 Binary Numbers  1.3 Number-base Conversions.
Binary Number System & Logic Operations. The focus of the last lecture was on the microprocessor During that lecture we learnt about the function of the.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
June 10, 2002© Howard Huang1 Number systems To get started, we’ll discuss one of the fundamental concepts underlying digital computer design:
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
Chapter 1: Binary Systems
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
BINARY SYSTEMS ENGR. KASHIF SHAHZAD 1. BINARY NUMBERS 1/2 Internally, information in digital systems is of binary form groups of bits (i.e. binary numbers)
WORKING PRINCIPLE OF DIGITAL LOGIC
Dr. Nermin Hamza. Agenda Signed Numbers Properties of Switching Algebra.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Unit 1 Introduction Number Systems and Conversion.
Chapter 1 Digital Systems and Binary Numbers
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Invitation to Computer Science, C++ Version, Fourth Edition
Computer Code.
Working with DIGITAL Information
Logic Gates.
Digital Logic & Design Dr. Waseem Ikram Lecture 05
Jeremy R. Johnson Wed. Sept. 29, 1999
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
2 Number Systems and Codes Edited by Jerry Bernardini.
Invitation to Computer Science, Java Version, Third Edition
UNIT I: Introduction to Number Systems and
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Digital Logic & Design Lecture 05
Logic Gates.
Logic Gates.
Logic Circuits I Lecture 3.
XOR Function Logic Symbol  Description  Truth Table 
Introductory Concepts
Logic Gates By: Asst Lec. Besma Nazar Nadhem
Presentation transcript:

Logic Design EE-2121 Manesh T

Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic  Number Systems and Binary Arithmetic  Numeric and Alphabetic Codes

Introduction  Digital systems are concerned with digital signals  Digital signals can take many forms  Here we will concentrate on binary signals since these are the most common form of digital signals  can be used individually  perhaps to represent a single binary quantity or the state of a single switch  can be used in combination  to represent more complex quantities

Binary Quantities and Variables  A binary quantity is one that can take only 2 states A simple binary arrangement SL OPENOFF CLOSEDON SL A truth table

 A binary arrangement with two switches in series L = S1 AND S2

 A binary arrangement with two switches in parallel L = S1 OR S2

 Three switches in series L = S1 AND S2 AND S3

 Three switches in parallel L = S1 OR S2 OR S3

 A series/parallel arrangement L = S1 AND (S2 OR S3)

 Representing an unknown network

Logic Gates  The building blocks used to create digital circuits are logic gates  There are three elementary logic gates and a range of other simple gates  Each gate has its own logic symbol which allows complex functions to be represented by a logic diagram  The function of each gate can be represented by a truth table or using Boolean notation 9.3

 The AND gate

 The OR gate

 The NOT gate (or inverter)

 A logic buffer gate

 The NAND gate

 The NOR gate

 The Exclusive OR gate

 The Exclusive NOR gate

Boolean Algebra  Boolean Constants  these are ‘0’ (false) and ‘1’ (true)  Boolean Variables  variables that can only take the vales ‘0’ or ‘1’  Boolean Functions  each of the logic functions (such as AND, OR and NOT) are represented by symbols as described above  Boolean Theorems  a set of identities and laws – see text for details 9.4

 Boolean identities AND FunctionOR FunctionNOT function 0  0=0 0+0=0 0  1=0 0+1=1 1  0=0 1+0=1 1  1=1 1+1=1 A  0=0 A+0=A 0  A=0 0+A=A A  1=A A+1=1 1A=A1A=A 1+A=1 AA=AAA=A A+A=AA+A=A

Commutative lawAbsorption law Distributive lawDe Morgan’s law Associative lawNote also  Boolean laws

Combinational Logic  Digital systems may be divided into two broad categories:  combinational logic  where the outputs are determined solely by the current states of the inputs  sequential logic  where the outputs are determined not only by the current inputs but also by the sequence of inputs that led to the current state  In this lecture we will look at combination logic 9.5

 Implementing a function from a Boolean expression Example – see Example 9.1 in the course text Implement the function

 Implementing a function from a Boolean expression Example – see Example 9.2 in the course text Implement the function

 Generating a Boolean expression from a logic diagram Example – see Example 9.3 in the course text

Example (continued) – work progressively from the inputs to the output adding logic expressions to the output of each gate in turn

 Implementing a logic function from a description Example – see Example 9.4 in the course text The operation of the Exclusive OR gate can be stated as: “The output should be true if either of its inputs are true, but not if both inputs are true.” This can be rephrased as: “The output is true if A OR B is true, AND if A AND B are NOT true.” We can write this in Boolean notation as

Example (continued) The logic function can then be implemented as before

 Implementing a logic function from a truth table Example – see Example 9.6 in the course text Implement the function of the following truth table ABCX –first write down a Boolean expression for the output –then implement as before –in this case

Example (continued) The logic function can then be implemented as before

 In some cases it is possible to simplify logic expressions using the rules of Boolean algebra Example – see Example 9.7 in the course text can be simplified to hence the following circuits are equivalent

Number Systems and Binary Arithmetic  Most number systems are order dependent  Decimal = (1  10 3 ) + (2  10 2 ) + (3  10 1 ) + (4  10 0 )  Binary = (1  2 3 ) + (1  2 2 ) + (0  2 1 ) + (1  2 0 )  Octal = (1  8 3 ) + (2  8 2 ) + (3  8 1 )  Hexadecimal = (1  16 3 ) + (2  16 2 ) + (3  16 1 ) here we need 16 characters – 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F 9.6

 Number conversion  conversion to decimal  add up decimal equivalent of individual digits Example – see Example 9.8 in the course text Convert to decimal = (1  2 4 ) + (1  2 3 ) + (0  2 2 ) + (1  2 1 ) + (0  2 0 ) = = 2610

 Number conversion  conversion from decimal  repeatedly divide by the base and remember the remainder Example – see Example 9.9 in the course text Convert to binary NumberRemainder Starting point26  2130  261  230  211  201 read number from this end =11010

 Binary arithmetic  much simpler than decimal arithmetic  can be performed by simple circuits, e.g. half adder

 More complex circuits can add digital words  Similar circuits can be constructed to perform subtraction – see text  More complex arithmetic (such as multiplication and division) can be done by dedicated hardware but is more often performed using a microcomputer or complex logic device

Numeric and Alphabetic Codes  Binary code  by far the most common way of representing numeric information  has advantages of simplicity and efficiency of storage 9.7 BinaryDecimal etc etc.

Numeric and Alphabetic Codes  Binary-coded decimal code  formed by converting each digit of a decimal number individually into binary  requires more digits than conventional binary  has advantage of very easy conversion to/from decimal  used where input and output are in decimal form 9.7 BinaryDecimal etc etc.

Numeric and Alphabetic Codes  ASCII code  American Standard Code for Information Interchange  an alphanumeric code  each character represented by a 7-bit code  gives 128 possible characters  codes defined for upper and lower-case alphabetic characters, digits 0 – 9, punctuation marks and various non-printing control characters (such as carriage-return and backspace) 9.7

Numeric and Alphabetic Codes  Error detecting and correcting codes  adding redundant information into codes allows the detection of transmission errors  examples include the use of parity bits and checksums  adding additional redundancy allows errors to be not only detected but also corrected  such techniques are used in CDs, mobile phones and computer disks 9.7

Key Points  It is common to represent the two states of a binary variable by ‘0’ and ‘1’  Logic circuits are usually implemented using logic gates  Circuits in which the output is determined solely by the current inputs are termed combinational logic circuits  Logic functions can be described by truth tables or using Boolean algebraic notation  Binary digits may be combined to form digital words  Digital words can be processed using binary arithmetic  Several codes can be used to represent different forms of information