data/full_repos/permissive/430260837/destroyAnimation.v
1: b'%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:25: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter == dH) begin\n                ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:31: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter == dH || HCounter == (dH - hMax + one) || HCounter == (dH + hMax - one)) begin\n                ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:31: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter == dH || HCounter == (dH - hMax + one) || HCounter == (dH + hMax - one)) begin\n                                  ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:31: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter == dH || HCounter == (dH - hMax + one) || HCounter == (dH + hMax - one)) begin\n                                                                   ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:37: Operator GTE expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter >= (dH - hMax + two) && HCounter <= (dH + hMax - two)) begin\n                ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:37: Operator LTE expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter >= (dH - hMax + two) && HCounter <= (dH + hMax - two)) begin\n                                                 ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:43: Operator GTE expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter >= (dH - hMax + three) && HCounter <= (dH + hMax - three)) begin\n                ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:43: Operator LTE expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter >= (dH - hMax + three) && HCounter <= (dH + hMax - three)) begin\n                                                   ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:49: Operator GTE expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter >= (dH - hMax + two) && HCounter <= (dH + hMax - two)) begin\n                ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:49: Operator LTE expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter >= (dH - hMax + two) && HCounter <= (dH + hMax - two)) begin\n                                                 ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:55: Operator GTE expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter >= (dH - hMax) && HCounter <= (dH + hMax)) begin\n                ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:55: Operator LTE expects 33 bits on the LHS, but LHS\'s VARREF \'HCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n    if(HCounter >= (dH - hMax) && HCounter <= (dH + hMax)) begin\n                                           ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:54: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == dV) begin\n                        ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:48: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == (dV-vMax+four) || VCounter == (dV+vMax-four)) begin\n                        ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:48: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == (dV-vMax+four) || VCounter == (dV+vMax-four)) begin\n                                                      ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:42: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == (dV-vMax+three) || VCounter == (dV+vMax-three)) begin\n                        ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:42: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == (dV-vMax+three) || VCounter == (dV+vMax-three)) begin\n                                                       ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:36: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == (dV-vMax+two) || VCounter == (dV+vMax-two)) begin\n                        ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:36: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == (dV-vMax+two) || VCounter == (dV+vMax-two)) begin\n                                                     ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:30: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == (dV-vMax+one) || VCounter == (dV+vMax-one)) begin\n                        ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:30: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   end else if(VCounter == (dV-vMax+one) || VCounter == (dV+vMax-one)) begin\n                                                     ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:24: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   if(VCounter == (dV-vMax) || VCounter == (dV+vMax)) begin\n               ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/destroyAnimation.v:24: Operator EQ expects 33 bits on the LHS, but LHS\'s VARREF \'VCounter\' generates 10 bits.\n                                                                          : ... In instance destroyAnimation\n   if(VCounter == (dV-vMax) || VCounter == (dV+vMax)) begin\n                                        ^~\n%Error: Exiting due to 23 warning(s)\n'
module destroyAnimation(
input [9:0] HCounter,
input [9:0] VCounter,
input destroy,
input [32:0] dH,
input [32:0] dV,
input clk,

output reg dRed,
output reg dGreen);

	reg [32:0] hMax = 33'd40;
	reg [32:0] vMax = 33'd40;
	reg [32:0] one = 33'd8;
	reg [32:0] two = 33'd16;
	reg [32:0] three = 33'd24;
	reg [32:0] four = 33'd32;
	



	always@(dV or dH) begin
		if(clk == 0) begin
			if(VCounter == (dV-vMax) || VCounter == (dV+vMax)) begin
				if(HCounter == dH) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == (dV-vMax+one) || VCounter == (dV+vMax-one)) begin
				if(HCounter == dH || HCounter == (dH - hMax + one) || HCounter == (dH + hMax - one)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == (dV-vMax+two) || VCounter == (dV+vMax-two)) begin
				if(HCounter >= (dH - hMax + two) && HCounter <= (dH + hMax - two)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == (dV-vMax+three) || VCounter == (dV+vMax-three)) begin
				if(HCounter >= (dH - hMax + three) && HCounter <= (dH + hMax - three)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == (dV-vMax+four) || VCounter == (dV+vMax-four)) begin
				if(HCounter >= (dH - hMax + two) && HCounter <= (dH + hMax - two)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == dV) begin
				if(HCounter >= (dH - hMax) && HCounter <= (dH + hMax)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else begin
				dRed <= 0; dGreen <= 0;
			end
		end else begin
			dRed <= 0; dGreen <= 0;
		end
	end
	
endmodule
module destroyAnimation(
input [9:0] HCounter,
input [9:0] VCounter,
input destroy,
input [32:0] dH,
input [32:0] dV,
input clk,

output reg dRed,
output reg dGreen);


	reg [32:0] hMax = 33'd40;
	reg [32:0] vMax = 33'd40;
	reg [32:0] one = 33'd8;
	reg [32:0] two = 33'd16;
	reg [32:0] three = 33'd24;
	reg [32:0] four = 33'd32;
	



	always@(dV or dH) begin
		if(clk == 0) begin
			if(VCounter == (dV-vMax) || VCounter == (dV+vMax)) begin
				if(HCounter == dH) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == (dV-vMax+one) || VCounter == (dV+vMax-one)) begin
				if(HCounter == dH || HCounter == (dH - hMax + one) || HCounter == (dH + hMax - one)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == (dV-vMax+two) || VCounter == (dV+vMax-two)) begin
				if(HCounter >= (dH - hMax + two) && HCounter <= (dH + hMax - two)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == (dV-vMax+three) || VCounter == (dV+vMax-three)) begin
				if(HCounter >= (dH - hMax + three) && HCounter <= (dH + hMax - three)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == (dV-vMax+four) || VCounter == (dV+vMax-four)) begin
				if(HCounter >= (dH - hMax + two) && HCounter <= (dH + hMax - two)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else if(VCounter == dV) begin
				if(HCounter >= (dH - hMax) && HCounter <= (dH + hMax)) begin
					dRed <= 1; dGreen <= 0;
				end else begin
					dRed <= 0; dGreen <= 0;
				end
			end else begin
				dRed <= 0; dGreen <= 0;
			end
		end else begin
			dRed <= 0; dGreen <= 0;
		end
	end
	
endmodule