This laboratory will give you confidence to use the CAD tools associated with targeting a Verilog description to a Xilinx Spartan FPGA board.
In this lab, you will be using the main controller board. You will design a character message that can be displayed on the 4-digit 7-segment display. The message must be 4 characters long (different characters). You can use numbers, letters, or any character of your design. Be creative. Be certain to read the users manual of the board before designing your circuit so you know how to properly drive the 7-segment display. Also, look at the functionality of the push buttons so you will know whether the reset for your system should be active high or active low. (The slide switches cannot be used currently because they must be de-bounced. We will discuss how to de-bounce switches in one of the next lectures.)
A few notes about the Four-Digit, Seven -Segment LED display of your Xilinx Spartan-3 FPGA board :
1) All 12 signals ( four Enable signals, one for each digit, the cathodes of each of the 7 segments, and the cathode of the decimal point) of the 7-segment display must be activated at something at all times. The LED enable signals are time-multiplexed to display data on all four characters. Through persistence of vision, the human brain perceives that all four character appear simultaneously, similar to the way the brain perceives a TV display. This "scanning techniques" reduces the number of I/O pins required for the four characters and reduce power dissipation.
2. The entire system must be driven by the 50MHz master clock. You can divide this clock down to the frequency necessary by the refresh rate, which may take values between 60 Hz and 1 kHz. At these refresh rates, the human brain perceives that all four character appear simultaneously.
The Verilog code given to you in the sequential notes may be used to do the clock division. If your system is driven by the clock edge, you do not need a 50% duty cycle for your system to operate correctly. See clock divider on the PP presentation. To understand how it works use the the following Verilog files slowclock.v and slowclock_TB.v for simulation.
3) The display must be tied to the master reset.
Gain confidence with design tools for the FPGA | |
Implement a 4-Digit 7-Segment Display Generator |
No additional parts required for this lab. Everything is contained in the development kit.
Digilent Nexys boards based on Spartan 3XC2S400 FPGA chip. (Every student can check a Nexys board from the instrument room. You can keep them for the entire quarter. You have to return them at the end of the quarter!) |
Xilinx Webpack ISE implementation tools (installed on the lab's computers under Windows version 9.2 and under Linux version 11) | |
Cadence NC-Simulator (installed on the lab's computers, under Linux) | |
Digilent Adept Suite
(installed on the lab's computers, under
Windows)
|
Clean up your work area | |||||||||
Remember to submit your lab notebook for grading at the beginning of next week's lab. | |||||||||
The lab report should include:
|