Chapter 3 Combinational Logic Design

Similar documents
Encoders. Lecture 23 5

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

Unit 3. Logic Design

Digital Electronics 8. Multiplexer & Demultiplexer

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

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

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)

UNIT III. Designing Combinatorial Circuits. Adders

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

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

COMBINATIONAL CIRCUIT

Combinational Circuits: Multiplexers, Decoders, Programmable Logic Devices


Combinational Circuits DC-IV (Part I) Notes

Project Part 1 A. The task was to design a 4 to 1 multiplexer that uses 8 bit buses on the inputs with an output of a single 8 bit bus.

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

Combinational Logic Circuits. Combinational Logic

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

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

TABLE 3-2 Truth Table for Code Converter Example

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

Lecture 02: Digital Logic Review

CHW 261: Logic Design

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

Logic Circuit Design

Chapter 3 Digital Logic Structures

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

Chapter 3 Digital Logic Structures

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 14 DATA TRANSFER

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

EXPERIMENT NO 1 TRUTH TABLE (1)

4:Combinational logic circuits. 3 July

Digital Electronics. Functions of Combinational Logic

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.

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

Classification of Digital Circuits

7.1. Unit 7. Fundamental Digital Building Blocks: Decoders & Multiplexers

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

CSCI "Decoders & Demultiplexers"

COMPUTER TECHNOLOGY 2015/2016 Exercises. Unit 7

EE19D Digital Electronics. Lecture 1: General Introduction

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Laboratory Manual CS (P) Digital Systems Lab

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

CS302 - Digital Logic Design Glossary By

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

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

Digital Logic Design ELCT 201

Timing and Power Optimization Using Mixed- Dynamic-Static CMOS

DO NOT COPY DO NOT COPY

Digital Electronic Concepts

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

BEE 2233 Digital Electronics. Chapter 1: Introduction

Logic and Computer Design Fundamentals. Chapter 6 Selected Design Topics. Part 1 The Design Space

Department of Electronics and Communication Engineering

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

2-BIT MAGNITUDE COMPARATOR DESIGN USING DIFFERENT LOGIC STYLES

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

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

7.1. Unit 7. Fundamental Digital Building Blocks: Decoders & Multiplexers

Combinational Logic Design CH002

Propagation Delay, Circuit Timing & Adder Design. ECE 152A Winter 2012

Propagation Delay, Circuit Timing & Adder Design

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

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

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

Integrated Circuit: Classification:

Subtractor Logic Schematic

12-nm Novel Topologies of LPHP: Low-Power High- Performance 2 4 and 4 16 Mixed-Logic Line Decoders

Syllabus: Digital Electronics (DE) (Project Lead The Way)

University of Technology

Gates and Circuits 1

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

COLLEGE OF ENGINEERING, NASIK

Multiple input gates. The AND gate

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

Computer Architecture and Organization:

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

Practical Workbook Logic Design & Switching Theory

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

DIGITAL LOGIC CIRCUITS

Topic Notes: Digital Logic

UNIT-IV Combinational Logic

Electrical, Electronic and Communications Engineering Technology/Technician CIP Task Grid

Logic Design I (17.341) Fall Lecture Outline

Chapter 3. H/w s/w interface. hardware software Vijaykumar ECE495K Lecture Notes: Chapter 3 1

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

CMOS Digital Logic Design with Verilog. Chapter1 Digital IC Design &Technology

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

DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING

A Simulation Study of an Elevator Control System using Digital Logic

Digital Integrated CircuitDesign

A 2-bit/step SAR ADC structure with one radix-4 DAC

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

Basic Characteristics of Digital ICs

ELECTROVATE. Electromania Problem Statement Discussion

Aim. Lecture 1: Overview Digital Concepts. Objectives. 15 Lectures

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

Elektrische Parameter Grundlagen der technischen Informatik

Transcription:

Logic and Computer Design Fundamentals Chapter 3 Combinational Logic Design Part 2 Combinational Logic

Overview Part -Implementation Technology and Logic Design Design Concepts Fundamental concepts of design Design Procedure The major design steps: specification, formulation, optimization, technology mapping, and verification Technology Mapping From AND, OR, and NOT to other gate types Verification Does the designed circuit meet the specifications? Chapter 3-p2 IT32 2

Overview Part 2 Combinational Logic Functions and functional blocks Rudimentary logic functions Decoding Encoding Selecting Chapter 3-p2 IT32 3

Functions and Functional Blocks The functions considered are those found to be very useful in design. Corresponding to each of the functions is a combinational circuit implementation called a functional block. In the past, many functional blocks were implemented as SSI, MSI, and LSI circuits. Today, they are often simply parts within a VLSI circuits. Chapter 3-p2 IT32 4

Rudimentary Logic Functions Value fixing, transferring, inverting and enabling are the most elementary of combinational logic functions. Can be used on the inputs to functional blocks to implement other than the block s intended function Chapter 3-p2 IT32 5

Value fixing, transferring, and inverting functions Functions of a single variable X X F = F = X F = X F = V CC V DD F = F = X (c) F = X F = F = X F = X (a) (b) (d) Chapter 3-p2 IT32 6

Enabling Function Enabling permits an input signal to pass through to an output Disabling blocks an input signal from passing through to an output, replacing it with a fixed value The value on the output when it is disable can be, or Hi-Z (as for three-state buffers). a) When disabled, output b) When disabled, output X EN (a) F EN X F Chapter 3-p2 IT32 7 (b)

Decoders Convert binary information from n input lines to (max. of) 2 n output lines. Known as n-to-m-line decoder, or simply n:m or nxm decoder (m <= 2 n ). A n-to- 2 n decoder uses its n-bit input to determine which of 2 n outputs will be uniquely activated. Generate 2 n (or fewer) minterms of n input variables. Chapter 3-p2 IT32 8

Decoders Example: if codes,,, are used to identify four light bulbs, we may use a 2-bit decoder: 2-bit code X Y 2x4 Dec F F F 2 F 3 Bulb Bulb Bulb 2 Bulb 3 This is a 2x4 decoder which selects an output line based on the 2-bit code supplied. Truth table: X Y F F F 2 F 3 Chapter 3-p2 IT32 9

Decoders From truth table, circuit for 2x4 decoder is: X Y F F F 2 F 3 Note: Each output is a 2-variable minterm (X'Y', X'Y, XY' or XY) F = X'Y' F = X'Y F 2 = XY' F 3 = XY X Y Chapter 3-p2 IT32

Decoder Examples -to-2-line Decoder Chapter 3-p2 IT32

Decoder Examples 2-to-4-Line Decoder Note that the 2-4-line made up of 2 -to-2- line decoders and 4 AND gates. Chapter 3-p2 IT32 2

Decoders Design a 3x8 decoder. x y z F F F 2 F 3 F 4 F 5 F 6 F 7 F = x'y'z' F = x'y'z F 2 = x'yz' F 3 = x'yz F 4 = xy'z' F 5 = xy'z F 6 = xyz' F 7 = xyz x y z Chapter 3-p2 IT32 3

Decoders In general, for an n-bit code, a decoder could select up to 2 n lines: n-bit code n to 2 n : decoder : up to 2 n output lines Chapter 3-p2 IT32 4

Decoder with Enable In general, attach m-enabling circuits to the outputs See truth table below for function Note use of X s to denote both and Combination containing two X s represent four binary combinations Alternatively, can be viewed as distributing value of signal EN to EN of 4 outputs In this case, called a demultiplexer A A D EN A A D D D 2 D 3 D X X D 2 D 3 (a) (b) Chapter 3-p2 IT32 5

Decoder with Enable Design a 3x8 decoder. E x y z F F F 2 F 3 F 4 F 5 F 6 F 7 x x x F = x'y'z' F = x'y'z F 2 = x'yz' F 3 = x'yz F 4 = xy'z' F 5 = xy'z Enabel (E) F 6 = xyz' F 7 = xyz x y z Chapter 3-p2 IT32 6

Decoder Expansion Another way to design a decoder is to break it into smaller pieces. Notice some patterns in the table below: When S2 =, outputs Q-Q3are generated as in a 2-to-4 decoder. When S2 =, outputs Q4-Q7are generated as in a 2-to-4 decoder. Chapter 3-p2 IT32 7

Decoder Expansion Here s a 3-to-8 decoder built from two smaller 2-to-4 decoders. When S2=, the bottom 2-to-4 decoder is enabled and generates a for one of outputs Q, Q, Q2or Q3. When S2=, the top 2-to-4 decoder is enabled instead, and a will be output for either Q4, Q5, Q6or Q7. Chapter 3-p2 IT32 8

Decoder Expansion Activity Chapter 3-p2 IT32 9

Encoding Encoding - the opposite of decoding - the conversion of an m-bit input code to a n-bit output code with n m 2 n such that each valid code word produces a unique output code Circuits that perform encoding are called encoders An encoder has 2 n (or fewer) input lines and n output lines which generate the binary code corresponding to the input values Typically, an encoder converts a code containing exactly one bit that is to a binary code corresponding to the position in which the appears. Chapter 3-p2 IT32 2

Octal-to-Binary Encoder A = D + D3 + D5 + D7 A= D2 + D3 + D6 + D7 A2= D4 + D5 + D6 + D7 Chapter 3-p2 IT32 2

Octal-to-Binary Encoder Chapter 3-p2 IT32 22

Selecting Selecting of data or information is a critical function in digital systems and computers Circuits that perform selecting have: A set of information inputs from which the selection is made A single output A set of control lines for making the selection Logic circuits that perform selecting are called multiplexers Selecting can also be done by three-state logic Chapter 3-p2 IT32 23

Multiplexers A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has n control inputs (S n -, S ) called selection inputs, 2 n information inputs (I 2 n -, I ), and one output Y A multiplexer can be designed to have m information inputs with m < 2 n as well as n selection inputs Chapter 3-p2 IT32 24

2-to--Line Multiplexer Since 2 = 2, n = The single selection variable S has two values: S = selects input I S = selects input I Truth Table The equation: Y = S I + SI Chapter 3-p2 IT32 25

2-to--Line Multiplexer The equation: Y = SI + SI The circuit: Decoder Enabling Circuits Note the regions of the multiplexer circuit shown: S -to-2-line Decoder 2 Enabling circuits 2-input OR gate I I Y Chapter 3-p2 IT32 26

2-to--Line Multiplexer (continued) To obtain a basis for multiplexer expansion, we combine the Enabling circuits and OR gate into a 2 2 AND- OR circuit: -to-2-line decoder 2 2 AND-OR In general, for an 2 n -to--line multiplexer: n-to-2 n -line decoder 2 n 2 AND-OR Chapter 3-p2 IT32 27

Example: 4-to--line Multiplexer 2-to-2 2 -line decoder 2 2 2 AND-OR Condensed Truth Table Chapter 3-p2 IT32 28

Multiplexer Width Expansion Some IC packages have a few multiplexers in each package. The selection and enable inputs are common to all multiplexers within the package. Select vectors of bits instead of bits Chapter 3-p2 IT32 29

Multiplexer Width Expansion A A A2 A3 Y Y Y2 Y3 S (select) E (enable) B B B2 B3 E S Output Y X all s select A select B Quadruple 2: multiplexer Chapter 3-p2 IT32 3

Three-State Implementation Chapter 3-p2 IT32 3

Larger Multiplexers Larger multiplexers can be constructed from smaller ones. An 8-to- multiplexer can be constructed from smaller multiplexers like this (note placement of selector lines): I I I2 I3 I4 I5 I6 I7 4: MUX S S 4: MUX 2: MUX S2 Y S 2 S S Y I I I 2 I 3 I 4 I 5 I 6 I 7 S S Chapter 3-p2 IT32 32

Summary Decoder: For each possible input condition, one and only one output signal will be at logic n-to-2 n decoder is simply a minterm generator, with output corresponding to exactly one minterm. Encoders: Assign a unique output code (a binary number) for each input signal applied to the device Opposite of the decoder Chapter 3-p2 IT32 33

Summary Demultiplexer: Connects a single input line to one of n output lines, the specific output being determined by a selection code Multiplexers: Connects a single output line to one of n input lines, the specific input being determined by a selection code. Chapter 3-p2 IT32 34