Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This question is based on the Pong Game Starter Vivado project you have built for Homework 4 Question 3 . Create a Vivado project with
This question is based on the Pong Game Starter Vivado project you have built
for Homework Question Create a Vivado project with the same source files
vhd and xdc files you used for your working project for Homework Question
as a starting point and complete the following tasks. points
Tasks:
Your current Pong Game Starter includes a bouncing round ball. Please modify
the VHDL code of your ponggraphst module to add a second bouncing
object of a triangle nonrectangular shape using the bitmap method. This
second bouncing triangle object occupies a square size of x pixels.
a The bit map method is introduced in the VGA lecture slides pages
The working code of the bouncing round ball is within your current
module ponggraphst Refer to them and write your own code.
b You need to first set coordinates of a square triangle of size similar to
setting coordinates of the square ball for the round ball
c You need to determine if the current pixel is within the square triangle to
set the sqtriangleon signal similar to how to set the sqballon
signal
d You need to create a new ROM type of size x pixels and then initiate a
constant TRIANGLEROM of this new ROM type. This constant should
form a triangle image using bit values of s and ssimilar to the
romtype data type and BALLROM constant for the round ball
e Use the bitmap method to determine if the image of the triangle is
turned on or off similar to how to set rdballon
f You need to update the triangle position times per second similar to
updating the ball position
g You need to set the values of the next triangle position according to the
boundaries similar to that for the round ball NOTE: please set a different
speed value for the triangle from the round ball, eg TRIANGEVP
tounsigned
h You need to revise the process block that assigns values to your
graphrgb to include the trianglergb option. similar to the branch that
assigns ballrgb to graphrgb
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started