This is the implementation and this time as you can see below I included zoomed in portions of the implementation to see the different components. I included screenshots of the portions that seemed to change from the initial part 1. The pictures screen shotted are specifically the bits of color you see in the picture to the left.
A look at what the implementation looked like for this lab
In this lab we learned how to generate a bitstream. When we did this it created a new " .bit " file that you can view using the Github link below and navigating to the 'generated bitstream' folder within Lab 2
This is the code implemented in order to make the square appear green instead of red
Code changed to make the Square Larger
Code added to make the square that was moving on the screen into a circle.
Code we added to the source file in order to make the sphere able to bounce off of all four walls rather than just the top and bottom. We had to add motion in the x direction in the same way there was motion in the y direction. There was trial and error to find the boundaries in the horizontal plan but after a couple tries we were able to find it.
This is the implemented design for the initial run of the calculator without any modifications
This modification is where the code was changed in order to remove the leading zero's on the display. I was able to do this by changing the leddec16.vhd source file.
In the next modification I wanted to be able to subtract as well add with the keypad. I was able to do this by modifying the hexcalc.vhd source file as well as the hexcalc.xdc constraint file
Starting with this piece of code, the following were the changes made in the hexcalc.vhd file in order to make the subtraction work. The modifications are highlighted with the red markings
This modification is utilized for when the user clicks the first value of the operation. This essentially checks if the plus or minus buttons are hit on the fpga board which
BTNU is the plus button (it is the top button on the board)
BTND is the newly added subtract button (bottom button on board)
BTNL is the equals button
The next place there was a modification was made was within the ENTER_OP
Here I added a similar function to how the addition ran before but altered it for subtraction.
After the plus_or_sub is selected it then is reading the next digit entered
it performs the action and displays the result
Next I had to modify the constraint file to be able to take in the new modifications and incorporating the down button to perform the subtract operation. Which is what is displayed below
This is the combined process for the results of lab four in creating a calculator with the 3 different steps in the process. The first modification is removing the leading zero's and then adding the subtract function.
This lab is a demonstration of lab 5 before the modification made and then after the first round of modifications with adding a second wail and also changing the wave to square and maing. the speeds controllable by the switches
This is the code I changed in order to make the ball green and the bat magenta
This is where the set up is for the ball speed and the number of hits
This is the code modified in order to use the switches to increase the speed using 3 different switches. As you can see I had to set up the ports in order to be able to receive the signal from the switches to change the speed of the ball. This required the addition of the leddec16.vhd file and also altering the pong.vhd and the ppong.xdc file.