ENEE 244 (01**). Spring 2006. Homework 5. Due back in class on Friday, April 28.



Similar documents
Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Module 3: Floyd, Digital Fundamental

Digital Logic Design Sequential circuits

Asynchronous Counters. Asynchronous Counters

Lesson 12 Sequential Circuits: Flip-Flops

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Counters and Decoders

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

CS311 Lecture: Sequential Circuits

Counters are sequential circuits which "count" through a specific state sequence.

Lecture 8: Synchronous Digital Systems

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

Chapter 5. Sequential Logic

Counters & Shift Registers Chapter 8 of R.P Jain

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Engr354: Digital Logic Circuits

CHAPTER 11 LATCHES AND FLIP-FLOPS

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Chapter 8. Sequential Circuits for Registers and Counters

Design: a mod-8 Counter

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Combinational Logic Design Process

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Digital Controller for Pedestrian Crossing and Traffic Lights

BINARY CODED DECIMAL: B.C.D.

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Upon completion of unit 1.1, students will be able to

Memory Elements. Combinational logic cannot remember

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Cascaded Counters. Page 1 BYU

ECE380 Digital Logic

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Digital Electronics Detailed Outline

Flip-Flops, Registers, Counters, and a Simple Processor

Contents COUNTER. Unit III- Counters

ASYNCHRONOUS COUNTERS

Layout of Multiple Cells

Master/Slave Flip Flops

(1) /30 (2) /30 (3) /40 TOTAL /100

Theory of Logic Circuits. Laboratory manual. Exercise 3

Counters. Present State Next State A B A B

DEPARTMENT OF INFORMATION TECHNLOGY

Sequential Logic: Clocks, Registers, etc.

CHAPTER 11: Flip Flops

CHAPTER 3 Boolean Algebra and Digital Logic

Lecture-3 MEMORY: Development of Memory:

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Operating Manual Ver.1.1

Chapter 2 Logic Gates and Introduction to Computer Architecture

Systems I: Computer Organization and Architecture

Decimal Number (base 10) Binary Number (base 2)

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Multilevel Sequential Logic Circuit Design

The components. E3: Digital electronics. Goals:

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Chapter 9 Latches, Flip-Flops, and Timers

Sequential Logic Design Principles.Latches and Flip-Flops

Digital Logic Elements, Clock, and Memory Elements

2.0 Chapter Overview. 2.1 Boolean Algebra

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Binary Adders: Half Adders and Full Adders

EXPERIMENT 8. Flip-Flops and Sequential Circuits

Lecture 7: Clocking of VLSI Systems

Sequential Circuit Design

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Fig1-1 2-bit asynchronous counter

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

BOOLEAN ALGEBRA & LOGIC GATES

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

ECE232: Hardware Organization and Design. Part 3: Verilog Tutorial. Basic Verilog

7. Latches and Flip-Flops

Finite State Machine Design and VHDL Coding Techniques

University of Toronto Faculty of Applied Science and Engineering

A New Paradigm for Synchronous State Machine Design in Verilog

An Extension to DNA Based Fredkin Gate Circuits: Design of Reversible Sequential Circuits using Fredkin Gates

Traffic Light Controller. Digital Systems Design. Dr. Ted Shaneyfelt

Wiki Lab Book. This week is practice for wiki usage during the project.

Let s put together a Manual Processor

Lab 1: Study of Gates & Flip-flops

CSE140: Components and Design Techniques for Digital Systems

Digital Fundamentals

PROGETTO DI SISTEMI ELETTRONICI DIGITALI. Digital Systems Design. Digital Circuits Advanced Topics

Transcription:

ENEE 244 (01**). Spring 2006 Homework 5 Due back in class on Friday, April 28. 1. Fill up the function table (truth table) for the following latch. How is this latch related to those described in the lectures and in the textbook? (Describe similarities and differences with the most closely related latch). C S R Q+ Q+ 0 X X Q Q 1 0 0 Q Q 1 0 1 0 1 1 1 0 1 0 1 1 1 0* 0* The last row should not be used since it causes unpredictable behavior thereafter. We observe that this function table is identical to that of a gated SR latch. 2. The gated S R latch in Question 9 has unpredictable behavior if the S and R inputs are both equal to 1 when C changes to 0. One way to solve this problem is to create a set dominated gated SR latch in which the condition S=R=1 causes the latch to be set to 1. Design a set dominated gated SR latch. Show the circuit. (Hint: Let the original circuit remain as it is, but add some external circuitry.) Since we want the latch to be Set Dominated, it means that whenever R=S=1, the condition for Setting the latch should come about. Let us assume the external circuit takes the inputs S and R. Further the internal SR latch takes inputs Sint and Rint. The relation between S,R and Sint, Rint is given by the following truth table: S R Sint Rint 0 0 0 0 0 1 0 1 1 0 1 0 1 1 1 0 1

From the table, Sint=SR + SR = S Rint=S R Thus the circuit is: 3. A PN flip-flop has 4 operations: clear to 0, no change, complement, and set to 1, when inputs P and N are 00,01,10, and 11, respectively. Tabulate its characteristic table (called the simplified function table by the Givone text). Derive its characteristic equation. Characteristic table: P N Q+ 0 0 0 0 1 Q 1 0 Q 1 1 1 Expanding this to a next-state table: P N Q Q+ 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1 By expressing the Q+ function as a canonical form function and minimizing using a K-map (not shown) we get: Q+ = PQ + NQ 4. Show how to implement a D flip flop starting with a J K flip flop. Here is the desired relationship between the external D input and the internal J,K inputs: D J K 0 0 1 //This row is chosen to reset the JK FF 1 1 0 //This row is chosen to set the JK FF 2

Expressing J,K in terms of D: J=D K=D Thus to get a D flip flop from a JK FF, connect the D input to J and D to K. 5. A sequential circuit contains two flip-flops T1 and T2. The circuit has no external inputs. The only external output are the values of the current state (Q1 and Q2). The flip-flop inputs are connected as: T1 = Q1 + Q2 T2 = Q1 + Q2 Explain the function that the circuit performs. The characteristic equation of a T FF is given by: Q+ = T Q We derive the transition equations of the circuit by substituting the FF input equations into the characteristic equation. This gives: Q1+ = (Q1 + Q2) Q1 Q2+ = (Q1 + Q2) Q2 From this, we derive the transition table: Present state (Q1Q2) 00 01 01 10 10 00 11 00 Next state (Q1+Q2+) From the transition table, we can reason about the circuit. The circuit is a counter, i.e, a circuit that counts the number of clock pulses it gets. In particular it is a modulo-3 counter, which is a circuit that counts in the sequence 0,1,2, 0,1,2. Further it has the nice property such that if it ever enters the unused state of 3 (11) such as at startup, it returns to 0, never to go to state 3 again. 6. A sequential circuit has two JK flip flops with outputs Q1 and Q2 and one input x. The circuit is described by the following flip flop input equations: J1 = x J2= x K1= Q2 K2= Q1 a) Derive the next-state equations for the circuit. b) Draw the state diagram. The characteristic equation of a JK FF is: Q+ = JQ + K Q Substituting the FF input formulas in the characteristic equation, we get: Q1+=J1Q1 + K1 Q1 = xq1 + Q2Q1 Q2+ = J2Q2 + K2 Q2 = xq2 + Q1 Q2 From this, we can fill the state table (not shown) and from that, the state diagram: 3

7. Derive the state table for the circuit drawn below. Here the FF inputs are: DA = (QA + QB)W DB = (QA + QB )W For a D FF, the FF inputs are equal to the next state. Thus the state table is: PRESENT NEXT W=0 NEXT W=1 00 00 10 0 01 00 11 1 10 00 11 0 11 00 01 0 OUTPUT Z 4

8. Draw the state diagram for a Mealy machine that accepts an infinite sequence of bits, and outputs a 1 if the last four bits input are 1100; otherwise the output is 0. For example, for the input below, the output should be as shown: INPUT: 00110110011... OUTPUT:00000000100... Use no more than 4 states in your state diagram. Be careful that your solution works for the above input. What is the minimum number of flip flops needed for implementing your state diagram? A B C D Note that this circuit requires four states. A Moore machine to implement the same circuit requires five states. A four state machine can be implemented in log 2 4 = 2 flip-flops. //The x notation represents the ceiling of real number x. 9. Derive the state diagram for a Moore machine that has an input w and an output z. The machine has to generate z=1 when the pervious four values of w were 1001 or 1111; otherwise the output z=0. Overlapping input patterns are allowed. Example: w: 010111100110011111... z: 000000100100010011... Use no more than eight states in your solution. What is the minimum number of flip flops needed for implementing your state diagram? 0/1 There are 8 states. The number of flip flops is given by log2(k), where k=number of states. Hence for 8 states, the number of flip flops is log2(8) = 3 5