Lab 4

horizontal rule

ece333 | doering | ece labs | ece | rhit

Home
Schedule
Course Information
Policies
Homework
Labs
Resources

Verilog Projects with GAL PLDs

horizontal rule

 

Introduction

In this last lab dealing with GAL programmable logic devices, you will gain experience using Verilog (instead of ABEL) as the method for describing your circuit design to the CAD tools.

Objective

bulletImplement simple combinational and sequential circuits on GAL PLDs using Verilog

Parts List

bulletGAL22V10 PLD
bullet74HC4040 12-stage binary counter

Equipment

bulletAgilent 54622D mixed-signal oscilloscope (MSO)
bulletDigital probes for MSO
bulletAgilent 33120A function/arbitrary waveform generator
bulletFixed 5-volt power supply
bulletBreadboard

horizontal rule

Prelab

  1. Study the on-line documentation for procedures for implementing a Verilog-based design on a GAL programmable logic device (see ECE333 web page, “Resources” section, then PLD Design Flow: GAL, Verilog). Note that the procedure is very similar to the ABEL-based method, but significant differences exist in setting up the project, assigning pin locations, and applying test vectors.
     
  2. Write, enter, and simulate a bit counter specified as follows:
bulletAccepts a 5-bit input
bulletProduces a 3-bit output
bulletThe output is the binary representation of the number of input bits that are “1”.
bulletExample: the input “10110” produces the output “011” (three).

NOTE: You will need to use the version of ispLEVER that is installed in B-200. Verilog synthesis appears to be disabled in the "Starter Kit" version.

  1. Analyze the sequential circuit described in Verilog below so that you can draw the gate-level equivalent circuit (individual flip-flops, gates, and wires):
module WhatIsIt (C,R,Q);
   input C,R;
   output [2:0] Q;

   reg [2:0] Q;

   always @ (posedge C or posedge R)
      if (R)
         Q <= 3'b1;
      else
         Q <= {Q[2]^Q[0],Q[2],Q[1]};

endmodule
  1. Your lab notebook pages should include all your work, including Verilog descriptions, simulation test vectors, and simulation waveforms.
     
  2. A photocopy of your prelab pages is due at the beginning of the class the day before lab.

Lab

Please use the Lab Help Queue to request assistance in lab.

  1. Implement and test your bit counter using five bits of your 74HC4040 as the input. Explain your test method and evaluate your results.
     
  2. Demonstrate your bit counter to the instructor.
     
  3. Implement and test the sequential circuit. Propose an explanation for the behavior of this circuit. Suggest a possible use for this circuit.
     
  4. Demonstrate your sequential circuit to the instructor.
     

All done!

bulletClean up your work area
bulletRemember to submit your lab notebook for grading at the beginning of next week's lab

 

horizontal rule

Home | Schedule | Course Information | Policies | Homework | Labs | Resources

 ECE333: Digital Systems (W 2002-03)
Department of Electrical and Computer Engineering
Rose-Hulman Institute of Technology


For questions or comments regarding this web contact:
Last updated: 03/10/05.