ELCT201: DIGITAL LOGIC DESIGN

Similar documents
ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Logic. Combinational. inputs. outputs. the result. system can

Systems I: Computer Organization and Architecture

COMBINATIONAL LOGIC FUNCTIONS

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

ENGIN 112 Intro to Electrical and Computer Engineering

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Combinational Logic. Jee-Hwan Ryu. School of Mechanical Engineering Korea University of Technology and Education

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

MODULAR CIRCUITS CHAPTER 7

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

Combinational Logic. By : Ali Mustafa

CHAPTER1: Digital Logic Circuits Combination Circuits

Digital System Design Combinational Logic. Assoc. Prof. Pradondet Nilagupta

Combinational Logic Design Combinational Functions and Circuits

CprE 281: Digital Logic

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

DE58/DC58 LOGIC DESIGN DEC 2014

Chapter 3 Ctd: Combinational Functions and Circuits

Philadelphia University Student Name: Student Number:

Slides for Lecture 19

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

Boolean Algebra, Gates and Circuits

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

ELCT201: DIGITAL LOGIC DESIGN

Design of Sequential Circuits

CSE 140 Lecture 11 Standard Combinational Modules. CK Cheng and Diba Mirza CSE Dept. UC San Diego

Boolean Logic Continued Prof. James L. Frankel Harvard University

Digital Logic Design ENEE x. Lecture 14


Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

Fundamentals of Digital Design

Review: Additional Boolean operations

Lecture 2 Review on Digital Logic (Part 1)

Sample Test Paper - I

CSC9R6 Computer Design. Practical Digital Logic

CHAPTER VI COMBINATIONAL LOGIC BUILDING BLOCKS

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Class Website:

CprE 281: Digital Logic

Lecture 7: Logic design. Combinational logic circuits

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

COSC3330 Computer Architecture Lecture 2. Combinational Logic

COMBINATIONAL CIRCUITS

Show that the dual of the exclusive-or is equal to its compliment. 7

CprE 281: Digital Logic

ECE 2300 Digital Logic & Computer Organization

UNIT III Design of Combinational Logic Circuits. Department of Computer Science SRM UNIVERSITY

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

DIGITAL LOGIC CIRCUITS

Hardware Design I Chap. 4 Representative combinational logic

Review for Test 1 : Ch1 5

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Combina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

Computer organization

Chapter 3 Combinational Logic Design

211: Computer Architecture Summer 2016

Chapter 7 Logic Circuits

Logic Design Combinational Circuits. Digital Computer Design

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

University of Toronto Faculty of Applied Science and Engineering Final Examination

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Logic and Computer Design Fundamentals. Chapter 8 Sequencing and Control

CPE100: Digital Logic Design I

Chapter 4 (Lect 4) Encoders Multiplexers Three-State Gates More Verilog

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

Slide Set 6. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Philadelphia University Student Name: Student Number:

Combinational Logic. Course Instructor Mohammed Abdul kader

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

MC9211 Computer Organization

UNIVERSITY OF WISCONSIN MADISON

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

3. Combinational Circuit Design

Function of Combinational Logic ENT263

ECE 341. Lecture # 3

CHAPTER VI COMBINATIONAL LOGIC BUILDING BLOCKS

INSTITUTEOFAERONAUTICALENGINEERING (Autonomous) Dundigal, Hyderabad

CSE370 HW3 Solutions (Winter 2010)

Computer Science Final Examination Friday December 14 th 2001

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Contents. Chapter 3 Combinational Circuits Page 1 of 36

Software Engineering 2DA4. Slides 8: Multiplexors and More

Numbers and Arithmetic

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Transcription:

ELCT201: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 5 Following the slides of Dr. Ahmed H. Madian ذو الحجة 1438 ه Winter 2017

COURSE OUTLINE 1. Introduction 2. Gate-Level Minimization 3. Combinational Logic 4. Synchronous Sequential Logic 5. Registers and Counters 6. Memories and Programmable Logic 2

LECTURE OUTLINE Combinational Logic Circuits Decoders Encoders Multiplexers Tri-state Buffers 3

DECODERS A Decoder is a combinational circuit that converts binary information from n input lines to a maximum of 2 n unique output lines If the n bit coded information has unused combinations, the decoder may have fewer than 2 n outputs Consider a vending machine that takes 3 bits as input and releases a single product, out of the available 8 product sorts Input pad Vending Machine Output select line 4

DECODERS It is required to design a combinational circuit with two inputs (a, b) and four outputs (D 0, D 1, D 2, D 3 ), such that: D 0 = 1 when a = 0 and b = 0 D 1 = 1 when a = 0 and b = 1 D 2 = 1 when a = 1 and b = 0 D 3 = 1 when a = 1 and b = 1 5

DECODERS Solution 1. From the specifications of the circuit, determine the required number of inputs and outputs and assign a letter (symbol) to each a b 2 4 Decoder D 0 D 1 D 2 D 3 6

DECODERS 2. Derive the truth table that defines the required relationship between the inputs and outputs Inputs Outputs a b D 0 D 1 D 2 D 3 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 1 1 0 0 0 1 7

DECODERS 3. Obtain the simplified Boolean functions for each output as a function of the input variables D 0 = a b D 1 = a b D 2 = ab D 3 = ab 4. Sketch the logic diagram b a D 0 D 1 D 2 D 3 8

D 0 = x y z 3 8 DECODER A 3 8 line decoder decodes 3 input bits into one of 8 possible outputs Each output represents one of the minterms of the 3 input variables y x z D 1 = x y z D 2 = x yz D 3 = x yz D 4 = xy z D 5 = xy z D 6 = xyz D 7 = xyz 9

2 4 DECODER A decoder could include an Enable input to control the circuit operation A decoder could be implemented with NAND gates and thus produces the minterms in their complemented form A B E D 0 D 1 D 2 D 3 10

IMPLEMENTING FUNCTIONS USING DECODERS Any combinational circuit can be constructed using decoders and OR gates (the decoder generates the minterms and the OR gate perform the summation) Example: Implement a full adder circuit with a decoder and two OR gates Full adder equations: S x, y, z C x, y, z = Σm(1,2,4,7) and = Σm(3,5,6,7) Since there are 3 inputs, we need a 3 8 decoder 11

IMPLEMENTING FUNCTIONS USING DECODERS S x, y, z = Σm(1,2,4,7) and Inputs Outputs C x, y, z = Σm(3,5,6,7) x y z C S 0 0 0 0 0 0 0 1 0 1 x S 0 1 0 0 1 0 1 1 1 0 y 1 0 0 0 1 z C 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 12

DECODER EXPANSIONS Larger decoders can be constructed using a number of smaller ones For example, a 3 8 decoder can be built using a couple of 2 4 decoders and a 4 16 decoder can be built using a couple of 3 8 decoders x y z w D 0 to D 7 D 8 to D 15 4 16 Decoder 13

ENCODERS An 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 lines generate the binary equivalent of the input line whose value is 1 14

(8 3) OCTAL-TO-BINARY ENCODER 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 What happens if more than one input is active (set to HIGH) at the same time? For example, D 3 and D 6? What happens if all inputs are equal to 0? 15

(8 3) OCTAL-TO-BINARY ENCODER What happens if more than one input is active (set to HIGH) at the same time? For example, D 3 and D 6? If D 3 and D 6 are active simultaneously, the output would be (111) 2 = (7) 10, because all three outputs would be equal to 1 But this does not reflect the actual input which should have resulted in an output of(011) 2 = (3) 10 for D 3 or (110) 2 = (6) 10 for D 6 To overcome this problem, we use priority encoders If we establish a higher priority for inputs with higher subscript numbers, and if both D 3 and D 6 are active at the same time, the output would be (110) 2 because D 6 has higher priority than D 3 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 16

(8 3) OCTAL-TO-BINARY ENCODER What happens if all inputs are equal to 0? The encoder output would be (000) 2, but in fact this is the output when D 0 is equal to 1 This problem can be solved by providing an extra output to indicate whether at least one input is equal to 1 v is the valid output D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 z y x v 17

MAKING CONNECTIONS Direct point-to-point connections between gates are made up of wires Routing one of many inputs to a single output is carried out using a multiplexer Routing a single input to one of many outputs is carried out using a demultiplexer Control Control Multiplexer Demultiplexer 18

MULTIPLEXERS A multiplexer is used to connect 2 n points to a single point The control signal pattern forms the binary index of the input to be connected to the output A Z 0 I 0 1 I 1 I 0 I 1 Z = A I 0 + AI 1 2 1 MUX Z I 1 I 0 A Z 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 Functional form A Logical form 19

MULTIPLEXERS I 0 I 1 2 1 MUX A Z I 0 I 1 I 2 I 3 4 1 MUX A B Z I 0 I 1 I 2 I 3 I 4 I 5 I 6 8 1 MUX Z I 7 A B C 20

2 1 LINE MULTIPLEXER I 0 I 1 Z I 0 I 1 Z S S 21

4 1 LINE MULTIPLEXER I 0 S 0 S 0 Z 0 0 I 0 0 1 I 1 I 1 I 2 Z 1 0 I 2 1 1 I 3 I 3 Functional form S 0 S 1 Can you sketch the logic diagram of an 8 1 multiplexer? 22

MULTIPLEXERS AS GENERAL-PURPOSE LOGIC A 2 n 1 : 1 multiplexer can implement any function of n variables Steps: 1. The Boolean function is listed in a truth table 2. The first n 1 variables in the table are applied to the selection inputs of the MUX 3. For each combination of the selection variables, evaluate the output as a function of the last variable 4. The values are then applied to the data inputs in the proper order 23

MULTIPLEXERS AS GENERAL-PURPOSE LOGIC: EXAMPLE I F x, y, z = Σ(1,2,6,7) y x z z 0 1 F 24

MULTIPLEXERS AS GENERAL-PURPOSE LOGIC: EXAMPLE II F A, B, C, D = Σ(1,3,4,11,12,13,14,15) C B A D F 0 1 25

THREE-STATE BUFFERS (TRI-STATE BUFFERS) These are digital circuits that exhibit three states Two of these states are logic 0 and logic 1 The third state is a high-impedance state in which: 1. The logic behaves like an open circuit 2. The circuit has no logic significance 3. The circuit connected to the output of the threestate gate is not affected by the inputs to the gate 26

MULTIPLEXERS USING THREE-STATE BUFFERS I 0 Y I 1 A Y I 2 B I 3 Select Select Enable 2 1 line MUX 4 1 line MUX 27

ASSIGNMENT 1 Deadline of assignment 1 is Tuesday the 17 th of October, 2017. 28