Logic Circuit Design

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

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

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.

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

University of Technology

Lecture 15 Analysis of Combinational Circuits

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.

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 4: Combinational Logic Circuits. Name: Date:

Function Table of an Odd-Parity Generator Circuit

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

Digital Logic Design ELCT 201

Logic Design I (17.341) Fall Lecture Outline

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

Exercise 2: OR/NOR Logic Functions

Digital Electronics 8. Multiplexer & Demultiplexer

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


Encoders. Lecture 23 5

Digital Circuits II Lecture 6. Lab Demonstration 3 Using Altera Quartus II to Determine Simplified Equations & Entering Truth Table into VHDL

Digital Electronic Concepts

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

4:Combinational logic circuits. 3 July

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

Combinational Logic Circuits. Combinational Logic

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

COMBINATIONAL CIRCUIT

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

DIGITAL ELECTRONICS QUESTION BANK

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

Unit 3. Logic Design

TABLE 3-2 Truth Table for Code Converter Example

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

Exercise 1: AND/NAND Logic Functions

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.

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

BCD Adder. Lecture 21 1

UNIT III. Designing Combinatorial Circuits. Adders

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

Chapter 4 Combinational Logic Circuits

UNIT-IV Combinational Logic

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

Chapter 3 Describing Logic Circuits Dr. Xu

Chapter 4 Combinational Logic Circuits

Subject: Analog and Digital Electronics Code:15CS32

Subtractor Logic Schematic

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

Design Problem 1 Solutions

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

Digital Electronics Course Objectives

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

CHW 261: Logic Design

Chapter 3 Combinational Logic Design

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

Lab 2: Combinational Circuits Design

THE UNIVERSITY OF TRINIDAD & TOBAGO

DIGITAL LOGIC CIRCUITS

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

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

Government of Karnataka Department of Technical Education Board of Technical Examinations, Bengaluru

Gates and Circuits 1

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

UC Berkeley CS61C : Machine Structures

Department of Electronics and Communication Engineering

Digital Electronics. Functions of Combinational Logic

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.

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

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

UC Berkeley CS61C : Machine Structures

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

Syllabus for: Electronics for F Y B Sc (Electronics) Semester- 1 (With effect from June 2014) PAPER I: Basic Electrical Circuits

International Journal of Scientific & Engineering Research, Volume 5, Issue 5, May-2014 ISSN

Digital. Design. R. Ananda Natarajan B C D

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

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

Experiment 5: Basic Digital Logic Circuits

Introduction. BME208 Logic Circuits Yalçın İŞLER

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

EXPERIMENT 5 Basic Digital Logic Circuits

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

COMBINATIONAL LOGIC CIRCUIT First Class. Dr. AMMAR ABDUL-HAMED KHADER

*************************************************************************

Combinational Circuits DC-IV (Part I) Notes

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

a b y UC Berkeley CS61C : Machine Structures Hello Helo,world!

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

Electronics. Digital Electronics

ECE 124 Digital Circuits and Systems Winter 2011 Introduction Calendar Description:

BOOLEAN ALGEBRA AND LOGIC FAMILIES

SEMESTER SYSTEM, A. PROPOSED SCHEME FOR B.Sc. ELECTRONICS (PASS) COURSE. B.Sc. (ELECTRONICS MAINTENANCE) COURSE

R09. 1.a) State and explain Kirchoff s laws. b) In the circuit given below Figure 1 find the current through 5 Ω resistor. [7+8] FIRSTRANKER.

Larger 5 & 6variable Karnaugh maps

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

COLLEGE OF ENGINEERING, NASIK

FUNCTION OF COMBINATIONAL LOGIC CIRCUIT

Exercises: Fundamentals of Computer Engineering 1 PAGE: 1

Laboratory Manual CS (P) Digital Systems Lab

ECE380 Digital Logic

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C


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

Transcription:

Logic Circuit Design

we have studied Truth Tables Logic gates Logic algebra K-maps 1

All these are tools Tools Truth Tables Logic gates Logic algebra K-maps 2

All these are tools Tools Truth Tables Logic gates Logic algebra K-maps To design digital logic circuits 3

Today we will learn Truth Tables Logic gates Logic algebra K-maps To set-up and implement logic circuit problems (Logic Circuit Design) 4

4-Questions for a design problem 1. What do we need to know for a design problem? Specifications (inputs, outputs, function) 2. Can we set-up a truth table? Truth tables determine the function of the problem 3. Can we simplify? - Use K- maps or logic algebra 4. Can we implement the result with a circuit? - Use gates 5

Steps to Design a Logic Circuit Given a word problem 6

Steps to Design a Logic Circuit Given a word problem Create Truth Table 7

Steps to Design a Logic Circuit Given a word problem Create Truth Table Derive Output Expression(s) 8

Steps to Design a Logic Circuit Given a word problem Logic Circuit Create Truth Table Derive Output Expression(s) 9

Steps to Design a Logic Circuit Given a word problem Logic Circuit Create Truth Table Derive Output Expression(s) Simplify 10

Steps to Design a Logic Circuit Given a word problem Logic Circuit Create Truth Table Derive Output Expression(s) Simplify Implement (Gates) 11

Algorithm: Logic circuit design 1. From the specifications of the problem: Determine the required number of inputs and outputs. Assign a letter symbol to each 2. Derive the truth table 3. Obtain the Boolean expressions for each output as a function of the input variables 4. Simplify all the output equations 5. Draw the logic diagram 6. Verify the correctness of the design 12

Algorithm: Logic circuit design S y n t h e s I s 1. From the specifications of the problem: Determine the required number of inputs and outputs. Assign a letter symbol to each 2. Derive the truth table 3. Obtain the Boolean expressions for each output as a function of the input variables 4. Simplify all the output equations 5. Draw the logic diagram Implementation 6. Verify the correctness of the design 13

Example: Design problem Design a digital logic circuit with three inputs and one output. The output of the logic circuit, must be logic one(1)2 when the binary value of the inputs is less than three(011)2 and zero(0)2 otherwise. 14

1. Inputs/Outputs Inputs = 3 Output = 1 15

Inputs/Outputs/Truth table Inputs = 3 Output = 1 Design a digital logic circuit with three inputs and one output. The output of the logic circuit, must be logic one(1)2 when the binary value of the inputs is less than three(011)2 and zero(0)2 otherwise. A B C X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 16

2. Function - Truth table A B C X 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 0 Design a digital logic circuit with three inputs and one output. The output of the logic circuit, must be logic one(1)2 when the binary value of the inputs is less than three(011)2 and zero(0)2 otherwise. 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 0 17

Terms of the output expression A B C X 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 0 ABC ABC ABC 18

3. Output Boolean expression _ X = ABC + ABC + ABC A B C X 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 0 ABC ABC ABC 19

4. Simplification K-Map AB C 00 01 11 10 0 1 1 1 1 ABC ABC ABC 20

4. Simplification K-Map AB C 00 01 11 0 1 1 1 1 ABC ABC ABC 10 X = A B + A C 21

5. Implementation: Simplified logic circuit A = 1 B = 0 C = 1 X = A B + A C 22

6. Verification A = 1 B = 0 C = 1 0 0 0 1 0 0 0 23

Logic diagram-vhdl editor Not in the Exam 26

Design: 1-bit Binary Comparator Compare two binary digits New Example 29

Design: 1-bit Comparator A 1-bit binary comparator compares the values of two bits and produces the proper result. A B A, B = 0 or 1 30

Design: 1-bit Comparator An 1-bit binary comparator compares the values of two bits and produces the proper result. What is the proper result? 31

1-bit Comparator There are three cases: 1. The two bits are equal 2. One bit has a greater value that the other 3. One bit has a smaller value than the other 32

Inputs/Outputs/Function Inputs:? Outputs:? Function: Comparator 33

Inputs/Outputs/Function Inputs: 2 Outputs: 3 Function: Comparator 34

Label the Input/Output A B? E (A = B) L (A < B) G (A > B) 35

Truth table? A B A = B A < B A > B 0 0 0 1 1 0 1 1 E L G 36

Truth table A B A = B A < B A > B 0 0 1 0 1 0 1 0 0 1 1 1 E L G 37

Truth table E L G A B A = B A < B A > B 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 0 0 38

We have 3 output equations E L G A B A = B A < B A > B 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 0 0 E = A B + AB L = A B G = AB 39

1-bit Comparator (Logic Circuit) E = A B + AB L = A B G = AB 40

VHDL: Logic circuit E = A B + AB = A XNOR B G = AB L = A B 41

VHDL Not in the Exam 42

Another design example Design a BCD-to-7 Segment Display converter New Example 43

Input, outputs(s), function? BCD 7SD (7-Segment-Display) 44

BCD BCD = Binary Coded Decimal A B C D 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 45

7SD 46

7SD 47

BCD to 7SD converter A B C D BCD to 7-segment decoder 48

49

Simplify 50

K-maps 51

Simplified equations 52

Implement VHDL 53

Implement using a chip (7446) 54

Design a binary converter Design a binary logic circuit, to convert a 3-bit binary number to it s 2 s complement. a 3-bit binary converter 2 s complement(a) New Example 55

Design a binary converter Design a binary logic circuit, to convert a 3-bit binary number to it s 2 s complement. How many inputs and outputs? Inputs = 3 Outputs =? Need to set up the truth table. 56

Design a binary converter Design a binary logic circuit, to convert a 3-bit binary number to it s 2 s complement. Binary ABC 000 001 010 011 100 101 110 111 1 s complement XYZ 57

Design a binary converter Design a binary logic circuit, to convert a 3-bit binary number to it s 2 s complement. Binary 1 s complement 2 s complement ABC XYZ 000 111 001 110 010 101 011 100 100 011 101 010 110 001 111 000 58

Design a binary converter Design a binary logic circuit, to convert a 3-bit binary number to it s 2 s complement. Binary 1 s complement 2 s complement ABC XYZ XYZW 000 111 1000 001 110 0111 010 101 0110 011 100 0101 100 011 0100 101 010 0011 110 001 0010 111 000 0001 The X=1 is like an overflow Write the output equations Simplify Implement 5 minutes 59

2 s Complement + Logic Expressions Decimal A B C X Y Z W 0 0 0 0 1 1 0 0 1 1 1 1 2 0 1 0 1 1 3 0 1 1 1 1 4 1 0 0 1 5 1 0 1 1 1 6 1 1 0 1 7 1 1 1 1 60

61

Solution 62