HW #5: Digital Logic and Flip Flops

Similar documents
Final Exam Solution Sunday, December 15, 10:05-12:05 PM

EECS150, Fall 2004, Midterm 1, Prof. Culler. Problem 1 (15 points) 1.a. Circle the gate-level circuits that DO NOT implement a Boolean AND function.

EECS 150 Homework 7 Solutions Fall (a) 4.3 The functions for the 7 segment display decoder given in Section 4.3 are:

1. Prove that if you have tri-state buffers and inverters, you can build any combinational logic circuit. [4]

Combinational Circuits

EE 3170 Microcontroller Applications

ECE 331: N0. Professor Andrew Mason Michigan State University. Opening Remarks

Question Total Possible Test Score Total 100

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

Chapter Three. Digital Components

Computer Architecture: Part III. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Lab 4: Digital Electronics Innovation Fellows Program Boot Camp Prof. Steven S. Saliterman

Digital Logic Design Exercises. Assignment 1

/90 TOTAL. 1(a) 8pts. fiv(a,b) is called the function.

ECE20B, Spring Final Exam lab questions.

DIGITAL ELECTRONICS. P41l 3 HOURS

DigSim Assignment 2: Finite State Machine Simplifications

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Scheme G. Sample Test Paper-I

Code No: R Set No. 1

(Refer Slide Time: 00:01:53)

DIGITAL CIRCUITS AND LOGIC DESIGN LABORATORY MANUAL Spring, 2014

Code No: 07A3EC03 Set No. 1

Lab 4: Digital Electronics BMEn 2151 Introductory Medical Device Prototyping Prof. Steven S. Saliterman

Summary. Boolean Addition

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

CS61C : Machine Structures

Digital Fundamentals. Lab 6 2 s Complement / Digital Calculator

Good Evening! Welcome!

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

Scheme I. Sample Question Paper

Finite State Machine Lab

Drexel University Electrical and Computer Engineering Department ECE 200 Intelligent Systems Spring Lab 1. Pencilbox Logic Designer

Homework #4 Problem 1

Last Name Student Number. Last Name Student Number

Reference Sheet for C112 Hardware

To write Boolean functions in their standard Min and Max terms format. To simplify Boolean expressions using Karnaugh Map.

Hours / 100 Marks Seat No.

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

Chapter 6. CMOS Functional Cells

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

NAND/NOR Logic Gate Equivalent Training Tool Design Document. Team 34 TA: Xinrui Zhu ECE Fall Jeremy Diamond and Matthew LaGreca

PROGRAMMABLE LOGIC DEVICES

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

Chapter 2. Boolean Expressions:

Introduction to Electronics Workbench

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 3 Additional Gates and Circuits

Code No: R Set No. 1

Programmable Logic Devices (PLDs)

Synthesis of combinational logic

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Continuing with whatever we saw in the previous lectures, we are going to discuss or continue to discuss the hardwired logic design.

University of Toronto Mississauga. Flip to the back cover and write down your name and student number.

Digital Fundamentals

(ii) Simplify and implement the following SOP function using NOR gates:

Experiment 3: Logic Simplification

Design a three-input, two-output sequential digital circuit which functions as a digital locking mechanism. LOCK ALARM

Homework. Update on website issue Reading: Chapter 7 Homework: All exercises at end of Chapter 7 Due 9/26

PART 1. Simplification Using Boolean Algebra

EEE130 Digital Electronics I Lecture #4_1

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

CS429: Computer Organization and Architecture

Music. Numbers correspond to course weeks EULA ESE150 Spring click OK Based on slides DeHon 1. !

CS140 Lecture 03: The Machinery of Computation: Combinational Logic

IT 201 Digital System Design Module II Notes

Lecture (05) Boolean Algebra and Logic Gates

Ch. 5 : Boolean Algebra &

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Boolean Analysis of Logic Circuits

1. What is y-chart? ans: The y- chart consists of three domains:- behavioral, structural and geometrical.

Simplification of Boolean Functions

CS101 Lecture 25: The Machinery of Computation: Computer Architecture. John Magee 29 July 2013 Some material copyright Jones and Bartlett

Electronic Engineering Part 1 Laboratory Experiment. Digital Circuit Design 1 Combinational Logic. (3 hours)

Systems Programming. Lecture 2 Review of Computer Architecture I

ENCM 369 Winter 2019 Lab 6 for the Week of February 25

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

Sense Amplifiers 6 T Cell. M PC is the precharge transistor whose purpose is to force the latch to operate at the unstable point.

EECS 140 Laboratory Exercise 5 Prime Number Recognition

EE 1315: DIGITAL LOGIC LAB EE Dept, UMD

CCE 3202 Advanced Digital System Design

R10. II B. Tech I Semester, Supplementary Examinations, May

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

10/5/2016. Review of General Bit-Slice Model. ECE 120: Introduction to Computing. Initialization of a Serial Comparator

INTRODUCTION TO FPGA ARCHITECTURE

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Exam 1 Review

HW D1: Gates & Flops: Spring 2015

Written exam for IE1204/5 Digital Design Thursday 29/

Mark Redekopp, All rights reserved. EE 352 Unit 8. HW Constructs

Lec-6-HW-2-digitalDesign

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

FPGA. Logic Block. Plessey FPGA: basic building block here is 2-input NAND gate which is connected to each other to implement desired function.

Programmable Logic Design Techniques I

10EC33: DIGITAL ELECTRONICS QUESTION BANK

Philadelphia University Student Name: Student Number:

University of Technology

A B A+B

CprE 281: Digital Logic

Transcription:

HW #5: Digital Logic and Flip Flops This homework will walk through a specific digital design problem in all its glory that you will then implement in this weeks lab. 1 Write the Truth Table (10 pts) Consider a clock that included a feature that would show the month and day. This would be implemented, presumably, by feeding the output of the hours counter to a day counter which then fed to a month counter. A complication with this scheme is that (due to various Roman emperors egos) not all months are the same length. Thus, to decide when to roll over the day counter, you would need to implement a function that knew the number of days in each month. Here we will implement one portion of that circuit. Specifically, we will create a circuit that outputs HIGH if a month has 31 days and LOW otherwise. Since there are 12 months, we will be using a 4 bit month counter and thus have 4 unused states (24-12=16-12=4). Let the months be numbered from 0 (January) to 11 (December) and write the truth table for the required function,( f = month has 31 days). Be sure you get this right since every other part of the homework and the lab depends on it. Since A represents the least significant bit in the 74161 counter output, the truth table below will correspond to the labels of the chip pins. Fill in the function f with 0, 1 or X for dont care. Again, double check your work or you will have every following step wrong. Version 4.2, October 15, 2014 Page 1

2 Enter the Truth Table into the Karnaugh Map (5 pts) Since the input variables are labeled D,C,B,A, its nice to have a Karnaugh map with the inputs labeled in the same order. One is provided below. Carefully transfer the truth table to the map. Again, double check your work since each step builds on the previous ones. 3 Find the Minimum Implementation (10 pts) Circle the groupings of 1s and/or Xs that give the minimum implementation. HINT: You should have 3 terms, each of which has only two variables (although some of the variables may be inverted). 4 Write Your Terms as a Boolean Function (5 pts) Write a function in a sum-of-products form that corresponds to the minimal representation you have found on your Karnaugh map. 5 Check your work (5 pts) Evaluate each of the three product (AND) terms of your function and enter them as separate truth-tables below. Then sum (OR) these together and confirm that you have implemented your original truth table from part 1. Note that the dont-care states will now take on real values. Confirm that these are consistent with your Karnaugh map use of these states. Version 4.2, October 15, 2014 Page 2

Version 4.2, October 15, 2014 Page 3

6 Implement Your Circuit In Multisim (15 pts) Use a function generator as a clock input and a 74161 counter to generate the sequence 0000 to 1111. Provide an annotated screenshot of the clock and output in your answer. Implement your circuit using the 74HC 4V family (CMOS 74HC 4V) AND, OR and NOT gates, specifically: 74HC04N 4V (NOT), 74HC08N 4V (AND), 74HC32N 4V (OR). Note that this last chip is near the bottom of the component list due to alphabetical ordering. The inverter (NOT) includes 6 gates and the other chips each include 4 gates. When you place a new gate, you will be asked if you would like to place a new chip or use an available gate on an existing chip, as is shown below: Select an existing chip (U1 in this case) each time. You should only need one of each chip (that is, less than or equal to 6 NOTs, 4 ANDs and 4 ORs). Below is a figure to get you started. Version 4.2, October 15, 2014 Page 4

7 Enabled SR Flip Flop The diagram below is often given as a clocked JK flip flip that will operate on the rising edge of the clock. In this problem, we will show that this is actually an enabled SR. That is, it is an SR flip flop that only operates when the enable line is high. A good reference can be found here: http://www.tutorialspoint.com/computer_logical_organization/sequential_circuits.htm 1. Show that if enable (E) is low (0), that the outputs Q and Q are stable no matter what voltages are on S and R. Consider both possible outputs states (0,1) and (1,0). 2. Assume the outputs (Q and Q) = (0,1) and the inputs (S,R) = (1,0). Let the input E initially be 0, then it changes to 1. What is the stable output state? Show this by writing the values of the intermediate states (outputs of the 3-input NANDs), Q and Q as a function of time. 3. Why this isnt a JK: Consider the same problems as part b but now the inputs (S,R) = (1,1). Show that when the Enable line goes high, the outputs are unstable. Remember that the (1,1) input state is what distinguishes a JK from an SR. Version 4.2, October 15, 2014 Page 5