Combinational Logic. Combinational Logic Design Process, Three State Buffers, Decoders, Multiplexers, Encoders, Demultiplexers, Other Considerations

Similar documents
(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Encoders. Lecture 23 5

Chapter 3 Combinational Logic Design

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Digital Electronics 8. Multiplexer & Demultiplexer

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

Analysis procedure. To obtain the output Boolean functions from a logic diagram, proceed as follows:

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Chapter 3 Digital Logic Structures

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

University of Technology

COMBINATIONAL CIRCUIT

Subject: Analog and Digital Electronics Code:15CS32

Combinational Logic Circuits. Combinational Logic

Unit 3. Logic Design

Combinational logic. ! Regular logic: multiplexers, decoders, LUTs and FPGAs. ! Switches, basic logic and truth tables, logic functions

Logic Design I (17.341) Fall Lecture Outline

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

Combinational Circuits: Multiplexers, Decoders, Programmable Logic Devices

Logic Circuit Design

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

Department of Electrical and Electronics Engineering Logic Circuits Laboratory EXPERIMENT-5 COMBINATIONAL LOGIC CIRCUITS

16 Multiplexers and De-multiplexers using gates and ICs. (74150, 74154)

UNIT III. Designing Combinatorial Circuits. Adders

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

TABLE 3-2 Truth Table for Code Converter Example

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam


LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

2 Building Blocks. There is often the need to compare two binary values.

SYNTHESIS OF COMBINATIONAL CIRCUITS

(a) (b) (c) (d) (e) (a) (b) (c) (d) (e)

UNIT-IV Combinational Logic

Combinational Logic Design CH002

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

CHW 261: Logic Design

Function Table of an Odd-Parity Generator Circuit

Course Overview. Course Overview

MSI Design Examples. Designing a circuit that adds three 4-bit numbers

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics

Laboratory Manual CS (P) Digital Systems Lab

Gates and Circuits 1

Digital. Design. R. Ananda Natarajan B C D

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER DENC 2532 ECADD

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 14 DATA TRANSFER

EECS 150 Homework 4 Solutions Fall 2008

Function Table of 74LS138, 3-to-8 Decoder +5V 6 G1 4 G2A 5 G2B. 4-to-16 Decoder using two 74LS139, 3-to-8 Decoder

Electronics. Digital Electronics

Topic Notes: Digital Logic

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Logic Symbols with Truth Tables INVERTER A B NAND A B C NOR C A B A B C XNOR A B C A B Digital Logic 1

Lab 2: Combinational Circuits Design

Positive and Negative Logic

Overview. This lab exercise requires. A windows computer running Xilinx WebPack A Digilent board. Contains material Digilent, Inc.

Digital Electronics. Functions of Combinational Logic

Digital Electronic Concepts

Formal Foundation of Digital Design

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

DIGITAL ELECTRONICS. Methods & diagrams : 1 Graph plotting : - Tables & analysis : - Questions & discussion : 6 Performance : 3

Chapter 3 Digital Logic Structures

The book has excellent descrip/ons of this topic. Please read the book before watching this lecture. The reading assignment is on the website.

De Morgan s second theorem: The complement of a product is equal to the sum of the complements.

SKP Engineering College

ECE 172 Digital Systems. Chapter 2 Digital Hardware. Herbert G. Mayer, PSU Status 6/30/2018

Combinational Logic. Prof.Manoj Kavedia ( )

Department of Electronics and Communication Engineering

Lecture 15 Analysis of Combinational Circuits

Gates and and Circuits

6.1 In this section, you will design (but NOT build) a circuit with 4 inputs,

FUNCTION OF COMBINATIONAL LOGIC CIRCUIT

Time: 3 hours Max. Marks: 70 Answer any FIVE questions All questions carry equal marks

Fan in: The number of inputs of a logic gate can handle.

CSCI "Decoders & Demultiplexers"

Elektrische Parameter Grundlagen der technischen Informatik

Digital Logic Design ELCT 201

Lecture 02: Digital Logic Review

Digital Fundamentals

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Solutions. ICS 151 Final. Q1 Q2 Q3 Q4 Total Credit Score. Instructions: Student ID. (Last Name) (First Name) Signature

ICS 151 Final. (Last Name) (First Name)

Subtractor Logic Schematic

The Non Inverting Buffer

Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #14

Chapter 1: Digital logic

EEE 301 Digital Electronics

SKP Engineering College

Multiple input gates. The AND gate

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Lecture 2: Digital Logic Basis

8.1. Unit 8. Fundamental Digital Building Blocks: Decoders & Multiplexers

Combinational Circuits DC-IV (Part I) Notes

4:Combinational logic circuits. 3 July

EECS-140/141 Introduction to Digital Logic Design Lecture 4:Simplification in Logic Synthesis

Unit 1 Foundations in Electronics - Lesson 1.1 Introduction to Electronics Standards Essential Question Enduring Understandings

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

Transcription:

Combinational Logic Combinational Logic Design Process, Three State Buffers, Decoders, Multiplexers, Encoders, Demultiplexers, Other Considerations Copyright (c) 2012 Sean Key

Combinational Logic Design Process 1. Capture the behavior 1. Original can be in the form of a truth table or equations ɢɢɢɢɢɢɢ 2. Convert to equations 3. Simplify if possible Using boolean algebra More complex methods will be presented later 2. Convert the behavior to a circuit

Combinational Logic Design Process Example Using the following truth table Determine the canonical sum of products equation Simplify the equation Draw the circuit ʺ챆 ɢ ABC F 000 1 001 0 010 0 011 0 100 0 101 0 110 1 111 1

Reverse Engineering a Circuit Just as you can create a circuit from an equation, you can create an equation from a circuit ɢ渚 ɢ Start at the output and work backwards This can be useful when optimizing a design trying to understand someone else s work.

Reverse Engineering Example Determine the equation for the following circuit: C B A ʺɢɢ NOT AND3 OR Z NOT AND3 NOT

More Complex Gates Three-State Buffer Decoder Encoder Multiplexer (Mux) Demux نɢ

Buffers A buffer is like an inverter, but does not invert the signal Buffers strengthen a signal to remove loss Can also be used to change between signal levels i.e. from a 3.3V HIGH to a 5V HIGH ʺɢɢ Three state buffers are special buffers that can drive a signal HIGH or LOW, but also to a third high impedance (aka. High Z) state to prevent the output from being driven. This allows for multiple circuits to drive a single output, BUT ONLY ONE AT A TIME. Multiple buffers driving an output may fight each other.

Three State Buffer F = A EN EN EN A F A F 0 0 Z ɢቆ 0 1 Z 1 0 0 1 1 1 Note: Any design using 3 state buffers must ensure that ONLY ONE buffer is driving the bus at a time.

Decoder Generally speaking, decoders are multiple input and multiple output devices that convert an input code into a different output code. ʺɢ鸀 Ϙ We will examine a binary decoder Binary Decoder converts n bit number to a 2 n output where only the output whose number matches the input code is a 1. All other outputs are 0. Can be thought of as a minterm or maxterm generator.

Simple 1:2 Binary Decoder If the input bit (I) is 0, output D0 is 1 NOT D0 output D1 is 0. If the input bit (I) is 1, ɢṆ I D1 output D0 is 0 output D1 is 1. I D1 D0

2:4 Decoder with Enable EN I1 I0 NOT NOT NOT NOT AND AND AND AND D0 = EN * I1' * I0' ʺɢ쿰Ϙ D1 = EN * I1' * I0 Most decoders contain an enabling input to allow or prevent a signal to pass AND AND AND AND D2 = EN * I1 * I0' D3 = EN * I1 * I0 When EN = 0, all outputs are 0

Using Decoders as Minterm Generators Any POS or SOP function can be implemented with a decoder Each input code corresponds with a line of the truth table. To implement a SOP, OR all decoder outputs that correspond with a 1 output in the truth table To implement a POS, negate the outputs that correspond with a 0 in the truth table and AND them together. Example: Using an 8 output decoder, implement the function F = ABC + AB C + A B C F = SUM(7, 5, 1) A B C I2 I1 I0 D7 D6 D5 D4 D3 3:8 Decoder OR3 F D2 D1 D0 Example 2: Using an 8 output decoder, implement the function F = (A +B +C) (A +B+C ) (A+B+C ) (A+B+C) By inverting all of the outputs, the decoder is made into a maxterm generator

Binary Decoder Questions How many output bits would be required for a binary decoder with 4 inputs? ʺ 鯰 Ϩ If the previously mentioned decoders input is set to 0101, what would the outputs be set to?

Encoder An encoder has the opposite function of a decoder. In general, encoders and decoders do the same thing convert one code to another. Decoders generally have more outputs than inputs. ɢマルク Encoders generally have fewer outputs than inputs. In the case of a binary encoder, a 2 n bit input code is converted to an n bit output code We assume that only one input is equal to 1 at a given time. What would happen if more than one input were 1? To solve this situation, we use priority encoders

Priority Encoder Priority encoders handle the case where more than one input is a 1 by assigning a priority to each input. The highest priority input with a 1 is treated as if it is the only input that is set to 1. ʺ D7 D6 D5 D4 D3 D2 D1 D0 E2 E1 E0

Priority Encoder Questions If a priority encoder has 32 inputs, how many outputs are required? ɢ 㽆 If an encoder has inputs I0 through I31, with the higher numbered input having higher priority, what would the output be if I8 = I4 = 1 and all other inputs are equal to 0?

Multiplexer Multiplexers are digital switches that select 1 of N inputs to be assigned to a single output. The value of the binary select signal determines which numbed input has it s value provided at the output. Often called a Mux A Mux can be implemented using standard gates or decoders combined with 3 state buffers ʺᑆ I3 I2 I1 I0 S1 S0 D S1 S0 D 0 0 I0 0 1 I1 1 0 I2 1 1 I3

Multiplexer Implementations 2:1 Mux 4:1 Mux I3 AND3 I1 I0 AND OR D ɢ 䡆 I2 I1 AND3 OR4 D S NOT AND AND3 I0 AND3 S1 NOT S0 NOT

4:1 Mux using Decoders and 3 State Buffers S1 S0 I1 I0 D3 D2 2:4 Decoder D1 D0 I3 ʺ I2 D I1 I0

Multiplexer examples How many select bits are required for a 8:1 mux? ɢ 呆 What is the output value of a mux that has inputs I15 (MSB) through I0 with the input value 0xB15F the select signal is set to 0x5? Build a 4:1 mux using 2:1 muxes.

Implementing simple functions with Multiplexers Muxes can also be used to implement simple logic functions Use function input bits as selects Wire MUX inputs to the ɢʘ output values of the truth table. Example 1: Implement the function F = A + B using a 4:1 mux Example: Implement the function F = A B + B C

Demultiplexer A Demultiplexer implements the opposite functionality of a Mux 1:M demux takes the one input value and assigns it to the output determined by the select signal. All other outputs are 0. 원 Ϝ I S0 S1 D3 D2 D1 D0

Active Low Inputs So far we have considered circuits that are active HIGH (logic 1) The circuit is considered to be turned on and doing it s intended purpose when the input is HIGH It is also possible to use negative logic with active low inputs The circuit is considered to be turned on and doing it s intended purpose when the input is LOW. Active low inputs are indicated by the use of an inversion bubble. 원 Ϝ I2 D7 I1 D6 I0 D5 D4 D3 D2 D1 D0 Active LOW decoder