Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

Similar documents
UNIVERSITI TENAGA NASIONAL. College of Information Technology

ECE 2300 Digital Logic & Computer Organization

Topics. CMOS Design Multi-input delay analysis. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

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

Sequential vs. Combinational

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 9 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Synchronous Sequential Circuit

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

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

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

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

ELCT201: DIGITAL LOGIC DESIGN

Integrated Circuits & Systems

CMPEN 411. Spring Lecture 18: Static Sequential Circuits

EE115C Digital Electronic Circuits Homework #4

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

LECTURE 28. Analyzing digital computation at a very low level! The Latch Pipelined Datapath Control Signals Concept of State

Time Allowed 3:00 hrs. April, pages

ELEN Electronique numérique

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

EE 209 Logic Cumulative Exam Name:

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

Different encodings generate different circuits

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

Computers also need devices capable of Storing data and information Performing mathematical operations on such data


Sample Test Paper - I

Chapter 2 Combinational Logic Circuits

EECS 270 Midterm 2 Exam Answer Key Winter 2017

Fundamentals of Digital Design

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Homework Assignment #3 EE 477 Spring 2017 Professor Parker , -.. = 1.8 -, 345 = 0 -

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

MODULAR CIRCUITS CHAPTER 7

Karnaugh Maps (K-Maps)

CS61C : Machine Structures

Gates and Flip-Flops

DE58/DC58 LOGIC DESIGN DEC 2014

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

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

CS61C : Machine Structures

Computer organization

Simulation of Logic Primitives and Dynamic D-latch with Verilog-XL

DIGITAL LOGIC CIRCUITS

Floating Point Representation and Digital Logic. Lecture 11 CS301

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

ECE 342 Electronic Circuits. Lecture 34 CMOS Logic

Lecture 7: Logic design. Combinational logic circuits

EE 209 Spiral 1 Exam Solutions Name:

Chapter 2: Boolean Algebra and Logic Gates

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

Homework Assignment #5 EE 477 Spring 2017 Professor Parker

Textbook: Digital Design, 3 rd. Edition M. Morris Mano

Dynamic Combinational Circuits. Dynamic Logic

CPE100: Digital Logic Design I

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

Digital Logic Appendix A

CHW 261: Logic Design

Synchronous Sequential Logic

Lecture 4: Implementing Logic in CMOS

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

Counters. We ll look at different kinds of counters and discuss how to build them

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

Quiz 2 Solutions Room 10 Evans Hall, 2:10pm Tuesday April 2 (Open Katz only, Calculators OK, 1hr 20mins)

Hakim Weatherspoon CS 3410 Computer Science Cornell University

Implementation of Boolean Logic by Digital Circuits

Unit 2 Session - 6 Combinational Logic Circuits

Computer Organization: Boolean Logic

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

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

Name: Grade: Q1 Q2 Q3 Q4 Q5 Total. ESE370 Fall 2015

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

The Design Procedure. Output Equation Determination - Derive output equations from the state table

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

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

CHAPTER 7. Exercises 17/ / /2 2 0

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

Unit 3 Session - 9 Data-Processing Circuits

Written exam with solutions IE1204/5 Digital Design Friday 13/

Design of Sequential Circuits

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

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Total Power. Energy and Power Optimization. Worksheet Problem 1

Digital Integrated Circuits Designing Combinational Logic Circuits. Fuyuzhuo

University of Minnesota Department of Electrical and Computer Engineering

Lecture 16: Circuit Pitfalls

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

Chapter 4. Sequential Logic Circuits

Chapter 2. Digital Logic Basics

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Transcription:

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker Note: + implies OR,. implies AND, ~ implies NOT Question 1: a) (4%) Use transmission gates to design a 3-input OR gate Note: There are other solutions as well which use the same number of transistors.

b) (11%) Now use transmission gates to construct the following function: F = (A+B+C).(D+E) The maroon circle is A+B+C. This is fed to the top un-circled transmission gate with positive control input = D+E (yellow circle) and negative control input = ~(D+E) = ~D.~E (green circle). The 2 un-circled transmission gates form a 2-input AND to realize Out = (A+B+C).(D+E)

Question 2: a) (11%) Use transmission gates to design a multiplexer with select signals S0, S1, inputs A, B, C, D, and output Out. You can arrange the signals in any way you want. One implementation is as follows: S1 S0 Out 0 0 A 0 1 B 1 0 C 1 1 D

b) (4%) Now suppose input A is always logic 0 and B is always logic 1. Can you make the circuit simpler? Only an NMOS is required to transmit a 1 and only a PMOS to transmit a 0. So we can eliminate a couple of transistors:

Question 3: Consider the function: X = A.B.C.D + E.F.G.H a) (4%) Draw its logic gate diagram using negative gates only (NAND, NOR, INV) b) (8%) Draw the stick diagram of each unique gate you have used above (i.e. if you have used 2 gates of the same type, just draw the stick diagram once) 4-input NAND 2-input NAND

c) (5%) Draw a compound gate transistor level diagram of X

Question 4: a) (4%) Suppose you have a design constraint that your gates can have a maximum of 2 inputs. Redraw the logic gate diagram of X using negative gates only. This is a tricky problem. Assuming complement signals like ~A are not available, this is the solution: But if complement signals are available, there is a slightly simpler solution:

b) (6%) Redraw the logic gate diagram of X using positive gates only (AND, OR) and the same constraint - gates can have a maximum of 2 inputs. Notice that a 4-input AND gate can be directly decomposed into a cascade of two 2-input AND gates followed by another AND gate. That s because it s a positive gate. The same cannot be done with negative gates.

Question 5: a) (3%) Show the truth table for a 2-input XOR gate and give its logic equation: A XOR B =? A XOR B = A.~B + ~A.B A B A XOR B 0 0 0 0 1 1 1 0 1 1 1 0 b) (10%) A 3-bit parity checker counts the number of 1 s in a sequence of 3 bits and outputs 1 if odd, 0 if even. (Example: If the input is 101, output is 0, but if the input is 001, output is 1). Design this circuit using negative gates only and draw the transistor level diagram. You can assume that negative inputs like ~A are available. A B C Out 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 The truth table outputs logic 1 in 4 cases. Combining these terms, we can write: Out = ~A.~B.C + ~A.B.~C + A.~B.~C + A.B.C In general, any XOR gate outputs logic 1 if the total number of input 1 s are odd, otherwise it outputs logic 0. So a 3-bit parity checker is simply a 3-input XOR gate: (A XOR B) XOR C = (A.~B + ~A.B).~C + ~(A.~B + ~A.B).C This eventually simplifies to the above expression for Out.

~

Question 6: (10%) Consider the following 2-to-1 MUX built using transmission gates as shown in class. The ~pickx signal is generated from an inverter which has a delay of 2 time units. Look at the given timing diagram and draw the waveform for Out from beginning to end. Is there any period of time when Out isn t well defined? Due to the 2 unit inverter delay, both the transmission gates are ON during these time periods: 10-12, 20-22, 30-32. For the first 2 cases, both inputs are the same and there is no conflict. For 30-32, both pickx and ~pickx are logic 0, so both PMOS are conducting and there is a conflict between X and Y. You might expect X to win the conflict because PMOS can pass strong 1 s and weak 0 s. Actually we don t know what happens. Since the Out signal might be driving other parts of the circuit, we should never allow such a glitch or undefined state to occur.

Question 7: (20%) Design a latch with: Inputs = D, Clock, Set, Reset Output = ~Q Active-high asynchronous Reset Active-high synchronous Set This means that: Reset Clock Set ~Q 1 Don t care Don t care 1 0 1 1 0 0 1 0 Load new ~D 0 0 Don t care Retain previous ~Q Notice the basic structure of the latch transmission gate followed by a loop consisting of 2 negative gates and a transmission gate. The NAND is added inside the loop to ensure Asynchronous Reset, while the OR outside the loop implements Synchronous Set. Note: Set sets output Q to 1, that s why ~Q is 0. Similarly Reset should make Q = 0, so ~Q = 1. Note: Generally positive gates like OR aren t recommended. It s better to replace them with negative logic depending on the technology/circuits used.