data/full_repos/permissive/197614074/pixel_generator.v
1: b'%Warning-WIDTH: data/full_repos/permissive/197614074/pixel_generator.v:36: Operator ASSIGNDLY expects 8 bits on the Assign RHS, but Assign RHS\'s CONST \'7\'h0\' generates 7 bits.\n                                                                         : ... In instance pixel_generator\n     rgb <= 7\'b0;\n         ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module pixel_generator(
	input 						clk,
	input 			[9:0] 	pixel_x,
	input 			[9:0] 	pixel_y,
	input    		[7:0] 	pixel_in,
	input 						h_video_on,v_video_on,
	output 	reg 	[7:0] 	rgb
   );
		always@(posedge clk)begin
			if(h_video_on && v_video_on)begin
				if(pixel_x>208 && pixel_x<432 && pixel_y>128&& pixel_y<352)begin
					rgb = pixel_in;
				end
			end
			else begin
					rgb <= 7'b0;
			end
		end
endmodule
module pixel_generator(
	input 						clk,
	input 			[9:0] 	pixel_x,
	input 			[9:0] 	pixel_y,
	input    		[7:0] 	pixel_in,
	input 						h_video_on,v_video_on,
	output 	reg 	[7:0] 	rgb
   );

		always@(posedge clk)begin
			if(h_video_on && v_video_on)begin
				if(pixel_x>208 && pixel_x<432 && pixel_y>128&& pixel_y<352)begin
					rgb = pixel_in;
				end
			end
			else begin
					rgb <= 7'b0;
			end
		end
endmodule