HW #5: Digital Logic and Flip Flops

Similar documents
Synchronous Sequential Logic. Topics. Sequential Circuits. Chapter 5 Steve Oldridge Dr. Sidney Fels. Sequential Circuits

CprE 281: Digital Logic

CPE/EE 427, CPE 527 VLSI Design I L21: Sequential Circuits. Review: The Regenerative Property

VLSI Design I; A. Milenkovic 1

Exercise 1: Control Functions

FLUID POWER FLUID POWER EQUIPMENT TUTORIAL OTHER FLUID POWER VALVES. This work covers part of outcome 2 of the Edexcel standard module:

Ranger Walking Initiation Stephanie Schneider 5/15/2012 Final Report for Cornell Ranger Research

ATM 322 Basic Pneumatics H.W.6 Modules 5 7

Layout Design II. Lecture Fall 2003

VLSI Design 14. Memories

Designing of Low Power and Efficient 4-Bit Ripple Carry Adder Using GDI Multiplexer

Lab 4 VGA Display Snake Game

VLSI Design 12. Design Styles

Name: Counting and Cardinality- Numbers in Base Ten Count the objects. Circle the number. Draw counters to show same number.

Tick Kit. Assembly Instructions

Water Level Indicator Project

GATE 2 Part No

Tour Stat Sheet Tutorial

MICROPROCESSOR ARCHITECTURE

ServicePlus S21R & S27R Series 2 Installation Instructions

82C288 BUS CONTROLLER FOR PROCESSORS (82C C C288-8)

Design of Low Power and High Speed 4-Bit Ripple Carry Adder Using GDI Multiplexer

You are to develop a program that takes as input the scorecard filled out by Bob and that produces as output the correct scorecard.

GOLT! RED LIGHT DISTRICT

SCIENTIFIC DATA SYSTEMS, INC. Depth Tension Line Speed Panel. DTLS Manual

Pinouts. Electronics Pinouts. Terry Sturtevant. Wilfrid Laurier University. April 8, 2011

Pulmonary Capacity Analyzer

Introduction to Pneumatics

Counterbore and Countersink Tutorial

The Discussion of this exercise covers the following points:

September 10, 2014 Revision 2. Puncher Unit-BE1/BF1/BG1/BH1 Service Manual

BUBBLER CONTROL SYSTEM

The system design must obey these constraints. The system is to have the minimum cost (capital plus operating) while meeting the constraints.

User Manual. Heads-Up Display (HUD) DiveCAN. Mechanical Button Version

Section 5.1 Randomness, Probability, and Simulation

Cover Page for Lab Report Group Portion. Pump Performance

CBC2 performance with switched capacitor DC-DC converter. systems meeting, 12/2/14

Software Design of the Stiquito Micro Robot

ACTIVITY 17: GAS EXCHANGE Period

ECE 697B (667) Spring 2003

An Architecture for Combined Test Data Compression and Abort-on-Fail Test

Surfing Interconnect

Microfluidic Demonstration

UNIVERSITY OF WATERLOO

Stand-Alone Bubble Detection System

GOLOMB Compression Technique For FPGA Configuration

TTL Flash Interface connections

ECE 757. Homework #2

xtreme DB Innovation Every Day Murrelektronik is your system partner: PIN ASSIGNMENTS INPUT OUTPUT AT A GLANCE

ACV-10 Automatic Control Valve

Introductory Lab: Vacuum Methods

Misaligned Folds Paper Feed Problems Double Feeds Won t Feed FLYER Won t Run iii

MIL-STD-883G METHOD

Exercise 8. Closed-Loop Pressure Control, Proportional-Plus-Integral Mode EXERCISE OBJECTIVE

THE CANDU 9 DISTRffiUTED CONTROL SYSTEM DESIGN PROCESS

HEAT-TIMER CORP. 20 NEW DUTCH LANE FAIRFIELD, NEW JERSEY TEL. (973) FAX (973) INSTALLATION & OPERATION MANUAL TABLE OF CONTENTS

PARTS LIST / TECHNICAL GUIDE

Connections The C20B can be connected either using the Molex locking socket, or by connection to four plated through holes. The plated through

Built-in Purge Control Functions

SR-242 USER S GUIDE. Table of Contents

Original Recipe. Original Recipe can be found at

Wickets Administrator

Implementation of Modern Traffic Light Control System

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR NPTEL ONLINE CERTIFICATION COURSE. On Industrial Automation and Control

DAV CENTENARY COLLEGE, FARIDABAD

WORKHOLDING APPLICATION BOOKLET

For IEC use only. Technical Committee TC3: Information structures, documentation and graphical symbols

Creation of a Fallback Catch Method. Megan Berry Mechanical Engineering Senior MAE 490 (4 credits)

VLSI Design 8. Design of Adders

TECHNICAL INFORMATION

BUBBLER CONTROL SYSTEM

Iteration: while, for, do while, Reading Input with Sentinels and User-defined Functions

Provably Secure Camouflaging Strategy for IC Protection

Cover Page for Lab Report Group Portion. Drag on Spheres

Reduction of Bitstream Transfer Time in FPGA

SHORT COMMUNICATION A SIMPLE, SENSITIVE AND VERSATILE SOLID-STATE PRESSURE TRANSDUCER

Preparation for Salinity Control ME 121

Application Notes. SLP85xD Load Cells

Savannah S100 ALD at SCIF, UC Merced Standard operating Procedure

700 SERIES BMS II BUBBLER MONITORING SYSTEM

AHE58/59 AC Servo System

Scarborough Spring 2013 Math Exam I 1. "On my honor, as an Aggie, I have neither given nor received unauthorized aid on this academic work.

256/512 /1K /2K/4K x 9 Asynchronous FIFO

Foundation Unit 13 topic test

REASONS FOR THE DEVELOPMENT

Computing s Energy Problem:

living with the lab control of salinity 2012 David Hall

A CO 2 Waveform Simulator For Evaluation and Testing of Respiratory Gas Analyzers

TorMinal. Operating instructions V OCE-Rev.L_EN

Touch on the New button to create the new implement.

Installation, operating and maintenance Instructions for Seemag bypass level indicator

D-Case Modeling Guide for Target System

Three-Dimensional Ray-Cast Pong

Soft Systems. Log Flume - 1. Enter Specification. Activity One ACTIVITIES. Help. for Logicator

AP Statistics Midterm Exam 2 hours

Leakage Current Testing Is it right for your application?

A 64 Bit Pipeline Based Decimal Adder Using a New High Speed BCD Adder

Asynchronous, Cascadable 8K/16K/32K/64K x9 FIFOs

COMPRESSOR PACK SUCTION CONTROLLER TYPE: LP41x

Post-Placement Functional Decomposition for FPGAs

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. (0-8 pts) correct value in row 0 to row 11 (0.6 points for each) (0-2 pts) correct input in row 12 to row 15 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. (0-5 pts) correct value in each block of the map (0.3 points for each) 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). (3 pts) Circle the blue one (3 pts) Circle the red one (3 pts) Circle the green one (1 pt) Circle all three correctly (combo bonus!) Version 4.2, October 15, 2014 Page 2

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 pts) Find the right terms 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. (5 pts) Inputs on each row are correct 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

(4 pts) Find the correct components (1 point for each (161 counter, or gate, not gate, and gate)) (0-4 pts) The wiring is correct (0-5 pts) The three signals on the oscilloscope are correct (especially within each RCO roll over cycle, it gives the correct pattern of the output) (1 pt) Label the CLK signal correctly (1 pt) Label the output correctly 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.5 pts) Correctly show the output=(0,1) state is stable (2.5 pts) Correctly show the output=(1,0) state is stable Version 4.2, October 15, 2014 Page 5

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 pts) Show the state switches to (1,0) (2 pts) Run at least two stable cycles to demonstrate stability (Note) Depending on assumptions of gate timing, it is possible to get different intermediate states. 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. (5 pts) Run enough states to see output changing back and forth. (Note) Depending on assumptions of gate timing, it is possible to get different intermediate states. Version 4.2, October 15, 2014 Page 6