04-09-2012, 01:36 PM
Digital Design and Computer Architecture
Digital Design.pdf (Size: 79.8 KB / Downloads: 67)
Introduction
The purpose of this lab is to learn the concept behind matrix keypads and use a 4x4
keypad as an extension to your Spartan-3E board. A Keypad is one of the most
commonly used devices in industry and may be useful in your Senior Design Courses.
Students will also learn how to write in Verilog to program their Spartan-3E board. It is
imperative for students to understand the given code as your lab assistant will not go over
the code in Lab 6. Students may find Verilog tutorials and examples from various
websites to further enhance and enrich their Verilog skill.
Lab Policy
Starting from Lab 6, your Lab instructor will NOT be allowed to answer your questions
regarding “How to do this lab?” You need to come up with your own idea and execute it.
We are preparing you for Senior Design courses. Your Lab instructor is NOT allowed to
write a Verilog file for you, but he/she is allowed to help/debug your Verilog file
conceptually.
Make sure that you understand every line of code you write or copy+paste today as your
Lab instructor will NOT be allowed to answer any questions regarding it in Lab 6. We
are asking you to move forward, and not backward!
Verilog
Create a Verilog file named Lab5.v, and copy and paste the content of Lab5.txt on your
class instructor’s website to your Lab5.v.
Make sure that you complete the Keypad Decoder section in your Lab5.v. Your lab
instructor, Julius Marpaung, is kind enough to provide you with an example on how to
decode “1”; hence you only need to write 14-15 more lines to complete the section. The
goal is to light LEDs on your Spartan-3E board based on the button you push as shown in
Table 1, for example: when you push “A” on the keypad, your LEDs output should be
1010. You may assume that only one button will be pushed at any time when writing
your Verilog code.