Chapter 3 Combinational Logic Design

Similar documents
Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Combinational Logic. By : Ali Mustafa

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MINI TERMS AND MAX TERMS

Systems I: Computer Organization and Architecture

Chapter 2 Combinational Logic Circuits

EEE130 Digital Electronics I Lecture #4

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

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

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Lecture 2 Review on Digital Logic (Part 1)

COMBINATIONAL LOGIC FUNCTIONS

Chapter 2 Combinational Logic Circuits

CHAPTER1: Digital Logic Circuits Combination Circuits

Review: Additional Boolean operations

Chapter 2: Switching Algebra and Logic Circuits

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Sample Test Paper - I

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Logic Gate Level. Part 2

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

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

Computer organization

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

The course web site s notes entitled Switches, Gates and Circuits which can be found at will be useful to you throughout the lab.

Combinational Logic. Review of Combinational Logic 1

Experiment 7: Magnitude comparators

Exclusive OR/ Exclusive NOR

MC9211 Computer Organization

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Mealy & Moore Machines

Building a Computer Adder

MODULAR CIRCUITS CHAPTER 7

Combinational Logic. Course Instructor Mohammed Abdul kader

Lecture 3: Boolean Algebra

Exam for Physics 4051, October 31, 2008

Unit 3 Session - 9 Data-Processing Circuits

Unit 2 Session - 6 Combinational Logic Circuits

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

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

Boolean Logic Continued Prof. James L. Frankel Harvard University

Chapter 2 Combinational Logic Circuits

Digital Logic Design ABC. Representing Logic Operations. Dr. Kenneth Wong. Determining output level from a diagram. Laws of Boolean Algebra

Digital Logic (2) Boolean Algebra

Chapter 3 Combinational Logic Design

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Why digital? Overview. Number Systems. Binary to Decimal conversion

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

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

CS 226: Digital Logic Design

211: Computer Architecture Summer 2016

Chapter 7 Logic Circuits

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

CPE100: Digital Logic Design I

CHAPTER 7. Exercises 17/ / /2 2 0

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Circuits & Boolean algebra.

Signals and Systems Digital Logic System

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

UNIT 1. BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Cs302 Quiz for MID TERM Exam Solved

Fundamentals of Digital Design

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

of Digital Electronics

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Logic Gates - Introduction

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

CPE100: Digital Logic Design I

Boolean Logic Prof. James L. Frankel Harvard University. Version of 3:20 PM 29-Aug-2017 Copyright 2017, 2016 James L. Frankel. All rights reserved.

CSE 140 Midterm I - Solution

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Function of Combinational Logic ENT263

Computer Organization: Boolean Logic

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

Combinational Logic Design Combinational Functions and Circuits

T02 Tutorial Slides for Week 6

ELCT201: DIGITAL LOGIC DESIGN

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

Floating Point Representation and Digital Logic. Lecture 11 CS301

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Combinational Logic Design/Circuits

ENGR 303 Introduction to Logic Design Lecture 3. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

Lecture 7: Logic design. Combinational logic circuits

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

1.10 (a) Function of AND, OR, NOT, NAND & NOR Logic gates and their input/output.

Latches. October 13, 2003 Latches 1

Logic Design Combinational Circuits. Digital Computer Design

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

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

CSC9R6 Computer Design. Practical Digital Logic

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

Transcription:

Logic and Computer Design Fundamentals Chapter 3 Combinational Logic Design Part 1- Implementation Technology and Logic Design

Overview Part 1-Implementation Technology and Logic Design Design Concepts Fundamental concepts of 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 - Part 1 IT321 2

Overview Part 2 Combinational Logic Rudimentary logic functions Decoding Encoding Selecting Chapter 3 - Part 1 IT321 3

Combinational Circuit A combinational logic circuit has: A set of n Boolean inputs, A set of m Boolean outputs, and Logic gates and interconnections Block Diagram of Combinational Circuit Chapter 3 - Part 1 IT321 4

Combinational Circuit The combinational circuit can be described by: Truth table that lists the output values for each of combination of the input variables m Boolean functions, one for each output variable. Each functioned is expressed as a function of n input variables Chapter 3 - Part 1 IT321 5

Analysing Logic Circuit When a logic circuit is provided, we can analyse the circuit to obtain the logic expression. Example: What is the Boolean expression of F4? A' A'B' B' C A'B'+C (A'B'+C)' F4 F4 = (A'B'+C)' = (A+B).C' Chapter 3 - Part 1 IT321 6

Designing circuits The goal in circuit design is to build hardware that solves some problem. The basic approach is to express the solution as a Boolean function, which can then be converted to a circuit. Chapter 3 - Part 1 IT321 7

Design Procedure 1. Specification make sure you completely understand all the design requirements 2. Formulation Figure out how many inputs and outputs you need. Assign letter symbols to the input and output variables Derive a truth table or initial Boolean equations that define the required relationships between the inputs and outputs. Chapter 3 - Part 1 IT321 8

Design Procedure-continued 3. Optimization Find a simplified Boolean expression for the function. Draw a logic diagram using ANDs, ORs, and inverters Chapter 3 - Part 1 IT321 9

Design Procedure-continued 4. Technology Mapping Map the logic diagram to the implementation technology selected 5. Verification Verify the correctness of the final design Chapter 3 - Part 1 IT321 10

EXAMPLE PROBLEM: Design a combinational circuit with 3 inputs (a, b, c) and 1 output, f such that: f is 1 when all 3 inputs are 1, or f is 1 when a is 1 and either b or c is 1, or f is 1 when all three inputs are 0 Chapter 3 - Part 1 IT321 11

Create a Truth Table List all possible inputs and outputs: F is one when: all three inputs are 1 A is 1 and either B or C is 1 all three inputs are 0 A B C F 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 F is zero for all other inputs 1 Chapter 3 - Part 1 IT321 12

SOP Equation Use a Kmap to find the reduced SOP expression B C A 00 01 11 10 0 1 1 1 1 1 = ABC + AC + AB A B C F 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 Chapter 3 - Part 1 IT321 13

Circuit F = ABC + AC + AB The final circuit: ABC A B AB C AC Chapter 3 - Part 1 IT321 14

Example: comparing 2-bit numbers Design a circuit that compares two 2-bit numbers, A and B. There are three possible results: A > B, A = B or A < B. Chapter 3 - Part 1 IT321 15

Step 1: How many inputs and outputs? How many inputs and outputs will this circuit have? Two (2-bit numbers) means a total of four inputs. Let s say the first number consists of bits called A1and A0(from left to right), while second number has bits B1and B0. Inputs A and B will be 00, 01, 10, or 11 (0, 1, 2 or 3 in decimal). Chapter 3 - Part 1 IT321 16

Step 1: How many inputs and outputs? (continued) We will represent the results using three separate outputs. G ( Greater ) should be 1 only when A > B. E ( Equal ) should be 1 only when A = B. L ( Lesser ) should be 1 only when A < B. For any inputs A and B, exactly one of the three outputs will be1. Chapter 3 - Part 1 IT321 17

Step 1: How many inputs and outputs? (continued) Here is a block diagram that shows the inputs and outputs explicitly. Now the hard part is to design the circuitry that goes inside the box. Chapter 3 - Part 1 IT321 18

Step 2: Functional specification Chapter 3 - Part 1 IT321 19

Step 3: Simplified Boolean expressions Use K-maps to simplify the circuit. There are three functions (each with the same inputs A1 A0 B1 B0), so we need three K-maps. Chapter 3 - Part 1 IT321 20

Step 3: Simplified Boolean expressions (continued) Chapter 3 - Part 1 IT321 21

Step 4: Drawing the circuits Chapter 3 - Part 1 IT321 22

Mapping to NAND gates The mapping is accomplished by: 1) Replacing AND and OR symbols, 2) Pushing inverters through circuit fan-out points, and 3) Canceling inverter pairs Chapter 3 - Part 1 IT321 23

NAND Mapping Algorithm 1. Replace ANDs and ORs:............ a+b= a. b 2. Repeat the following pair of actions until there is at most one inverter between : a. A circuit input or driving NAND gate output, and b. The attached NAND gate inputs....... Chapter 3 - Part 1 IT321 24

NAND Mapping Example Chapter 3 - Part 1 IT321 25

Mapping to NOR gates The mapping is accomplished by: 1) Replacing AND and OR symbols, 2) Pushing inverters through circuit fan-out points, and 3) Canceling inverter pairs Chapter 3 - Part 1 IT321 26

NOR Mapping Algorithm 1. Replace ANDs and ORs:...... ab= a + b...... 2. Repeat the following pair of actions until there is at most one inverter between : a. A circuit input or driving NOR gate output, and b.the attached NOR gate inputs....... Chapter 3 - Part 1 IT321 27

NOR Mapping Example A B A B C F C 1 X 3 2 F D E (a) A D E (b) B C F D E (c) Chapter 3 - Part 1 IT321 28