Module 11.  In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in.

Slides:



Advertisements
Similar presentations
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Advertisements

5.5 Encoders A encoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes.
Give qualifications of instructors: DAP
Princess Sumaya University
Digital Circuits.
Combinational Circuits
Functions and Functional Blocks
التصميم المنطقي Second Course
COE 202: Digital Logic Design Combinational Circuits Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
CS 151 Digital Systems Design Lecture 17 Encoders and Decoders
Combinational Logic Building Blocks
EE2174: Digital Logic and Lab
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS DECODERS ENCODERS.
OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 2 OF 3)
Logic Gates Combinational Circuits
CS 105 Digital Logic Design
Combinational Logic Chapter 4.
CS 151: Digital Design Chapter 3 3-8: Encoding. CS 151 Encoding Encoding - the opposite of decoding - the conversion of a maximum of 2 n input code to.
Combinational Logic Design
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Combinational and Sequential Logic Circuits.
Dr. Ahmed El-Bialy, Dr. Sahar Fawzy Combinational Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Combinational Circuit – Arithmetic Circuit
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
COE 202: Digital Logic Design Combinational Circuits Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
1 Lecture #7 EGR 277 – Digital Logic Reading Assignment: Chapter 4 in Digital Design, 3 rd Edition by Mano Chapter 4 – Combinational Logic Circuits A)
1 Combinational Logic Design Digital Computer Logic Kashif Bashir
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
CHAPTER 4 Combinational Logic
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Digital Logic Design (CSNB163)
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
CS151 Introduction to Digital Design
Chap 2. Combinational Logic Circuits
Combinational Circuits by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 7 Dr. Shi Dept. of Electrical and Computer Engineering.
Chapter Four Combinational Logic 1. Discrete quantities of information are represented in digital systems by binary codes. A binary code of n bits is.
Combinational Logic Design – Design Procedure, Encoders/Decoders
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
1 Fundamentals of Computer Science Combinational Circuits.
Digital Systems Section 11 Decoders and Encoders.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
Digital Design Lecture 8 Combinatorial Logic (Continued)
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
C OMBINATIONAL L OGIC D ESIGN 1 Eng.Maha AlGubali.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
MSI Circuits.
CS221: Digital Logic Design Combinational Circuits 3
Combinational Circuit Design
Reference: Chapter 3 Moris Mano 4th Edition
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
Chapter 4 Combinational Logic
FIGURE 4.1 Block diagram of combinational circuit
COE 202: Digital Logic Design Combinational Circuits Part 3
Ch 4. Combinational logic
Digital Systems Section 17 Decoders and Encoders.
13 Digital Logic Circuits.
Chapter-4 Combinational Logic
XOR Function Logic Symbol  Description  Truth Table 
Digital System Design Combinational Logic
Digital Circuits.
Presentation transcript:

Module 11

 In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in Module 10, we have learnt about two more examples of combinational logic circuits: Binary multiplier Magnitude comparator  In this module, we shall study about two more examples of combinational logic circuits: Binary decoder Binary encoder

 A binary decoder is a combinational circuit that converts binary information from n input lines to a maximum of 2 n unique output lines.  For example, a decoder that converts binary representation in: 2 bits into 2 2 = 4, 3 bits into 2 3 = 8, 4 bits into 2 4 =16 unique output lines  If the n-bit coded information has unused combinations, the decoder may have fewer than 2 n outputs. For example, a BCD decoder of 4 bits input, only produces 10 outputs.

 The truth table for a 3-to-8 decoder whereby: 3 bit inputs (x, y, z) are decoded into 8 outputs (D0, D1, D2, D3, D4, D5, D6, D7} where each output representing one of the minterm. xyzD0D1D2D3D4D5D6D D0 = x’.y’.z’

 The logic circuit diagram: For each possible input combination, 7 outputs are equal to 0 and only one equal to 1. The output whose value is equal to 1 represents the equivalent minterm.

 In the previous examples, the outputs are not complemented, whereby AND gates are used.  We can also use complemented outputs for the 3 to 8 decoder, as such NAND gates can be used. xyzD0D1D2D3D4D5D6D Here, we use MAXTERM instead of minterm D0 = x + y + z D0 = x’’+y’’+z’’ D0 = (x’.y’.z’)’

 Decoders may include one or more enable inputs to control the circuit operation.  E.g. 2-to-4 line decoder with an enable input and complimented outputs: EABD0D1D2D3 1XX In general, the decoder can be activated when the enable is 1 or 0. In this case, the decoder is activate when enable is 0.

 Decoders with enable inputs can be connected to form a larger decoder circuit.  E.g.: two 3-to-8 line decoders (uncomplemented outputs)can be connected to form a 4-to-16 line decoder. wxyzD(0-7)wxyzD(8-15)

 Recapss from Module 5 - any logic circuit design can be represented in Sum of Mintems or Product of Maxterms Boolean Expression.  We have also learned that: each output of a decoder (of a uncomplemented outputs type) representing one minterm each output of a decoder (of a complemented outputs type) representing one maxterm  Thus, a logic circuit can be built using decoder: A decoder with uncomplemented outputs + OR gates = Sum of Minterms A decoder with complemented outputs + AND gates = Product of Maxterms

 Recapss from Module 9, a full adder properties: The input is three binary variables (a, b, c in being the input carry) The output is two binary variables (sum, c out being the output carry) Sum(a, b, c in ) = ∑(m1, m2, m4, m7) C out (a, b, c in ) = ∑(m3, m5, m6, m7)

 Encoder is a digital circuit that performs the inverse operation of a decoder.  An encoder has 2 n input lines and n output lines.  The output line generates the binary codeword corresponding to the input value.  For example: octal to binary encoder (8 to 3 encoder) hexadecimal to binary encoder(16 to 4 encoder)

 Truth table:  The encoder can be implemented with OR gates which boolean expressions can determined directly from the truth table. D0D1D2D3D4D5D6D7xyz x = D 4 + D 5 + D 6 + D 7 y = D 2 + D 3 + D 6 + D 7 z = D 1 + D 3 + D 5 + D 7

 Problem: The problem with the previous design is that only one of the 8 inputs can have the value of ‘1’ at a given time. If more than one are 1 simultaneously, the output produces an undefined combination.  Solution: This give rise to the design of a priority encoder that includes priority function. The operation of the priority encoder is such that if more than 1 inputs are equal to 1 at the same time, the input having the highest priority will take the precedence.

 Truth table:  The third output, V is the valid bit indicator that is set to 1 when one or more inputs are equal to 1, otherwiseV is equal to 0.  D 3 has highest priority. When D 3 is 1, the output for x, y will be 11 regardless other inputs.  D 0 has lowest priority. D0D1D2D3xyV 0000XX X XX10101 XXX1111

 Truth table:  The third output, V is the valid bit indicator that is set to 1 when one or more inputs are equal to 1, otherwiseV is equal to 0.  D 3 has highest priority. When D 3 is 1, the output for x, y will be 11 regardless other inputs.  D 0 has lowest priority. D0D1D2D3xyV 0000XX X XX10101 XXX1111

 V is 1 whenever any of the inputs are 1.  Thus V can be derived directly from the truth table using OR gates that checks if any of the inputs are 1:  Whereas, the simplified Boolean equations for x and y can be derived using Karnaugh Maps. V = D 0 + D 1 + D 2 + D 3 D0D1D2D3V X1001 XX101 XXX11

 Deriving Boolean expression for x: D 2 D 3 D 0 D X D0D1D2D3x 0000X X1000 XX101 XXX11 Group 1: D 3 Group 2: D 2 Thus simplified x = D 2 + D 3

 Deriving Boolean expression for y: D 2 D 3 D 0 D X D0D1D2D3y 0000X X1001 XX100 XXX11 Group 1: D 1 D 2 Group 2: D 3 Thus simplified y = D 21 D 2 + D 3

End of Module 11