DOC PREVIEW
GVSU EGR 426 - Assignment #1

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

EGR426 W’10Assignment #1Due Date: By end of your lab section, week of Feb. 8Objectives• Perform basic behavioral modeling in VHDL• Perform basic testbench design• Become familiar with the Xilinx ISE development environment• Become familiar with the Digilent Nexys hardwa re platform and the Spartan3E FPGAOverviewYou are to design, simulate, and test a digital system to be implemented on the Nexys development board.For this as signment you will make use of some of the following I/O components:• Momentary-contact pushbuttons BTN0 through BTN3• Slide switches SW0 throug h SW7• Single LED’s (LD0 through LD7)• Seven-segment LED displays (AN0 through AN3)• Standard RS232 serial portThere are additional I/O components on the boa rd but they will not be used in this assignment.System RequirementsEach student will be working on one of the projects listed below:Project #1: Scrolling MarqueeYou are to display a “scrolling marquee” of your name on the four 7- segment LED displays. You will haveto be creative fo r letters such a s “M”, “Q”, and “W”. T he display must scroll fro m right to left by 1 characterevery 0.5 seconds.For example, if your name is “Stewart Griffin” then the four 7-segment LED’s would begin by displaying“Stew”, then 0.5 seconds later “tewa”, then 0.5 seconds later “ewar”, and so on.There should be 2 sec onds of dark LED’s following the last character befo re the sequence begins again.The marquee should stop scrolling and hold its present display as long as pushbutton BTN0 is pressed.Project #2: Reaction TimerThe 7-segment displays show a 4-digit decimal number (in the range 0000 through 9999) on the LED displays.The number is initially constant at 0000 for a total of three seconds. Then, the count increments by 1 every0.001 seconds. When BTN0 is pressed, the counter stops counting and holds its last value. T he user’s reactiontime is therefore displayed in units o f milliseconds. When BTN1 is pressed and relea sed, the counter displays0000 and starts the process over again.1Project #3: Wheels on the BusThe 7-segment displays show “wheels on a bus”, i.e., two circles formed by two LED digits that give theappearance of rotation. Thus, the leftmost two displays form one circle, and the rightmost two displays formanother circ le . At each point in time, one segment is lit on each circle. The circle is formed by the ’a’, ”d’,’e’, and ’f’ segments of the left-side digit, and the ’a’, ’b’, ’c’, and ’d’ segments of the right-side digit.The two “wheels” rotate clockwise at vary ing but equal speeds. Pressing and releasing BTN0 and BTN1increment and decrement the speed of the circles. There should be at least 10 different speed s ettings andeach pre ss and release of a button should produce a noticeable change in speed.Project #4: Serial DecoderThe Nexys board serial port is monitored for incoming characters. When a character is received (9600-8-N-1format), its hexadecimal value is dis played on two of the 7-segment displays. Thus, if someone sends thecharacter ’A’, then the 7-segment displays will show 41 until another character is received.Project #5: Serial TransmitterThe slide switches SW0 through SW7 are used to s e t an 8-bit number. When BTN0 is pressed and released,this 8-bit number is to be displayed on the 7-segment displays as a two-digit hexadecimal number, and alsotransmitted on the Nexys board serial port in 9600-8-N-1 fo rmat.Project #6: Rock Paper ScissorsOne of the 7-segment LED displays cycles through the values ’r’, ’P’, and ’S’ very quickly, faster than a humancan discern. This display represents the computer. Another one of the 7-segment LED displays repr e sentsthe human. When the human presses BTN0, the letter ’r’ appear s on the human display (repre senting“rock”), when the human presse s BTN1 the letter ’P’ appears (representing “paper”), and when the humanpresses BTN2 the letter ’S’ appe ars (representing “scissors”). The letter continues to be displayed as long asthe button is held down. You may assume only one of the three buttons is ever pressed at a time.Once a button is pressed, the computer’s display stops at whatever letter it is at and its letter is comparedto the human’s letter. According to sta ndard Rock Paper Scissor rules (’r’>’S’, ’S’>’P’, ’P’>’r’) LED LD0illuminates to indicate the computer has won a nd LED LD1 illuminates to indicate the human has won.Once the button is releas e d, the sys tem returns to the initial state: the computer’s LED cycles quickly andthe human’s display goes dark, as do LD0 and LD1.Extra credit: Rock Paper Scissors Lizard Spock.Project #7: Simon Says4 discrete LED’s are briefly turned on one at a time in a “random” sequence (it can be predetermined). Afterthe user sees the entire s e quence, the user must pre ss the corr e sponding pushbuttons in the same sequence.If the user presses the wrong button in the sequence then the 7-segment LED’s display “LOSE”. If the userpresses the pushbuttons in the correct seq uence the 7-segment LED’s display “YAY” (or choo se your owndisplay).Then, the game starts again with the same sequence but a fifth element of the se quence is added (stillusing one of the same 4 LED’s). The user must again press the pushbuttons in the correct sequence. Ifsuccessful, a sixth element of the sequence is added, etc. until the user loses.An example game may proceed as follows:• LED lights in order: L1 L3 L2 L3User presses pushbuttons: B1 B3 B2 B3Success: the game continues• LED lights in order: L1 L3 L2 L3 L4User presses pushbuttons: B1 B3 B2 B3 B4Success: the game continues2• LED lights in order: L1 L3 L2 L3 L4 L1User presses pushbuttons: B1 B3 B2 B3 B4 B1Success: the game continues• LED lights in order: L1 L3 L2 L3 L4 L1 L3User presses pushbuttons: B1 B3 B2 B2<—error, and the game is overProject #8: Combination LockA secrete 8-bit c ombina tion is stored in your program. The user has to discover it by using the 8 slideswitches. The user positions the slide switches then presses a pushbutton. The LED display s hows a digitindicating how many of the 8 slide switches are in the correct position (but of course, not which ones). Theuser can try to reposition the switches and press the pushbutton until the correct combinatio n is guessed.Development Process1. Week #1: Laboratory for week of January


View Full Document

GVSU EGR 426 - Assignment #1

Download Assignment #1
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Assignment #1 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Assignment #1 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?