Lab #10: Finite State Machine Design

Similar documents
EE 307 Project #1 Whac-A-Mole

Digital Electronics Course Objectives

Lab Experiments. Boost converter (Experiment 2) Control circuit (Experiment 1) Power diode. + V g. C Power MOSFET. Load.

Digital Electronic Concepts

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

HIGH LOW Astable multivibrators HIGH LOW 1:1

To design/build monostable multivibrators using 555 IC and verify their operation using measurements by observing waveforms.

Java Bread Board Introductory Digital Electronics Exercise 2, Page 1

EXPERIMENT 12: DIGITAL LOGIC CIRCUITS

Digital Logic Circuits

Lab 12: Timing sequencer (Version 1.3)

PRESENTATION OF THE PROJECTX-FINAL LEVEL 1.

Sequential Logic Circuits

DEPARTMENT OF ELECTRICAL ENGINEERING LAB WORK EE301 ELECTRONIC CIRCUITS

Exercise 1: AND/NAND Logic Functions

OBJECTIVE The purpose of this exercise is to design and build a pulse generator.

Digital Logic Troubleshooting

ELECTROVATE. Electromania Problem Statement Discussion

ICS 151 Final. (Last Name) (First Name)

Solutions. ICS 151 Final. Q1 Q2 Q3 Q4 Total Credit Score. Instructions: Student ID. (Last Name) (First Name) Signature

Sequential Logic Circuits

CPE 100L LOGIC DESIGN I

UMAINE ECE Morse Code ROM and Transmitter at ISM Band Frequency

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

CONTENTS Sl. No. Experiment Page No

Experiment EB2: IC Multivibrator Circuits

t w = Continue to the next page, where you will draw a diagram of your design.

Exercise 2: OR/NOR Logic Functions

Class #6: Experiment The 555-Timer & Pulse Width Modulation

LABORATORY 6 v3 TIME DOMAIN

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Lab 7: DELTA AND SIGMA-DELTA A/D CONVERTERS

Lab 2 Revisited Exercise

UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC 180A DIGITAL SYSTEMS I Winter 2015

ASTABLE MULTIVIBRATOR

ENGINEERING TRIPOS PART II A ELECTRICAL AND INFORMATION ENGINEERING TEACHING LABORATORY EXPERIMENT 3B2-B DIGITAL INTEGRATED CIRCUITS

PHYSICS 536 Experiment 14: Basic Logic Circuits

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

Code No: R Set No. 1

LABORATORY EXPERIMENT. Infrared Transmitter/Receiver

Verification of competency for ELTR courses

ANALOG TO DIGITAL CONVERTER

Department of Electronics & Communication Engineering LAB MANUAL SUBJECT: DIGITAL COMMUNICATION LABORATORY [ECE324] (Branch: ECE)

Project Board Game Counter: Digital

EE2304 Implementation of a Stepper Motor using CMOS Devices Fall 2004 WEEK -2-

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

Electronic Instrumentation

Exercise 1: EXCLUSIVE OR/NOR Gate Functions

Lab 8: SWITCHED CAPACITOR CIRCUITS

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

DC/AC CIRCUITS: CONVENTIONAL FLOW TEXTBOOKS

). The THRESHOLD works in exactly the opposite way; whenever the THRESHOLD input is above 2/3V CC

ENGR-4300 Fall 2006 Project 3 Project 3 Build a 555-Timer

Laboratory Manual CS (P) Digital Systems Lab

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

Lab Exercises. Exercise 1. Objective. Theory. Lab Exercises

Lab# 13: Introduction to the Digital Logic

555 Timer and Its Application

Electronics. RC Filter, DC Supply, and 555

Module -18 Flip flops

TTL LOGIC and RING OSCILLATOR TTL

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab Timer: Blinking LED Lights and Pulse Generator

First Optional Homework Problem Set for Engineering 1630, Fall 2014

Practical Workbook Logic Design & Switching Theory

Number of Lessons:155 #14B (P) Electronics Technology with Digital and Microprocessor Laboratory Completion Time: 42 months

Digital Electronics. A. I can list five basic safety rules for electronics. B. I can properly display large and small numbers in proper notation,

ENG 100 Electric Circuits and Systems Lab 6: Introduction to Logic Circuits

University of California at Berkeley Donald A. Glaser Physics 111A Instrumentation Laboratory

Geared Oscillator Project Final Design Review. Nick Edwards Richard Wright

High Group Hz Hz. 697 Hz A. 770 Hz B. 852 Hz C. 941 Hz * 0 # D. Table 1. DTMF Frequencies

Name: First-Order Response: RC Networks Objective: To gain experience with first-order response of RC circuits

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

CHAPTER 5 NOVEL CARRIER FUNCTION FOR FUNDAMENTAL FORTIFICATION IN VSI

ECEN 720 High-Speed Links: Circuits and Systems. Lab3 Transmitter Circuits. Objective. Introduction. Transmitter Automatic Termination Adjustment

Time: 3 hours Max. Marks: 70 Answer any FIVE questions All questions carry equal marks

3.1 There are three basic logic functions from which all circuits can be designed: NOT (invert), OR, and

Theory: The idea of this oscillator comes from the idea of positive feedback, which is described by Figure 6.1. Figure 6.1: Positive Feedback

VCC. Digital 16 Frequency Divider Digital-to-Analog Converter Butterworth Active Filter Sample-and-Hold Amplifier (part 2) Last Update: 03/19/14

555 Timer/Oscillator Circuits

Draw in the space below a possible arrangement for the resistor and capacitor. encapsulated components

Basic Logic Circuits

Dedan Kimathi University of technology. Department of Electrical and Electronic Engineering. EEE2406: Instrumentation. Lab 2

UNIT II: Clocked Synchronous Sequential Circuits. CpE 411 Advanced Logic Circuits Design 1

Breadboard Primer. Experience. Objective. No previous electronics experience is required.

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

Lecture 7 ECEN 4517/5517

15EI205L-ANALOG AND DIGITAL INTEGRATED CIRCUITS LABORATORY MANUAL

EECE 143 Lecture 0: Intro to Digital Laboratory

ECE 261 CMOS VLSI Design Methodologies. Final Project Report. Vending Machine. Dec 13, 2007

Experiment # 1 Introduction to Lab Equipment

DEGREE: BACHELOR IN INDUSTRIAL ELECTRONICS AND AUTOMATION YEAR: 2ND TERM: 2ND

University of Pittsburgh

Entry Level Assessment Blueprint Electronics Technology

Lab 5. Binary Counter

DIGITAL TO ANALOG AND ANALOG TO DIGITAL CONVERTER

State Machine Oscillators

Real Analog - Circuits 1 Chapter 11: Lab Projects

ENEE307 Lab 7 MOS Transistors 2: Small Signal Amplifiers and Digital Circuits

Lab 6. Binary Counter

ENGR 210 Lab 12: Analog to Digital Conversion

Transcription:

Lab #10: Finite State Machine Design Zack Mattis Lab: 3/2/17 Report: 3/14/17 Partner: Brendan Schuster

Purpose In this lab, a finite state machine was designed and fully implemented onto a protoboard utilizing 2 inputs to create a unique output sequence over a series of 8 clock cycles. The design was built and simulated using Altera Quartus 9.1. The utilization of this software enabled a simulation of the output waveform based on simulated inputs. With the confirmation of the design from the Quartus simulation, the design was implemented on a breadboard using the following ICs: 2 D Flip-Flops (74LS74), 1 AND (74LS08), 1 OR (74LS32), 1 XOR (74LS86), 1 8:1 Multiplexer (74LS151), and 1 555 timer. Additionally, 4 resistors, 2 capacitors, and 1 8-pronged SPST switch. Finally, the finished design was tested using LogicPort software to ensure proper operation. The design constraints for the output can be seen in Figure 1. AB Z 00 01 10 11 0000000100000001... 0000011100000111... 0001111100011111... 0111111101111111... Figure 1 Procedure The original design for the finite state machine was initially created from the state transition diagram that can be seen in Figure 2 below. Our design utilized a Mealy Machine design to reduce the number of necessary states. This diagram was then utilized to create a state transition table to determine the next state based on inputs and previous states. This table can be seen in Figure 3 below. Using the state transition table, we designed a synchronous 3-bit counter to store states 0-7. This design uses D flip flops (74LS74 IC) and can be seen in Figure 4 below. In order to generate the output of the design, an 8:1 multiplexer was utilized that uses the flip flop states Q2-Q0 as select lines and combinational logic of inputs A and B for the MUX inputs. This design can be seen in Figure 5 below. The final design of the finite state machine utilizes 2 XOR gates, 2 AND gates, 1 OR gate, as well as 3 D flip-flops, 1 555 timer, and 1 8:1 MUX. This design can be seen in Figure 6 below.

Figure 2 Figure 3 Figure 4 Figure 5

Figure 6 After completion of the design, the circuit was created using Altera Quartus 9.1 to analyze its behavior. The completed design can be seen in Figure 7 (see attached). The Quartus software includes a waveform simulation that can be used to see the output of the created circuit. Using the NodeFinder function, Quartus was able to take all of the input and output signals and translate them into the waveform simulation. This simulation allows for user inputted data for each of the inputs. For our design implementation, we utilized a high signal for both the preset and clear inputs combined with an oscillating square-wave input for the clock. After running the simulation, the output of the Q signals can be observed. Additionally, the output sequence for inputs A=0, B=0 can be seen in Figure 8 (see attached). Inputs A=1, B=1 are visible in Figure 9 (see attached). After verification of the circuit operation from the Quartus software, the design was physically implemented on the protoboard through the use of IC chips and wires. The finished circuit implementation can be seen in Figure 10 below. In order to test the functionality of the protoboard circuit, the oscilloscope was used to observe the output waveform of the finite state machine. The output of the circuit for inputs 00, 01, 10, and 11 can be seen in Figures 11, 12, 13, and 14, respectively.

Figure 10

Figure 11 Figure 13 Figure 12 Figure 14

Finally, our design was tested using the LogicPort Logic Analyzer. This devices converts the analog signal of the circuit into a digital form of 0s and 1s. This tool enables effective observation of the circuit s inputs and outputs. In our testing, we connected the device to our clock as well as 6 inputs. Inputs D0-D5 were: input A, input B, Q0, Q1, Q2, and output. The generated waveforms for inputs 00, 01, 10, and 11 can be observed in Figures 15, 16, 17, and 18, respectively (see attached). Results The schematic of the design for the finite state machine can be seen in Figures 6 and 7. By using combinational logic, we were able to successfully create a 3-bit synchronous counter to store states 0-7. This was achieved using XOR gates with the lower bit Q value(s) as well as the previous Q state. For example, input D1 = Q0 Q1 and input D2 = Q0Q1 Q2. With each state stored in the flip-flops, the Q values can be used as the select lines for an 8:1 MUX to get the correct output for the specified state. Combinational logic of the inputs A and B were used to get inputs M0 M7 for the MUX. These inputs were 0, AB, AB, A, A, A+B, A+B, and 1, respectively. The 555 timer, as seen in Figure 19 below, was designed using a capacitance of 10.8 nf and a resistance of 500 Ω. This output timing was calculated using the equations from the ECE 501 Lab Manual. This device implementation led to a calculated period T was 10.397 μ s. The output of this timing circuit was used as the input for the clocking signal of each D flip-flop. Figure 19

The Quartus implementation of the finite state machine verified the operation of the design, providing the necessary output waveform as specified in the design constraints. After physical implementation on the protoboard, both the oscilloscope and the LogicPort Logic Analyzer further verified proper operation of the circuit. As the inputs A and B increased from 00 to 11, the time high (th) of the output waveform increased as well. This can be seen in Figures 11-14 for the oscilloscope and Figures 1518 for the Logic Analyzer. The resultant duty cycles of the output waveform for inputs 00, 01, 10, and 11 were ~ 12.5%, 37.5%, 62.5%, and 87.5%, respectively. These duty cycles are consistent with the expected outputs of the finite state machine. Conclusion Our original design (Figure 6) proved to be a successful implementation of the finite state machine. With the design constraint of the circuit switching to the proper output sequence at any point based on the inputs A and B, the design was greatly simplified to a Mealy Machine with only 8 states. These 8 states were stored using a 3bit synchronous counter, which shared a common clock from a 555 timer. The ability to use a MUX further simplified the design as the use of the Q states of the flip-flops as the select lines allowed for MUX inputs dependent only upon A and B. These inputs were implemented through the use of simple combinational logic. Both the oscilloscope and LogicPort Logic Analyzer verified proper operation of the finite state machine by providing the output waveform with the corresponding duty cycles. The use of circuit simulation software, specifically LogicPort, provided an effective and efficient technique of converting the analog signals of the circuit into digital waveforms for easy viewing. References 1. ECE 0501 Digital Systems Laboratory Custom Course Materials. Laboratory Notebook. University of Pittsburgh.