diff --git a/behavioural/razzle.sv b/behavioural/razzle.sv index b84184d8576238586e207091e841891747f51a7e..ecbddc11400c3334794e2ca015e3d6b3b84e3430 100644 --- a/behavioural/razzle.sv +++ b/behavioural/razzle.sv @@ -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)