Skip to content
Snippets Groups Projects
Commit 55f40cfd authored by ks6n19's avatar ks6n19
Browse files

x1,x2,y1,y2 now 10:0

parent 018d0974
No related branches found
No related tags found
No related merge requests found
......@@ -10,12 +10,12 @@ module razzle (
input logic CLOCK_50,
input logic [3:0] KEY,
input logic [8:0] x1, x2, y1, y2,
input logic [10:0] x1, x2, y1, y2,
output logic [7:0] VGA_R,VGA_G,VGA_B,
output logic VGA_HS,VGA_VS, VGA_CLK, VGA_BLANK_N);
// Video Display Signals
logic [10:0] H_count,V_count;
logic [10:0] H_count,V_count;
logic Red_Data;
logic red_square ;
......@@ -36,8 +36,8 @@ assign VGA_B = Blue ? 255 : 0;
assign VGA_CLK = clock_enable;
assign VGA_BLANK_N = video_on;
// interchange values of x1, x2, y1 , y2 to get a square on black screen
// interchange values of x1, x2, y1 , y2 to get a square on black screen
......@@ -54,7 +54,7 @@ assign Blue = Blue_Data && video_on;
// video_on turns off pixel color data when not in the pixel view area
assign video_on = video_on_H && video_on_V;
// Red square calculation
// Red square calculation
always @(posedge CLOCK_50, negedge nReset)
if ( ! nReset)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment