Skip to content

ENGR 2705 - Lab #11

Title:

Counters

Objectives:
  • Understand how a counter works
  • Build a counter with Verilog
Parts:
  • PC running Quartus II
  • Altera DE2 Board
Procedure:
  1. Counter via Verilog: Implement and simulate the 4-bit binary up-counter using Verilog given in Example 5.13 on page 298 of the text. Verify a valid symbol is produced for the up-counter. Perform both simulations. Place all the regular information in your lab book going through the standard steps.
  2. Combine Circuits: Using the graphical editor, combine the seven segment display circuit from Lab #7 and the counter from above to build a circuit that counts pulses and displays the count on the seven segment display. Get a copy of Lab #7 from someone if necessary. Make pin assignments. Use a debounced push-button switch for the count/clock input. Place appropriate information in your lab book.
  3. Download the combined circuit onto the DE2 board. Verify the circuit works correctly. Record results in your lab book.  Show your working circuit to the instructor.
Conclusions:
  1. Discuss how well the objectives were met.
  2. Discuss what you learned.