DOC PREVIEW
MASON ECE 448 - Lab 4 VGA Display

This preview shows page 1-2-22-23 out of 23 pages.

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

Unformatted text preview:

Slide 1Slide 2Slide 3Slide 4Slide 5Video Graphic Array (VGA)Slide 7Slide 8Slide 9VGA 15 PinPINs on BoardSlide 12Task 1: Displaying the ball (2pts single person, 1.5pts teams)Slide 14Task 2: Moving the ball (2pts single person, 1.5pts teams)Slide 16Task 3: Bouncing the ball (2pts single person, 1.5pts teams)Slide 18Task 4: Multiple Balls (2pts bonus single person, 1.5pts teams)Task 5: Change color (1.5pts bonus single person, 1 pt bonus teams)Task 6: Change Shape (1 pt bonus teams)Switch FunctionsButton FunctionsECE 448: Lab 4VGA Display. Bouncing Ball.Organization and GradingFlexibility 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 SemesterLab 4: VGA display (2 weeks) – 6 pointsLab 5: DSP & FPGA Embedded Resources (2 weeks) – 6 pointsLab 6: PicoBlaze & Serial Communication (3 weeks) – 6 pointsLab 6a: Logic Analyzer (in class) – 2 pointsLab 4: VGA display (3 weeks) – 6 pointsLab 5: DSP & FPGA Embedded Resources (4 weeks) – 6 pointsLab 6a: Logic Analyzer (in class) – 2 pointsSchedule A: Schedule B: Total: 20 pointsTotal: 14 pointsVGA BackgroundVideo 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 colorsHorizontal TraceHorizontal FlybackVertical Flyback06394790VGA MonitorVGA Control Signal TimingResolution640x48032 us30.08 us26.24 us25.6 us32 us30.08 us26.24 us32 us30.08 us15.36 ms15.68 ms16.8ms15.744 msVGA Control Signal TimingResolution640x48032 us30.08 us26.24 us640 clock cycles32 us30.08 us656 clock cycles800 clock cycles752 clock cycles480 lines490 lines525 lines492 linesFrequency 25MhzVGA 15 PinPINs on BoardNET "HS" LOC = "J14" | DRIVE = 2 | PULLUP ; NET "VS" LOC = "K13" | DRIVE = 2 | PULLUP ;NET "OutRed<2>" LOC = "F13" | DRIVE = 2 | PULLUPNET "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 4Task 1: Displaying the ball(2pts single person, 1.5pts teams)0 6394790(639,479)•Draw a circle (ball) in the center of the screenTask 1: Displaying the ball(2pts single person, 1.5pts teams)•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)VGAControllerColorGeneratorH COUNTV COUNTH SYNCV SYNCH SYNCV SYNCREDGREENBLUEREDGREENBLUEFILL22211111111XYX0Y0320240FILLBLANKBLANKCIRCLEFILLXYX0Y0FILLX0Y0XYTask 2: Moving the ball(2pts single person, 1.5pts teams)•Move the ball using the buttons•0 = up 1 = down 2 = left 3 = rightTask 2: Moving the ball(2pts single person, 1.5pts teams)•Manual Count: [NEXT = PREV +/- 4*(STEP+1)] •Limit NEXT to within the screen boundary (use generic)MANUALCOUNT(X-AXIS)H COUNTV COUNTFILLLEFTRIGHTSTEPBUTTON(2)BUTTON(3)SWITCH(1:0)MANUALCOUNT(Y-AXIS)UPDOWNSTEPBUTTON(0)BUTTON(1)SWITCH(3:2)111122NEXTNEXTPREVPREVCIRCLEFILL1111XYX0Y0FILLX0Y0XYTask 3: Bouncing the ball(2pts single person, 1.5pts teams)2061945920(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)•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)MANUALCOUNT(X-AXIS)LEFTRIGHTSTEPBUTTON(2)BUTTON(3)SWITCH(1:0)AUTOMATICCOUNT(X-AXIS)ENSTEP112NEXTNEXT11X01CLOCKDIVIDERENSTEPOUTSWITCH(7)SWITCH(5:4)2PREVPREV11Task 4: Multiple Balls(2pts bonus single person, 1.5pts teams)•Add a second ball•Manual and automatic mode•Different colors2061945920(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 differentTask 6: Change Shape(1 pt bonus teams)•Change the shape of the object every time it bounces.•Circle-to-square and square-to-circle.2061945920(619,459)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 = automaticButton Functions•Button[0] Up•Button[1] Down•Button[2] Left•Button[3]


View Full Document

MASON ECE 448 - Lab 4 VGA Display

Documents in this Course
Load more
Download Lab 4 VGA Display
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 Lab 4 VGA Display 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 Lab 4 VGA Display 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?