DOC PREVIEW
MASON ECE 448 - Lab 6 VGA Display

This preview shows page 1-2-3-4-5-6 out of 19 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 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 19 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 19 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 19 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 19 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 19 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1Video Graphic Array (VGA)VGA 15 PinSlide 4Slide 5Slide 6PINs on BoardColor GeneratorTask 1: Displaying chessboard (2pts single person, 1.5pts teams)Task 2: Displaying piece on the chessboard (2pts single person, 1.5pts teams)Task 3: Moving piece (one-space) on the chessboard (rook selected)Task 3: Moving piece (one-space) on the chessboard (bishop selected) entire task 3: (2pts single person, 1.5pts teams)Task 4: Moving piece (multi-spaces) on the chessboard (rook selected)Task 4: Moving piece (multi-spaces) on the chessboard (bishop selected) entire task 4: (2pts bonus single person, 1.5pts required for teams)Task 5 (2pts bonus single person, 1.5pts bonus for teams)RulesSwitch functionsSwitch functions (continued)Button FunctionsECE 448: Lab 6VGA Display(mini chess game)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•Monitor technology: Cathode Ray Tube (CRT)VGA 15 PinHorizontal 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 25MhzPINs 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 ;Color GeneratorExternal Controly_pixelx_pixel1210RGB_color_code62 bits for Red component2 bits for Green component2 bits for Blue componentColor GeneratorOutput can be • generated on the fly, or• read from a precomputed look-up table (stored in BRAM)Task 1: Displaying chessboard(2pts single person, 1.5pts teams)80 pixels60 linesButton 0 : cycle through 16 colors for color 1Button 1 : cycle through 16 colors for color 2Color 2Color 2Color 1Task 2: Displaying piece on the chessboard(2pts single person, 1.5pts teams)80 pixels60 linesButton 0 : cycle through 16 colors for color 1Button 1 : cycle through 16 colors for color 2Button 2 : cycle through 16 colors for color 3Color 2Color 2Color 1PieceColor 3Circle represents a bishop Square represents a rookTask 3: Moving piece (one-space) on the chessboard (rook selected)80 pixels60 linesSwitch(7)=‘0’Button 0 : cycle through 16 colors for color 1Button 1 : cycle through 16 colors for color 2Button 2 : cycle through 16 colors for color 3Color 2Color 2Color 1PieceColor 3Switch(7)=‘1’Button 0 : Move piece one square upButton 1 : Move piece one square downButton 2 : Move piece one square leftButton 3 : Move piece one square rightTask 3: Moving piece (one-space) on the chessboard (bishop selected)entire task 3: (2pts single person, 1.5pts teams)80 pixels60 linesSwitch(7)=‘0’Button 0 : cycle through 16 colors for color 1Button 1 : cycle through 16 colors for color 2Button 2 : cycle through 16 colors for color 3Color 2Color 2Color 1PieceColor 3Switch(7)=‘1’Button 0 : Move piece diagonally to the upper leftButton 1 : Move piece diagonally to the upper rightButton 2 : Move piece diagonally to the lower leftButton 3 : Move piece diagonally to the lower rightTask 4: Moving piece (multi-spaces) on the chessboard (rook selected)80 pixels60 linesSwitch(7)=‘0’Button 0 : cycle through 16 colors for color 1Button 1 : cycle through 16 colors for color 2Button 2 : cycle through 16 colors for color 3Color 2Color 2Color 1PieceColor 3Switch(7)=‘1’Button 0 : Move piece one square upButton 1 : Move piece one square downButton 2 : Move piece one square leftButton 3 : Move piece one square rightTask 4: Moving piece (multi-spaces) on the chessboard (bishop selected)entire task 4: (2pts bonus single person, 1.5pts required for teams)80 pixels60 linesSwitch(7)=‘0’Button 0 : cycle through 16 colors for color 1Button 1 : cycle through 16 colors for color 2Button 2 : cycle through 16 colors for color 3Color 2Color 2Color 1PieceColor 3Switch(7)=‘1’Button 0 : Move piece diagonally to the upper leftButton 1 : Move piece diagonally to the upper rightButton 2 : Move piece diagonally to the lower leftButton 3 : Move piece diagonally to the lower rightTask 5(2pts bonus single person, 1.5pts bonus for teams)•Add a Knight to the possible pieces if switch (3) =‘1’•Use the buttons however you see fit to allow the knight to move in the 8 legal ways.Rules•If a movement cannot be done (e.g. the move would cause the piece to go off the board) LED 7 should light up and the piece should not move from its previous location.•Other than LED 7 all led and Seven Segment displays can be used to print out any information on the state of the execution.Switch functions•Switches 0-1 determine current task“00” task 1“01” task 2“10” task 3“11” task 4 or 5 •Switches 2 and 3 determine the type of piece selected.Sw(3)‘0’ sw(2) selects between bishop (0) and rook (1)‘1’ piece is a Knight (task 5)Switch functions (continued)•Switches 4-6 determine movement amount in tasks 4 and 5•Switch 7 selects between change color mode and move piece mode. If sw(7) = ‘0’ then up down buttons change only the color. If sw(7)=‘1’ then the buttons give the direction of the movement.Button Functions•Button 0 – up or upper left•Button 1 – down or upper right•Button 2 – left or lower left•Button 3 – right or lower


View Full Document

MASON ECE 448 - Lab 6 VGA Display

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