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

Similar documents
Combinational Logic. By : Ali Mustafa

Systems I: Computer Organization and Architecture

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

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

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

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

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

2 Application of Boolean Algebra Theorems (15 Points - graded for completion only)

ELCT201: DIGITAL LOGIC DESIGN

Signals and Systems Digital Logic System

Chapter 2 Combinational Logic Circuits

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Unit 3 Session - 9 Data-Processing Circuits

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

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

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

Boolean Algebra & Logic Gates. By : Ali Mustafa

Combinational Logic. Course Instructor Mohammed Abdul kader

Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

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

MC9211 Computer Organization

Lecture 2 Review on Digital Logic (Part 1)

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

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

Number System conversions

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

CHAPTER 7. Exercises 17/ / /2 2 0

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

COMBINATIONAL LOGIC FUNCTIONS

Digital Logic (2) Boolean Algebra

Chap 2. Combinational Logic Circuits

Adders - Subtractors

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

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

UNIT II COMBINATIONAL CIRCUITS:

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

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Unit 2 Boolean Algebra

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Adders, subtractors comparators, multipliers and other ALU elements


ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Chapter 2: Switching Algebra and Logic Circuits

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

COE 202: Digital Logic Design Combinational Circuits Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Contents. Chapter 3 Combinational Circuits Page 1 of 36

ECE 2300 Digital Logic & Computer Organization

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

Adders, subtractors comparators, multipliers and other ALU elements

Combinational Logic. Review of Combinational Logic 1

CHAPTER 7. Solutions for Exercises

Sample Test Paper - I

Chapter 5 Arithmetic Circuits

Review for Test 1 : Ch1 5

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

Boolean Algebra, Gates and Circuits

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

CHAPTER1: Digital Logic Circuits Combination Circuits

Design of Combinational Logic

Floating Point Representation and Digital Logic. Lecture 11 CS301

Carry Look Ahead Adders

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

CHAPTER 3 BOOLEAN ALGEBRA

Logic Gate Level. Part 2

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

211: Computer Architecture Summer 2016

Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops

1. Expand each of the following functions into a canonical sum-of-products expression.

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Digital Electronics Circuits 2017

Numbers and Arithmetic

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

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

Class Website:

Chapter 2: Boolean Algebra and Logic Gates

Switches: basic element of physical implementations

ENG2410 Digital Design Combinational Logic Circuits

UNIT 5 KARNAUGH MAPS Spring 2011

UNIT 1. BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

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

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

Gate-Level Minimization

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

Written exam for IE1204/5 Digital Design with solutions Thursday 29/

Unit 2 Session - 6 Combinational Logic Circuits

Logic Design I (17.341) Fall Lecture Outline

Chapter 2 Combinational Logic Circuits

Homework Solution #1. Chapter 2 2.6, 2.17, 2.24, 2.30, 2.39, 2.42, Grading policy is as follows: - Total 100

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

SAMPLE ANSWERS MARKER COPY

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


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

ELEN Electronique numérique

Logic Simplification. Boolean Simplification Example. Applying Boolean Identities F = A B C + A B C + A BC + ABC. Karnaugh Maps 2/10/2009 COMP370 1

Circuits & Boolean algebra.

Transcription:

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April Objective - Get familiar with the Xilinx ISE webpack tool - Learn how to design basic combinational digital components - Learn how to simulate Part 1: 2-bit Combinational Divider: Develop a minimized Boolean implementation of 2-bit combinational divider. The subsystem has two 2-bit inputs A,B (dividend) and C,D (divisor), and generates two 2-bit outputs, the quotient W,X and the remainder Y,Z. When the divisor = 00, assume that the quotient will be 00 and remainder will be same as dividend. (For eg., 3/0 will have a quotient=0 and remainder=3). Report should include: a. Design steps including Truth Table for W,X,Y and Z. b. Minimize the functions W,X,Y and Z using 4-variable K-maps. Write down the Boolean expressions for the minimized sum-of-products form of each function. c. Circuit schematic. d. Screen shot of the outputs W,X,Y and Z for the following input combinations: i. A,B = 00 and C,D = 10 ii. A,B = 01 and C,D = 10 iii. A,B = 10 and C,D = 01 iv. A,B = 11 and C,D = 01 Sol: a) Truth Table ABCD WXYZ 0000 0000 0001 0001 0010 0010 0011 0011 0100 0001 0101 0100 0110 0001 0111 0001 1000 0010 1001 1000 1010 0100

1011 0010 1100 0011 1101 1100 1110 0101 1111 0100 b) Boolean expressions: i. W = AC D ii. X = BC D + ABC + ACD = BC D + AC(B+D ) iii. Y = A B C + AC D + AB CD = AC D + B C(A + AD) iv. Z = BD + A B D + A CD = BD + A D(B +C) c) Circuit schematic: d) Screen shot of the outputs W,X,Y and Z for the following input combinations: i. A,B = 00 and C,D = 10 Output WXYZ = 0010

ii. A,B = 01 and C,D = 10 Output WXYZ = 0001 iii. A,B = 10 and C,D = 01 Output WXYZ = 1000 iv. A,B = 11 and C,D = 01 Output WXYZ = 1100

Part 2: Adder/ Subtractor Binary adder/subtractor based on a select input. Design a 4-bit adder/subtractor with the following specifications with minimum possible gatecount. Inputs: Two 4-bit unsigned binary numbers (A[3:0] & B[3:0]) and one bit select (Sel). Output: Sum output (S[3:0]) and Carry out (C_out). If Sel = 0 => (C_out,S) = A+B Sel = 1 => (C_out,S) = A-B Report should include: a. Write the Boolean equation for Sum and carry of a one-bit full adder and use it to design the 4-bit adder/subtractor. b. Circuit schematic c. Results: Include one screen snapshot of the simulator outcome for the following input combinations A= 5 and B= 9 and Sel = 0 A= 12 and B= 3 and Sel = 1 Sol: a) One bit Full Adder: Let x and y be the inputs and Cin be the carry in. i. Sum = x XOR y XOR Cin ii. Cout = xy + y.cin + Cin.z b) Circuit schematic

c) Results: i. A= 5 and B= 9 and Sel = 0 => Sum = 1110 ii. A= 12 and B= 3 and Sel = 1 => Sum = 1001 Part 3: Selective encoder: Implement a circuit that supports the following four encoding schemes to perform selective encoding on a 4-bit binary input. The design should enable a user to select from the available schemes through the use of two selective switches S0 and S1 as given below: Input ABC Select Switches Encoding Schemes S0, S1 3-bit binary 00 2 s Complement 01 Excess-3 Encoder 10 2421 Code 11 Gray Code For 2 s complement assume an implicit sign bit which is always 0 which implies that inputs for 2 s complement range from 0000 to 0111. Thus the output should be a 4-bit number for that switch setting. Information about Coding styles could be obtained from: http://www.asicworld.com/digital/numbering3.html Input (ABC) 2 s Complement (WXYZ) (S1,S0) = 00 Excess-3 (WXYZ) (S1,S0) = 01 2421 Code (WXYZ) (S1,S0) = 10 000 0000 0011 0000 000 001 0001 0100 0001 001 010 0010 0101 0010 011 011 0011 0110 0011 010 100 0100 0111 0100 110 101 0101 1000 1011 111 110 0110 1001 1100 101 111 0111 1010 1101 100 Report should include: a. Truth-table for the above design (Use the given table only) Gray code (WXYZ) (S1,S0) = 11

b. Boolean Expression from the truth table for each output of the four encoding schemes. c. Schematic of the circuit d. Screen Snapshot i.e. the simulation for the following combinations of input X=2, (S1, S0) = (0,0); X=4, (S1,S0) = (0,1); X=5, (S1, S0) = (1,0); X=7, (S1, S0) = (1,1). Sol: a) Truth table is given in the question. b) Boolean Expressions: a. 2 s Compliment: i. W = 0 ii. X = A iii. Y = B iv. Z = C b. Excess -3 encoding: i. W = AB + AC = A(B+C) ii. X = A B + A C + AB C = A (B+C) + AB C iii. Y = BC + B C = (B xor C) iv. Z = C c. 2421 encoding: i. W = AB + AC = A(B+C) ii. X = AB + AC = A (B+C ) iii. Y = A B + AB C iv. Z = C d. Gray encoding i. W = 0 ii. X = A iii. Y = AB + A B = A xor B iv. Z = BC + B C = B xor C c) Circuit Schematic:

d) Screen Snapshot i.e. the simulation for the following combinations of input i. ABC=010, (S1, S0) = (0,0); => Output = 0010 ii. ABC=100, (S1,S0) = (0,1); => Output = 0111 iii. ABC=101, (S1, S0) = (1,0); => Output = 1011 iv. ABC=111, (S1, S0) = (1,1). => Output = 0100 Part 4: 7-segment display decoder For a given binary input that is in the range of 000-111, design a circuit that outputs alphabets A, b, C, d, E, F, G, H on the 7 segment display (use the given table). X Y Z S1 S2 S3 S4 S5 S6 S7 0 0 0 1 1 1 0 1 1 1 0 0 1 0 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 0 0 1 0 0 1 1 1 1 1 0 1 1 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1

Report should include: a. Boolean Expression for each input b. Schematic of the same c. Screen Snapshot i.e. the simulation of the 7-segment decoder when the decimal equivalent of the input changes from 0 to 7. Sol: a) Boolean Expression: S1 = Z + XY S2 = YZ + X Y Z S3 = X Y + YZ + XY = (X xor Y) + YZ S4 = XZ + X Z + YZ = (X xor Y) + YZ S5 = 1 S6 = X + Y + Z S7 = X + Y + Z b) Schematic c) Simulation Screen shot: Input (X,Y,Z) = A[2:0] Part 5: (Calculate delay)

a. Find the best-case and worst-case time delays for a circuit (with minimum possible gate count) represented by the following Boolean equation: (A+B ) + (A+C) + (B+C) (Hint: Minimize the expression before computing the best/worst case delays). b. Show the CMOS circuit diagram for the same and also the truth table. c. Implement the circuit using logic gates and simulate using Xilinx tools. Provide a Screen Snapshot for the input combination: (A,B,C) = (1,0,1); (0,1,1). Measure the delay for the same and provide a Screen Snapshot for input combinations that give maximum and minimum delay. d. Simulate the same circuit using NAND and Inverter using Xilinx tools. What is the difference between the delays observed in (part a) and the delay in the design using NAND and Inverter gates? Sol: a) Minimizing the given Boolean expression: (A+B ) + (A+C) + (B+C) = ((A+B ). (A+C). (B+C)) = ((A + B ). (B + B ). (A + C). (B + C)) = ((AB + B ) + (AB + C)) = (AB + B C) Best and Worst case delay computations:

b) Truth Table: X Y Z Output 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 0

CMOS Circuit Diagram: C) Using basic logic gates(and-or-inv):

d) Using Nand gates: For the particular input combination when input changing from 011 to 101, the delay for the output using AND-OR-INV logic is same as the output delay when NAND-INV logic is used.