ECE 448 Lab 4 VGA Display Bouncing Ball Organization and Grading Flexibility in the Second Part of the Semester You can work on all lab assignments from Part II of the course either individually or in groups of two students The number of required and bonus tasks as well as the grading scheme will be different for individuals and the groups of two In case of the group work both students are expected to be intimately familiar with the entire solution to the given lab assignment and the entire lab report This knowledge will be verified during the experiment demonstration and the same grade will be applied to the entire team Flexibility in the Second Part of the Semester Schedule A Lab 4 VGA display 2 weeks 6 points Lab 5 DSP FPGA Embedded Resources 2 weeks 6 points Lab 6 PicoBlaze Serial Communication 3 weeks 6 points Lab 6a Logic Analyzer in class Schedule B Lab 4 VGA display 3 weeks 2 points Total 20 points 6 points Lab 5 DSP FPGA Embedded Resources 4 weeks 6 points Lab 6a Logic Analyzer in class 2 points Total 14 points VGA Background Video Graphic Array VGA Resolution 640x480 Display 16 colors 4 bits 256 colors 8 bits Refresh Rate 25Hz 30Hz 60Hz frames second RGB Red Green and Blue colors VGA Monitor 0 639 0 Horizontal Flyback Vertical Flyback 479 Horizontal Trace VGA Control Signal Timing Resolution 640x480 25 6 us 26 24 us 30 08 us 32 us 15 36 ms 15 68 ms 15 744 ms 16 8ms VGA Control Signal Timing Frequency 25Mhz 640 clock cycles Resolution 640x480 656 clock 26 24 us cycles 30 08 752 clock us cycles 32 us 800 clock cycles 480 lines 490 lines 492 lines 525 lines VGA 15 Pin PINs on Board NET HS LOC J14 DRIVE 2 PULLUP NET VS LOC K13 DRIVE 2 PULLUP NET OutRed 2 LOC F13 DRIVE 2 PULLUP NET OutRed 1 LOC D13 DRIVE 2 PULLUP NET OutRed 0 LOC C14 DRIVE 2 PULLUP We do not use this pin NET OutGreen 2 LOC G14 DRIVE 2 PULLUP NET OutGreen 1 LOC G13 DRIVE 2 PULLUP NET OutGreen 0 LOC F14 DRIVE 2 PULLUP We do not use this pin NET OutBlue 2 LOC J13 DRIVE 2 PULLUP NET OutBlue 1 LOC H13 DRIVE 2 PULLUP Introduction to Lab 4 Task 1 Displaying the ball 2pts single person 1 5pts teams 0 639 0 479 639 479 Draw a circle ball in the center of the screen Task 1 Displaying the ball 2pts single person 1 5pts teams 11 X0 X H COUNT 11 Y0 Y 320 X H SYNC V SYNC V SYNC VGA Controller X 11 H SYNC V COUNT X0 BLANK CIRCLE FILL BLANK 11 240 Y Y RED Y0 FILL FILL Color Generator GREEN BLUE 2 2 2 RED GREEN BLUE Circle Fill implements equation X X0 2 Y Y0 2 R2 Color Generator Selects colors for ball and background VGA Controller Sync generator may use Digilent Task 2 Moving the ball 2pts single person 1 5pts teams Move the ball using the buttons 0 up 1 down 2 left 3 right Task 2 Moving the ball 2pts single person 1 5pts teams BUTTON 2 LEFT X X0 PREV BUTTON 3 RIGHT MANUAL COUNT X AXIS 2 SWITCH 1 0 Y Y0 11 STEP NEXT 11 H COUNT 11 V COUNT XX0 CIRCLE FILL 11 BUTTON 0 UP BUTTON 1 DOWN NEXT MANUAL COUNT Y AXIS Y Y0 FILL FILL 2 SWITCH 3 2 STEP PREV Manual Count NEXT PREV 4 STEP 1 Limit NEXT to within the screen boundary use generic Task 3 Bouncing the ball 2pts single person 1 5pts teams 20 619 20 459 619 459 When the center of the ball goes beyond the boundary the step of an appropriate counter changes sign Task 3 Bouncing the ball 2pts single person 1 5pts teams BUTTON 2 LEFT BUTTON 3 RIGHT PREV MANUAL COUNT X AXIS 2 11 SWITCH 1 0 STEP NEXT 0 11 X 1 11 STEP AUTOMATIC COUNT X AXIS 2 SWITCH 5 4 STEP CLOCK DIVIDER SWITCH 7 NEXT OUT EN PREV EN Clock divider 5ms per step pulsed output high for 1 clock Automatic Count limit out to within boundary use generic Duplicate for Y axis Clock Divider shared by X and Y axis Task 4 Multiple Balls 2pts bonus single person 1 5pts teams 20 619 20 459 Add a second ball Manual and automatic mode Different colors 619 459 Task 5 Change color 1 5pts bonus single person 1 pt bonus teams Change the color of the ball and the background when the ball bounces The background color and the ball color must always be different Task 6 Change Shape 20 1 pt bonus teams 619 20 459 619 459 Change the shape of the object every time it bounces Circle to square and square to circle Switch Functions Switch 1 0 X Step Size manual and automatic modes Switch 3 2 Y Step Size manual and automatic modes Switch 5 4 X Y Step Size automatic mode only Switch 6 Ball select Manual mode only Switch 7 Mode 0 manual 1 automatic Button Functions Button 0 Up Button 1 Down Button 2 Left Button 3 Right
View Full Document