Next: 2 Lab
Up: Lab 7: Sequential Circuits
Previous: Lab 7: Sequential Circuits
- Assuming that we want a minimum resolution of measuring your reaction
time to be 1/100 of a second but your board has a 50MHz clock. How can
you use a counter to generate a clock with frequency 100Hz.
- Now that you have a 100Hz clock, you can use that to count
the time it takes you to press the switch after the LED goes
on and display that on two 7-segment displays. To accomplish
this you will need to write a code that will increment the
least significant digit and every time it reaches the number
9 you reset it and increment the most significant digit. Write
a Verilog code to implement the two digit BCD counter as shown
in Figure 1.
- Write a Verilog code to implement the entire circuit as shown in
Figure 1. Use one of the LEDs on your board.
Copyright © 2008, Electrical Engineering Department, New Mexico Tech
Last Modified 2009-10-19