Your SlideShare is downloading. ×
  • Like
FPGA-Sketch Board
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

FPGA-Sketch Board

  • 938 views
Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
938
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
3
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. FEATURES OF SKETCH-BOARD
    • Drawing a line.
    • 2. Drawing a Square/Rectangle.
    • 3. Drawing a Circle.
    • 4. Drawing a Triangle.
    • 5. Increasing the thickness of the edges of objects.
    • 6. Clear Drawing Area.
    • 7. Fill color in the shapes.
    • 8. Moving the object in the drawing area.
    • 9. Flashing of the object name and its tool menu on VGA screen.
    • 10. Displaying the input of switches on the VGA screen.
  • USING THE APPLICATION
  • 11. USING THE APPLICATION
  • 12. COMPARE LINE DRAWING ALGORITHMS
    BRESENHAM’S LINE DRAWING ALGORITHM ::
    Fast and Incremental algorithm.
    It involves only integer calculations in its point computing.
    It makes use of addition, subtraction and shifting only.
    DIGITAL DIFFERENTIAL ANALYZER ALGORITHM ::
    Round-off errors makes the computing pixel to drift away from the ideal line.
    Time consuming -Floating point arithmetic & rounding off process
    XIAOLIN WU’S LINE ALGORITHM ::
    Performs anti-aliasing.
    Draw pairs of pixels on both side of the computed pixel and are coloured in a way that they look alike.
    Slower than Bresenham’s Line Drawing algortihm.
     
  • 13. BRESENHAM’S LINE DRAWING
    If(midpoint>ideal line)
    Next_pixel_to_be_plotted = Next_Lower_pixel; (po<0)
    Else
    Next_pixel_to_be_plotted = Next_Upper_pixel; (po>0)
    po= 2*dy(LOWER PIXEL) (Next Co-ordinates will be (xk+1,yk)).
     
    po= 2*dy – 2*dx (UPPER PIXEL) (Next Co-ordinates will be (xk+1,yk+1)).
  • 14. CIRCLE DRAWING
    • Find y- by stepping in unit step along x-axis.
    • 15. x ranges from xc-r to xc+r.
    • 16.   
     
    • It involves multiplication, subtraction, addition, square-root,etc.
    • 17. Spacing between each point is not uniform.
    • 18. Large gaps between pixels near the vertical line.
  • BRESENHAM’S CIRCLE DRAWING
    If po<0 then po=po+3+(2*x). (SELECT NEXT UPPER PIXEL i.e. (xk+1,yk))
    If po>0 then po=po+1+(2*x)-(2*y). (SELECT NEXT LOWER PIXEL i.e. (xk_1,yk-1))
  • 19. RECTANGLE & TRIANGLE DRAWING ALGORITHMS
    • Co-ordinates of Diagonal as Input.
    • 20. Determine the co-ordinates of the vertices.
    • 21. Utilize Bresenham’s line drawing algorithm for drawing lines. i.e. horizontal and vertical lines.
    • 22. Take input as co-ordinates of the slanted line.
    • 23. Draw slanted line by brsenham’s algorithm.
    • 24. Determine the co-ordinates of other line from given input and draw remaining lines.
  • MODIFIED BOUNDARY FILL ALGORITHM
    Fill the color till boundary is reached. Don’t compare with the old pixel color or boundary pixel color.
    INCREASING EDGE SIZE ALGORITHM
    MOVING SHAPES ALGORITHM
    • Increase the pixel by factor of 2.
    • 25. Plots the pixel +2 above and -2 below.
    • 26. Key Pressed  co-ordinate changes.
    • 27. Moves to new co-ordinate but within drawing area.
  • CHALLENGES
    • PS2 CONTROLLER INTERFACE
    • 28. VGA INTERFACING
    • 29. IMPLEMENTING HARDWARE FOR ALGORITHMS.
    IMPROVEMENTS
    • REMOVE PS2 LIMTATION.
    • 30. FULL FUNCTIONALITY BY PS2 MOUSE.
    • 31. USING SOPC BUILDER.
    • 32. UTILIZING MEMORY – TO STORE PREVIOUS STATE.
    LEARNINGS
    • PRACTICAL KNOWLEDGE OF VGA INTERFACE & PS2 MOUSE INTERFACING.
    • 33. OPPORTUNITY TO LEARN HARDWARE PROGRAMMING LANGUAGE.