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

Similar documents
Digital Electronics. Functions of Combinational Logic

Function Table of an Odd-Parity Generator Circuit

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

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

CHW 261: Logic Design

COMBINATIONAL CIRCUIT

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

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

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

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

Combinational Circuits DC-IV (Part I) Notes

Digital Electronics 8. Multiplexer & Demultiplexer

UNIT-IV Combinational Logic

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

Combinational Circuits: Multiplexers, Decoders, Programmable Logic Devices

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

Digital Fundamentals

Satish Chandra, Assistant Professor, P P N College, Kanpur 1

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

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

Digital Fundamentals 8/25/2016. Summary. Summary. Floyd. Chapter 1. Analog Quantities

Combinational Logic Circuits. Combinational Logic

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

EECS 150 Homework 4 Solutions Fall 2008

FUNCTION OF COMBINATIONAL LOGIC CIRCUIT

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.

Laboratory Manual CS (P) Digital Systems Lab

SYNTHESIS OF COMBINATIONAL CIRCUITS

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

Subject: Analog and Digital Electronics Code:15CS32

University of Technology

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

Unit 3. Logic Design

Encoders. Lecture 23 5

Practical Workbook Logic Design & Switching Theory

DELD UNIT 3. Question Option A Option B Option C Option D Correct Option A B C

Winter 14 EXAMINATION Subject Code: Model Answer P a g e 1/28

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

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

Digital Fundamentals

Chapter 3 Digital Logic Structures

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

TABLE 3-2 Truth Table for Code Converter Example

Data output signals May or may not be same a input signals

DIGITAL LOGIC COMPUTER SCIENCE

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

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

Logic Families. Describes Process used to implement devices Input and output structure of the device. Four general categories.

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

ELECTRONIC CIRCUITS. Time: Three Hours Maximum Marks: 100

Course Overview. Course Overview

In this lecture: Lecture 8: ROM & Programmable Logic Devices

EXPERIMENT NO 1 TRUTH TABLE (1)

Topic Notes: Digital Logic

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


Logic Design I (17.341) Fall Lecture Outline

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

05/11/2006. Lecture What does a computer do? Logic Manipulation. Data manipulation

UNIT III. Designing Combinatorial Circuits. Adders

Chapter 3 Combinational Logic Design

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

DO NOT COPY DO NOT COPY

Paper No. Name of the Paper Theory marks Practical marks Periods per week Semester-I I Semiconductor

Digital Fundamentals

EE 330 Lecture 5. Other Logic Styles. Improved Device Models. complex logic gates pass transistor logic

Electronics. Digital Electronics

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

EE 330 Lecture 5. Basic Logic Circuits Complete Logic Family Other Logic Styles. Improved Device Models. complex logic gates pass transistor logic

Chapter 5: Signal conversion

Exercise 1: AND/NAND Logic Functions

Digital Logic ircuits Circuits Fundamentals I Fundamentals I

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

Exercise 2: OR/NOR Logic Functions

I. Computational Logic and the Five Basic Logic Gates 1

S-[F] NPW-02 June All Syllabus B.Sc. [Electronics] Ist Year Semester-I & II.doc - 1 -

Combinational Logic. Prof.Manoj Kavedia ( )

Parallel in parallel out universal shift register

CS302 - Digital Logic Design Glossary By

ECE380 Digital Logic

COLLEGE OF ENGINEERING, NASIK

EE 330 Lecture 5. Other Logic Styles Improved Device Models Stick Diagrams

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

Digital. Design. R. Ananda Natarajan B C D

Schmitt Trigger Inputs, Decoders

JEFFERSON COLLEGE COURSE SYLLABUS ETC255 INTRODUCTION TO DIGITAL CIRCUITS. 6 Credit Hours. Prepared by: Dennis Eimer

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

Lab 2: Combinational Circuits Design

Lecture Topics ECE 341. Lecture # 4. Decoder. 2-to-4 Decoder Circuit

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

Classification of Digital Circuits

4:Combinational logic circuits. 3 July

Dr. Cahit Karakuş ANALOG SİNYALLER

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

Synthesis of Combinational Logic

CONTENTS Sl. No. Experiment Page No

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


Implementing Multipliers with Actel FPGAs

Transcription:

CS0 Digital Logic Design The XX8 -to-8 Decoder The -to-8, XX8 Decoder is also commonly used in logical circuits. Similar, to the -to- Decoder, the -to-8 Decoder has active-low outputs and three extra NOT gates connected at the three inputs to reduce the four unit load to a single unit load. The -to-8 Decoder has three enable inputs, one of the three enable inputs is active-high and the remaining two are active-low. ll three enable inputs have to be activated for the Decoder to work. The function table of the -to-8 decoder is presented. Table. nputs Outputs G G G C Y Y Y Y Y Y Y Y 0 0 X X X X X X X X X X X X X X X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Table. Function Table of LS8, -to-8 Decoder V C D G G G C Y0 Y Y Y Y 0 Y 9 Y Y enable G G G C Y0 Y Y Y Y 0 Y 9 Y Y Figure. -to- Decoder using two LS9, -to-8 Decoder Virtual University of Pakistan Page

CS0 Digital Logic Design The three enable inputs serve to implement to larger Decoders such as -to- and -to- by cascading two or four -to-8 Decoders respectively. The connection of two - to-8 Decoders is shown. Figure. The, and C inputs are connected directly to the, and C inputs of the two -to-8 Decoders. The D input is connected to the active-low and active-high enable inputs G and G of the two decoders respectively. The enable input selects/deselects bothe the decoders simultaneously. G and G enable inputs of the two Decoders are connected to v and Ground respectively. When the D input is 0, the upper decoder is selected and when D input is, the lower decoder is selected. The, and C inputs serve to select the appropriate output of either the upper or lower decoder. mplementing Standard SOP and POS oolean expressions The function table of -to-8 Decoder is a table of maxterms. For example, when the input,, C is 0, 0 and 0 the Y0 output is activated indicating the sum term or maxterm C. Similarly, the, and C inputs, 0 and activate the Y output indicating the presence of C sum term. The POS oolean expression represented by the -variable Karnaugh Map, figure., can be implemented by the -to-8 Decoder which uses an ND gate to implement the product of sum terms. Figure. \C 00 0 0 0 0 0 0 0 0 Figure. Karnaugh Map of oolean expression 0,,,, C V G Y0 G Y G Y Y Y Y 0 C C Y 9 Y Figure. mplementation of oolean expression 0,,,, C The -to-8 Decoder can also be used to mplement SOP expression by connecting the outputs of the Decoder to the input of a NND gate. Figure.. The alternate symbol for the three input NND gate is the three input OR gate with bubbles at the Virtual University of Pakistan Page

CS0 Digital Logic Design inputs. The three bubbles cancel out the three bubbles connected at the outputs Y, Y and Y representing the three minterms or product terms. Figure. mplementation of oolean expression,, C CD to -Segment Decoder CD to -Segmnet Decoder is a specific type of decoder that is used to convert a -bit CD Code to a -Segment Code. The CD to -Segment Decoder unlike the inary Decoders activates multiple but unique set of outputs for each -bit CD input combination. Earlier, the seven expressions for activating each of the seven segments were defined. Each of the seven oolean expressions can be implemented using a combination of NOT-ND-OR gates. The implementations for segments a, b and g are shown. Figure.a-c a C D D Figure.a mplementation of Segment a output Virtual University of Pakistan Page

CS0 Digital Logic Design b CD CD Figure.b mplementation of Segment b output g C CD C Figure.c mplementation of Segment g output MS Seven-Segment Decoder The -Segment Decoder circuit is available in MS form, LS. The C has - bit CD input CD and -bit active-low outputs for segments a, b, c, d, e, f and g. The Decoder also has three extra active-low inputs. LT: Lamp test R: Ripple lanking nput /RO: lanking nput/ripple lanking Output When a low is applied to the LT input and the /RO is high, all of the seven segments in the display are turned on to test that no segments are burned out. The Ripple lanking nput and The lanking nput/ripple lanking Outputs are used to prevent display of leading and trailing zeros. CD-to-Decimal Decoder The operation of the CD-to-Decimal Decoder is the same as a inary -to- decoder, the only difference being that the CD-to-Decimal Decoder has ten output pins instead of sixteen and the input is a valid CD number. Thus invalid CD codes 00, 0, 00, 0, 0 and applied at the input of the Decoder do not activate any of the ten outputs. The commercially available MS, CD-to-Decimal Decoder is the LS, which has active-high inputs and active-low outputs. Virtual University of Pakistan Page

CS0 Digital Logic Design Encoder n Encoder functional device performs an operation which is the opposite of the Decoder function. The Encoder accepts an active level at one of its inputs and at its output generates a CD or inary output representing the selected input. There are various types of Encoders that are used in Combinational Logic Circuits. inary Encoder The simplest of the Encoders are the n -to-n Encoders. The functional table and the circuit diagram of an 8-to- inary Encoder are shown in table. and figure. respectively. nput Output 0 O O O 0 X 0 0 0 0 0 0 0 0 0 0 X 0 0 0 0 0 0 0 0 X 0 0 0 0 0 0 0 0 X 0 0 0 0 0 0 0 X 0 0 0 0 0 0 0 0 X 0 0 0 0 0 0 0 X 0 0 0 0 0 0 0 X 0 0 0 0 0 0 Table. Function Table of an 8-to- Encoder 0 O 0 O O Figure. 8-to- Encoder The inputs and the outputs of the 8-to- Encoder are shown to be active-high. The 0 is shown to be unconnected to any gate or output. Thus, if all inputs are inactive low, Virtual University of Pakistan Page

CS0 Digital Logic Design Virtual University of Pakistan Page 8 or the 0 input is high the output is 000. The appropriate -bit output combination is activated for every input that is asserted by connecting it to logic high. The inary encoder has a drawback when more than one input is activated. Consider that the inputs and are activated simultaneously by applying logic at the two inputs. This results in the outputs 0 and 0 for the two inputs respectively. Thus all three output pins are at logic. Priority Encoders Priority Encoders remove the problem highlighted earlier with simple inary Encoders. Priority Encoders have necessary logic to activate the outputs corresponding to the highest Priority input when multiple inputs are asserted simultaneously. oolean expressions for the three outputs O, O and O 0 of an 8-to- Priority Encoder are can be written in terms of variables. O O 0 O where 0 0 O O 0 O

CS0 Digital Logic Design The MS, XX8 8-input Priority has a circuit implemented based on the oolean expression for outputs O 0, O and O. The function table of the 8-inpuy Priority Encoder is presented. Table. nputs Outputs E 0 0 GS EO X X X X X X X X 0 X X X X X X X 0 0 0 0 0 0 X X X X X X 0 0 0 0 0 X X X X X 0 0 0 0 0 X X X X 0 0 0 0 X X X 0 0 0 0 0 X X 0 0 0 0 X 0 0 0 0 0 0 0 0 Table. Function Table of an 8-nput Priority Encoder Cascading Priority Encoders The XX8 Priority Encoder has active-low inputs and active-low outputs. The Encoder also has an active-low enable input E which enables or disables the outputs. The Group Select GS active-low output is asserted when any one of the inputs is asserted. The Enable output EO signal is used to cascade multiple Encoders to form larger Encoders. The EO output is connected to the E input of the Encoder which handles lower priority inputs. Two 8-input are shown connected together to form a -input Priority Encoder. Figure. Figure. 8-input Priority Encoders connected to form a -input Priority Encoder Virtual University of Pakistan Page 9

CS0 Digital Logic Design Decimal-to-CD Encoder The Decimal-to-CD Encoder has ten inputs, for the decimal digits 0 to 9 and four outputs corresponding to the -bit CD output. The LS is a Decimal-to-CD Priority Encoder which has active-low input and outputs. The Decimal-to-CD Priority Encoder is used as a keypad encoder. telephone keypad has digits 0 to 9. The keypad is connected to the encoder through pull-up resistors that ensure that the inputs to the encoder are logic high when none of the keypad keys is pressed. When ever a key is pressed the appropriate input of the encoder is connected to logic low and at the output the corresponding CD code is generated. Figure.8 Figure.8 Keypad Encoder Virtual University of Pakistan Page 80

CS0 Digital Logic Design Multiplexer Multiplexer is a digital switch that has several inputs and a single output. The Multiplexer also has select inputs that allow any one of the multiple inputs can be selected to be connected to the output. Multiplexers are also known as Data Selectors. The main use of the Multiplexer is to select data from multiple sources and to route it to a single Destination. n a computer, the LU combinational circuit has two inputs to allow arithmetic operations to be performed on two quantities. The two quantities are usually stored in different set of registers. The inputs of the two multiplexers are connected to the output of each of the multiple registers. The outputs of the two multiplexers are connected to the two inputs of the LUs. The Multiplexers are used to route the contents of any two registers to the LU inputs. Multiplexers are available in different configurations. The -to- Multiplexer circuit is shown. Figure.9, the function table of the Multiplexer is presented. Table. Figure.9 -to- Multiplexer Select nputs Output S S 0 Z 0 0 0 0 0 Table. Function table of -to- Multiplexer Virtual University of Pakistan Page 8

CS0 Digital Logic Design When the Select input are set to 00, the first ND gate at the top is enabled allowing the logic high or low applied at input 0 to be routed through the OR gate to the output Z. Similarly, when the Select input is set to 0 the third gate is enabled allowing the logic value applied at the input to be routed through the OR gate to the output Z.. Dual -nput Multiplexer Commercial available -input Multiplexer is the XX C which has two - input multiplexers. The two select inputs of the two -input multiplexers are common, however each multiplexer has a separate enable input which allows the two multiplexers to be separately controlled. The circuit diagram of the dual -input multiplexers is shown. Figure.0 G C0 C Y C C G C0 C Y C C Figure.0 Dual, -input Multiplexer oth the -input Multiplexers have active-high inputs and outputs. The first Multiplexer has the inputs C0, C, C and C and the output Y. The multiplexer has an active-low enable signal defined by G. The select inputs are defined by and which are both active-high. Two extra NOT gates are connected at the select inputs to reduce the unit load from each to one. Similar to the -input Multiplexer discussed earlier, the select input lines enable one of the four ND gates and allow the Virtual University of Pakistan Page 8

CS0 Digital Logic Design corresponding input logic value to be routed to the output through the OR gate. The second -input Multiplexer is identical it has active-high inputs defined by C0, C, C and C and an active-high output defined by Y. The multiplexer has an independent active-low enable signal that enables/disables the four ND gates. The select inputs and controlling the first multiplexer also control the second multiplexer. Virtual University of Pakistan Page 8