Digital System Design Combinational Logic

Slides:



Advertisements
Similar presentations
Give qualifications of instructors: DAP
Advertisements

Encoders Three-state devices Multiplexers
Princess Sumaya University
Logical Design.
Combinational Circuits
Combinational Circuits
Documentation Standards
Functions and Functional Blocks
Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
Henry Hexmoor1 C hapter 4 Henry Hexmoor-- SIUC Rudimentary Logic functions: Value fixing Transferring Inverting.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
System Digital Encoder, Decoder, and Contoh Penerapanya.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
CS 151 Digital Systems Design Lecture 17 Encoders and Decoders
Combinational Logic Chapter 4.
Combinational Logic Building Blocks
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS DECODERS ENCODERS.
ECE 301 – Digital Electronics Multiplexers and Demultiplexers (Lecture #12)
Combinational Logic Chapter 4.
Morgan Kaufmann Publishers
Outline Decoder Encoder Mux. Decoder Accepts a value and decodes it Output corresponds to value of n inputs Consists of: Inputs (n) Outputs (2 n, numbered.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
Combinational Logic Design
Combinational and Sequential Logic Circuits.
CS2100 Computer Organisation MSI Components (AY2015/6 Semester 1)
Functions of Combinational Logic
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
Digital Logic Problems (II) Prof. Sin-Min Lee Department of Mathematics and Computer Science.
Combinational Design, Part 3: Functional Blocks
Logical Circuit Design Week 6,7: Logic Design of Combinational Circuits Mentor Hamiti, MSc Office ,
Kuliah Rangkaian Digital Kuliah 6: Blok Pembangun Logika Kombinasional Teknik Komputer Universitas Gunadarma.
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
CS151 Introduction to Digital Design
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.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Magnitude Comparator Dr. Ahmed Telba.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
DIGITAL LOGIC DESIGN & COMPUTER ARCHTECTURE
Module 11.  In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in.
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #8 FUNCTIONS OF COMBINATIONAL LOGIC (ENCODER & DECODER, MUX & DEMUX)
MSI Combinational logic circuits
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
MSI Circuits.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
Combinational Circuits: MSI Components
Chapter 3 Combinational Logic Design II
Chap 3. Combinational Logic Design
Chapter # 4: Programmable Logic
EKT 124 / 3 DIGITAL ELEKTRONIC 1
CS221: Digital Logic Design Combinational Circuits 3
Combinational Circuits
Combinational Logic Circuits
Combinational Functions and Circuits
Combinational Circuit Design
Combinational Logic Circuits
Lecture 4: Combinational Functions and Circuits
Reference: Chapter 3 Moris Mano 4th Edition
NAND-ONLY LOGIC CIRCUITS
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Chapter 6 Functions of Combinational Logic
FIGURE 4.1 Block diagram of combinational circuit
EET107/3 DIGITAL ELECTRONICS 1
Programmable Configurations
COE 202: Digital Logic Design Combinational Circuits Part 3
Ch 4. Combinational logic
13 Digital Logic Circuits.
Presentation transcript:

Digital System Design Combinational Logic

Decoders Decoder : selects one output based on binary input Converts n-bit code into 2n outputs, only one being active for any combination of inputs Selects output x if input is binary representation of x Applications Binary-to-octal decoder Memory address selection Can be used to construct arbitrary logic function Digital System Design April 20, 2019

Decoder Example: Seven-Segment Decoders /Bl D C B A a b c d e f g 0 x x x x 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 1 1 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 1 0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 0 0 1 1 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 1 0 0 0 0 1 1 0 1 1 1 0 1 1 0 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 0 1 1 1 1 1 0 1 1 0 0 1 0 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 -- don’t care inputs -- A seven segment decoder has 4-bit BCD input and the seven segment display code as its output: In minimizing the circuits for the segment outputs all non-decimal input combinations (1010, 1011, 1100,1101, 1110, 1111) are taken as don’t-cares Digital System Design April 20, 2019

Truth Table Digital System Design April 20, 2019

3 to 8 Decoder Circuit When is output D0 chosen? If x’ y’ z’ When is output D1 chosen? If x’ y’ z … and so on … Circuit for line decoder Sequence of minterms Combine variables to minterms Digital System Design April 20, 2019

Advanced Decoder Additional feature: Enable input Example: Circuit generates output only if Enable is selected (E=0) If disabled (E=1), no output line is picked Example: 2-to-4 line decoder with Enable NAND implementation Digital System Design April 20, 2019

2-to-4 Line Decoder with Enable Input Truth table for NAND decoder Complemented outputs and Enable If active low outputs, then use NAND gates! Digital System Design April 20, 2019

Larger Decoders Enable bit can be used for building larger decoders w = 0 activates upper decoder (bits D7…D0) w = 1 activates lower decoder (bits D15…D8) Effect: w adds one input bit n = 3 → 4 Digital System Design April 20, 2019

Implementing Functions Using Decoders Example: Full adder S(x, y, z) = S (1,2,4,7) C(x, y, z) = S (3,5,6,7) Digital System Design April 20, 2019

Standard MSI Binary Decoders Example 74138 (3-to-8 decoder) (a) Logic circuit. (b) Package pin configuration. (c) Function table. Digital System Design April 20, 2019

Enabling Enable signals permit or prevent something from occurring (a control signal) State is described as either: Active - ON or Enabled Passive - OFF or Disabled Polarity of control state can be: Active high - schematic symbol doesn’t have bubble Active low - Schematic symbol has bubble Digital System Design April 20, 2019

Encoders Encoder: translates 2n input lines into n output lines Input: 2n lines Output: n bits Output is binary coding of input that is 1 Truth table (n=3): Digital System Design April 20, 2019

8-to-3 binary encoder For an 8-to-3 binary encoder with inputs D0-D7 the logic expressions of the outputs X,Y,Z are: Z = D1 + D3 + D5 + D7 Y = D2 + D3 + D6 + D7 X = D4 + D5 + D6 +D7 At any one time, only one input line has a value of 1. D0 D1 D2 D3 D4 D5 D6 D7 Z = D1 + D3 + D5 + D7 Y = D2 + D3 + D6 + D7 X = D4 + D5 + D6 + D7 Digital System Design April 20, 2019

Priority Encoder Priority encoder Like encoder, with additional functionality: if multiple inputs are 1, give priority to one of the bits Example: 4-to-1 priority encoder with priority given to one bit Which bit has highest priority? D3 Valid bit Digital System Design April 20, 2019

K-Map of a Priority Encoder Digital System Design April 20, 2019

4-input Priority Encoder x = D2 + D3 y = D3 + D1 D2’ V = D0 + D1 + D2 + D3 Digital System Design April 20, 2019

Multiplexers select binary information from one of many input lines and direct it to a single output line 2n input lines, n selection lines and one output line e.g.: 2-to-1-line multiplexer Digital System Design April 20, 2019

4-to-1-line multiplexer 4:1 MUX Y Inputs select S1 S0 I0 I1 I2 I3 1 2 3 Output mux Y Inputs select S1 S0 I0 I1 I2 I3 Digital System Design April 20, 2019

Alternative Circuit for 4-to-1-line multiplexer S1 S0 0 1 2 3 2-to-4 Decoder I0 I1 I2 I3 Y Digital System Design April 20, 2019

Larger Multiplexers Larger multiplexers can be constructed from smaller ones. An 8-to-1 multiplexer can be constructed from smaller multiplexers as shown: 4:1 MUX I0 I1 I2 I3 S1 S0 I4 I5 I6 I7 2:1 MUX S2 Y Digital System Design April 20, 2019

Larger Multiplexers A 16-to-1 multiplexer can be constructed from five 4-to-1 multiplexers: Digital System Design April 20, 2019

Multiplexer What if we want to select more than one bit? Example: choose one of two 4-bit numbers “Quadruple2-to-1 line multiplexer” Select chooses input Enable bit sets output to 0 if 1 Digital System Design April 20, 2019

Standard MSI Multiplexer Example 74151A 8-to-1 multiplexer. Digital System Design April 20, 2019

Boolean function implementation MUX: a decoder + an OR gate 2n-to-1 MUX can implement any Boolean function of n input variable a better solution: implement any Boolean function of n+1 input variable n of these variables: the selection lines the remaining variable: the inputs Digital System Design April 20, 2019

Example I an example: F(A,B,C)=Σ(1,2,6,7) Digital System Design April 20, 2019

Procedure Procedure: assign an ordering sequence of the input variable the rightmost variable (D) will be used for the input lines assign the remaining n-1 variables to the selection lines w.r.t. their corresponding sequence construct the truth table consider a pair of consecutive minterms starting from m0 determine the input lines Digital System Design April 20, 2019

Example II an example: F(A,B,C,D)=Σ(1,3,4,11,12,13,14,15) Digital System Design April 20, 2019

Demultiplexers Digital switches to connect data from one input source to one of n outputs. Usually implemented by using n-to-2n binary decoders where the decoder’s enable line is used for data input of the demultiplexer. 2X4 Decoder Select lines Input data (1bit) Enable One of four 1-bit outputs One of n Data Sources selected s bits Select b bits . Input Demux One of n outputs 1-bit 4-output demultiplexer using a 2x4 binary decoder. Digital System Design April 20, 2019

1-to-4 Demultiplexer demux Data D Outputs select S1 S0 Y0 = D.S1'.S0' 2x4 Decoder D S1 S0 Y0 = D.S1'.S0' Y1 = D.S1'.S0 Y2 = D.S1.S0' Y3 = D.S1.S0 E Digital System Design April 20, 2019

Mux-Demux Application Example This enables sharing a single communication line among a number of devices. At any time, only one source and one destination can use the communication line. Digital System Design April 20, 2019