Name: Ian Van Horn Email: imvanhorn1@gmail.com
Lab 6
This lab
involves more involved VGA work
This lab requires the Vivado
Task 1: Draw a green line(25 points).
Figure 1-1: Code modification to make green line
The values of the pixels are simply set to green in a range of Hcount
and white otherwise
Figure 1-2: Green line Task 2: Draw a green line and a
red line(25 points).
Figure 2-1: Code to draw both lines
Another range is added. If neither range is active the screen is white
Figure 2-2: Both lines
Task 3: Move the red bar (25 points).
Figure 3-1: Code for counter to move red line
Figure 3-1: Updated display code
Now the range is incrimented every .5 seconds to create the moving
effect.
Video 3-1: Moving Bar Demonstration
Task 4: Bouncing the red bar (25 points).
Figure 4-1: Code to move the range to bounce the bar
Now when the bar reaches one limit the direction of incrimentation is
flipped. The display code is the same.
Video 4-1: Demo of bouncing bar
Conclusion: The VGA is finicky, I tried to put the code outside of the
direct hcount loop and it didnt work. This didnt make sense because its
still in the posedge loop and in the scope of hcount. After finding
where to put the code block, the rest went as intended.