Lab 5 FPGA Design Flow Based on Aldec Active-HDL. Fast Reflex Game.

Similar documents
1. Synopsis: 2. Description of the Circuit:

EE 209 Lab 7 A Walk-Off

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

Main Design Project. The Counter. Introduction. Macros. Procedure

Traffic Light Controller

ENGG2410: Digital Design Lab 5: Modular Designs and Hierarchy Using VHDL

Main Design Project. The Counter. Introduction. Macros. Procedure

CPE 200L LABORATORY 3: SEQUENTIAL LOGIC CIRCUITS UNIVERSITY OF NEVADA, LAS VEGAS GOALS: BACKGROUND: SR FLIP-FLOP/LATCH

Laboratory Exercise 7

Experiment # 12. Traffic Light Controller

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

Modeling Latches and Flip-flops

Serial FIR Filter. A Brief Study in DSP. ECE448 Spring 2011 Tuesday Section 15 points 3/8/2011 GEORGE MASON UNIVERSITY.

The Nexys 4 Number Cruncher. Electrical and Computer Engineering Department

The Calculative Calculator

FPGA Laboratory Assignment 4. Due Date: 06/11/2012

Faculty of Electrical & Electronics Engineering BEE3233 Electronics System Design. Laboratory 3: Finite State Machine (FSM)

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

Lab 17: Building a 4-Digit 7-Segment LED Decoder

Design of a Binary Number Lock (using schematic entry method) 1. Synopsis: 2. Description of the Circuit:

Programmable Logic Design I

COMPUTER ENGINEERING PROGRAM

Figure 1 Block diagram of a 4-bit binary counter

EEM Digital Systems II

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

Modeling Latches and Flip-flops

Lab 2: Hardware/Software Co-design with the Wimp51

CPE 329: Programmable Logic and Microprocessor-Based System Design

Traffic Light Controller. Thomas Quinn, Brandon Londo, Alexander C. Vincent, Yezan Hussein

Ryerson University Department of Electrical and Computer Engineering COE/BME 328 Digital Systems

Ryerson University Department of Electrical and Computer Engineering EES508 Digital Systems

University of Pennsylvania Department of Electrical and Systems Engineering. Digital Design Laboratory. Lab8 Calculator

Lab 4: Hex Calculator

Rensselaer Polytechnic Institute Computer Hardware Design ECSE Report. Lab Three Xilinx Richards Controller and Logic Analyzer Laboratory

Lab #11: Register Files

Design Problem 4 Solutions

ECSE-323 Digital System Design. Datapath/Controller Lecture #1

Laboratory 4 Check Off Sheet. Student Name: Staff Member Signature/Date: Part A: VGA Interface You must show a TA the following for check off:

CSCB58 - Lab 4. Prelab /3 Part I (in-lab) /1 Part II (in-lab) /1 Part III (in-lab) /2 TOTAL /8

Vending Machine. Keywords FSM, Vending Machine, FPGA, VHDL

Fixed-Point Calculator

Spartan-II Development System

PHYS 3322 Modern Laboratory Methods I Digital Devices

EE178 Lecture Module 4. Eric Crabill SJSU / Xilinx Fall 2005

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Lab #6: Combinational Circuits Design

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

Design and implementation (in VHDL) of a VGA Display and Light Sensor to run on the Nexys4DDR board Report and Signoff due Week 6 (October 4)

EET 1131 Lab #12 - Page 1 Revised 8/10/2018

Laboratory 4 Check Off Sheet. Student Name: Staff Member Signature/Date: Part A: VGA Interface You must show a TA the following for check off:

Smart Night Light. Figure 1: The state diagram for the FSM of the ALS.

ENGG 1203 Tutorial. D Flip Flop. D Flip Flop. Q changes when CLK is in Rising edge PGT NGT

EE 101 Lab 7 Crosswalk

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

California State University, Bakersfield Computer & Electrical Engineering & Computer Science ECE 3220: Digital Design with VHDL Laboratory 7

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

You will be first asked to demonstrate regular operation with default values. You will be asked to reprogram your time values and continue operation

NEW MEXICO STATE UNIVERSITY Electrical and Computer Engineering Department. EE162 Digital Circuit Design Fall Lab 5: Latches & Flip-Flops

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

Review : 2 Release Date : 2019 Last Amendment : 2013 Course Code : SKEE 2742 Procedure Number : PK-UTM-FKE-(0)-10

OL_H264e HDTV H.264/AVC Baseline Video Encoder Rev 1.0. General Description. Applications. Features

Lab #11: Register Files

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

ASYNCHRONOUS COUNTER CIRCUITS

Experiment 8 Introduction to Latches and Flip-Flops and registers

Laboratory Exercise 7

Spartan-II Development System

EECS150 - Digital Design Lecture 19 - Finite State Machines Revisited

Laboratory 4. Figure 1: Serdes Transceiver

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

Laboratory 8. Digital Circuits - Counter and LED Display

FSM Implementations. TIE Logic Synthesis Arto Perttula Tampere University of Technology Fall Output. Input. Next. State.

Lab Assignment 5 I. THE 4-BIT CPU AND CONTROL

LAB #6 State Machine, Decoder, Buffer/Driver and Seven Segment Display

CMSC 313 Preview Slides

Synchronizing Multiple ADC08xxxx Giga-Sample ADCs

OL_H264MCLD Multi-Channel HDTV H.264/AVC Limited Baseline Video Decoder V1.0. General Description. Applications. Features

Experiment: FPGA Design with Verilog (Part 4)

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

DepartmentofElectronicEngineering NEDUniversity ofengineering &Technology LABORATORY WORKBOOK DIGITAL LOGIC DESIGN (TC-201)

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

CS 254 DIGITAL LOGIC DESIGN. Universal Asynchronous Receiver/Transmitter

Lab Assignment 2 Simulation and Image Processing

Digital Electronics II 2016 Imperial College London Page 1 of 8

EE 210. LOGIC DESIGN LAB.

Universal Asynchronous Receiver- Transmitter (UART)

Chapter 11 State Machine Design

Task 4_B. Decoder for DCF-77 Radio Clock Receiver

SERDES Eye/Backplane Demo for the LatticeECP3 Serial Protocol Board User s Guide

Digital Logic. ECE 206, Fall 2001: Lab 1. Learning Objectives. The Logic Simulator

EECS 140 Laboratory Exercise 7 PLD Programming

Digital Fundamentals: A Systems Approach

Lab 13: FPGA Circuit Realization Ian Callahan

COMP2611: Computer Organization Building Sequential Logics with Logisim

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Exercise 2: D-Type Flip-Flop

University of Victoria. Department of Electrical and Computer Engineering. CENG 290 Digital Design I Lab Manual

Operating Manual Ver.1.1

Tutorial 11 ChipscopePro, ISE 10.1 and Xilinx Simulator on the Digilent Spartan-3E board

Transcription:

Lab 5 FPGA Design Flow Based on Aldec Active-HDL. Fast Reflex Game. Task 0 (tested during lab demonstration) Get familiar with the Tutorial on FPGA Design Flow based on Aldec Active-HDL. Be ready to perform every step of the design flow for an arbitrary circuit during the Lab 5 Demo. Task 1 (30%) Perform all steps of the FPGA Design Flow for your Top-Level Circuits from 1. Lab 4, Task 5, shown in Fig. 1. 2. Lab 4, Task 6, shown in Fig. 2. Please make sure to correctly set values of generics: 1. DD and k in the Debouncer, so they correspond to the debouncing period of about 10 ms. 2. k in the SSD_DRIVER, so it corresponds to the Refresh period in the range between 1 ms and 16 ms. Test both circuits experimentally, using Nexys 3 board, and verify that they operate correctly. If necessary, modify your VHDL code in order to correct your circuit operation. Fig. 1: Block Diagram of the Top-Level Circuit for Lab 4, Task 5.

Fig. 2: Block Diagram of the Top-Level Circuit for Lab 4, Task 6. Fig. 3: Block Diagram of CLK_RST_3.

Task 2 (20%) Modify your circuit from Lab 4, Task 6, by replacing the CLK_RST_2 unit with the CLK_RST_3 unit shown in Fig. 3. By changing values of the generics CLKFX_DIVIDE and CLKFX_MULTIPLY, set the clock frequency f clkfx to the value about 20-50% above the maximum clock frequency returned by the tools. Demonstrate experimentally that the circuit operates correctly for one clock frequency (100 MHz), but fails for the second clock frequency (higher than the maximum clock frequency returned by the tools). Observe signals CLOCK100 and CLKFX using oscilloscope for two versions of your circuit (with different values of the DCM_SP generics), in such a way that you can see clock signals with the frequencies of: A. f CLK = 100 MHz B. f CLK = maximum clock frequency returned by the tools C. f CLK = 10 MHz. Document your findings using digital photos. Discuss your observations. Task 3 (50%) Develop a VHDL code for the Fast Reflex Game, specified as follows: At the beginning of the game, the BCD Counter (displayed using a Seven Segment Display) is initialized to 10.00. After pressing the start_stop button (BTNS) the counter starts counting down every 0.01 second: 9.99, 9.98, 9.97,, 0.02, 0.01, 0.00, -0.01, -0.02 The goal is to press the start_stop button again as close as possible to the value 0.00. After the second press, the counter is stopped. The last obtained result can be a. stored with the press of the store button (BTNU) b. skipped with the press of the skip button (BTND). After performing these operations the counter is again initialized to 10.00. Only the last four stored results are remembered by the system. The minimum and the maximum absolute value of the last four stored results is calculated. The clear button (BTNL) clears the storage, and initializes the counter to 10.00.

The next_out button (BTNR) allows displaying 1. current value of the counter 2. the last stored result 3. the result with the minimum absolute value 4. the result with the maximum absolute value. After each press of the next_out button, the mode of display changes to the next one in the wrap- around fashion. The current mode is also indicated with an appropriate number of the rightmost LEDs turned on (1 for the current value of the counter, 2 for the last stored result, etc.). The simultaneous press of the buttons clear (BTNL) and skip (BTND) represents a soft reset. The meaning of the buttons is summarized in Fig. 4. Fig. 4: Meaning of buttons in the Fast Reflex Game.

Fig. 5: Top-level block diagram of the Fast Reflex Game. The block diagram of the top- level circuit is shown in Fig. 5. The circuit uses the following lower- level units: 1. BCD_CD: BCD Counter Down, capable of counting down from 10.00 to - 9.99 2. CU_mod_N: k- bit Counter Up mod N, generating a pulse at the output cout each time the value of the counter changes from N- 1 to 0. The generics k and N should be chosen in such a way that the pulse cout is generated every 0.01 second. 3. RSP: the Result Storage and Processing unit, capable of storing four last results. The circuit should also calculate the minimum and the maximum of absolute values of these results. The select_out signal should allow choosing among: a. the input result, b. the last result (i.e., the result stored most recently), c. the minimum of four stored results, and d. the maximum of four stored results. 4. BUTTON_UNIT: the circuit used to convert a press of each button into a single pulse of the duration of the clock period. 5. CLK_RST_1: simple circuit for generating clk and rst. 6. SSD_DRIVER: Seven Segment Display Driver 7. OUT_FORMAT: a simple circuit for preparing hex inputs to the SSD_DRIVER, and driving LEDs. 8. CONTROLLER: controller based on a finite state machine.

The detailed block diagrams of the circuits 1-6 are provided in the introductory lecture slides. The design of the OUT_FORMAT unit and the CONTROLLER is left up to you. Bonus Task (up to 33% of bonus points) Extend the Fast Reflex Game with additional features of your own invention. The number of points you receive will depend on the usefulness, originality, and complexity of additional features you implement. Deliverables: 1. For Tasks 1: A. A short report stating the status of your two circuits (Lab 4, Task 5 and Lab 4, Task 6) and listing all major changes introduced to your VHDL code in order to eliminate errors observed during experimental testing (after the circuit passed the functional simulation) B. Synthesizable VHDL code C. UCF file D. Resource utilization, minimum clock period, slack, and maximum clock frequency after placing & routing E. Configuration bitstream. 2. For Task 2: A. A short report describing your findings and observations, including photos of the oscilloscope screen B. Synthesizable VHDL code C. Testbench for CLK_RST3 D. UCF file E. Configuration bitstream. 3. For Task 3: A. Syntesizable VHDL code B. Testbench(es) C. UCF file D. Resource utilization, minimum clock period, slack, and maximum clock frequency after placing & routing E. Configuration bitstream.

Important Dates Hands-on Session and Introduction to the Experiment Deliverables Due Demo Due Wednesday Section Thursday Section 02/20/2013 02/21/2013 03/09/2013 03/10/2013 03/11-13/2013 03/11-13/2013