data/full_repos/permissive/195330302/ScreamAtSnake/score_to_display.v
1: b'%Warning-WIDTH: data/full_repos/permissive/195330302/ScreamAtSnake/score_to_display.v:134: Operator ASSIGN expects 30 bits on the Assign RHS, but Assign RHS\'s CONST \'29\'h0\' generates 29 bits.\n                                                                                         : ... In instance score_to_display.decoder_0\n   default: pixels[29:0]  = 29\'b0;\n                          ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/195330302/ScreamAtSnake/score_to_display.v:12: Operator ASSIGNDLY expects 4 bits on the Assign RHS, but Assign RHS\'s MODDIV generates 32 or 8 bits.\n                                                                                        : ... In instance score_to_display\n   value_2 <= (score_input / 100) % 10;\n           ^~\n%Warning-WIDTH: data/full_repos/permissive/195330302/ScreamAtSnake/score_to_display.v:13: Operator ASSIGNDLY expects 4 bits on the Assign RHS, but Assign RHS\'s MODDIV generates 32 or 8 bits.\n                                                                                        : ... In instance score_to_display\n   value_1 <= (score_input / 10) % 10;\n           ^~\n%Warning-WIDTH: data/full_repos/permissive/195330302/ScreamAtSnake/score_to_display.v:14: Operator ASSIGNDLY expects 4 bits on the Assign RHS, but Assign RHS\'s MODDIV generates 32 or 8 bits.\n                                                                                        : ... In instance score_to_display\n   value_0 <= score_input % 10 ;\n           ^~\n%Error: Exiting due to 4 warning(s)\n'
module digit_decoder(
		 output [29:0] OUT,
		 input [3:0] IN
	);
	reg [29:0] pixels;

	assign OUT[5:0] = pixels[5:0];
	assign OUT[11:6] = pixels[11:6];
	assign OUT[17:12] = pixels[17:12];
	assign OUT[23:18] = pixels[23:18];
	assign OUT[29:24] = pixels[29:24];


	always @(*)
   begin
	  case(IN[3:0])
			4'b0000:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b011010;
					  pixels[23:18] 	= 6'b010110;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b0001:
				 begin
					  pixels[5:0] 		= 6'b000100;
					  pixels[11:6] 	= 6'b000110;
					  pixels[17:12] 	= 6'b000100;
					  pixels[23:18] 	= 6'b000100;
					  pixels[29:24] 	= 6'b001110;
				 end
			4'b0010:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b001000;
					  pixels[23:18] 	= 6'b000100;
					  pixels[29:24] 	= 6'b011110;
				 end
			4'b0011:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b001000;
					  pixels[23:18] 	= 6'b010010;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b0100:
				 begin
					  pixels[5:0] 		= 6'b001000;
					  pixels[11:6] 	= 6'b001100;
					  pixels[17:12] 	= 6'b001010;
					  pixels[23:18] 	= 6'b011110;
					  pixels[29:24] 	= 6'b001000;
				 end
			4'b0101:
				 begin
					  pixels[5:0] 		= 6'b001110;
					  pixels[11:6] 	= 6'b000010;
					  pixels[17:12] 	= 6'b001100;
					  pixels[23:18] 	= 6'b010000;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b0110:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b000010;
					  pixels[17:12] 	= 6'b001110;
					  pixels[23:18] 	= 6'b010010;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b0111:
				 begin
					  pixels[5:0] 		= 6'b011110;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b001000;
					  pixels[23:18] 	= 6'b000100;
					  pixels[29:24] 	= 6'b000100;
				 end
			4'b1000:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b001100;
					  pixels[23:18] 	= 6'b010010;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b1001:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b011100;
					  pixels[23:18] 	= 6'b010000;
					  pixels[29:24] 	= 6'b001100;
				 end
			default: pixels[29:0] 	= 29'b0;
		endcase
    end
endmodule
module digit_decoder(
		 output [29:0] OUT,
		 input [3:0] IN
	);

	reg [29:0] pixels;

	assign OUT[5:0] = pixels[5:0];
	assign OUT[11:6] = pixels[11:6];
	assign OUT[17:12] = pixels[17:12];
	assign OUT[23:18] = pixels[23:18];
	assign OUT[29:24] = pixels[29:24];


	always @(*)
   begin
	  case(IN[3:0])
			4'b0000:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b011010;
					  pixels[23:18] 	= 6'b010110;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b0001:
				 begin
					  pixels[5:0] 		= 6'b000100;
					  pixels[11:6] 	= 6'b000110;
					  pixels[17:12] 	= 6'b000100;
					  pixels[23:18] 	= 6'b000100;
					  pixels[29:24] 	= 6'b001110;
				 end
			4'b0010:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b001000;
					  pixels[23:18] 	= 6'b000100;
					  pixels[29:24] 	= 6'b011110;
				 end
			4'b0011:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b001000;
					  pixels[23:18] 	= 6'b010010;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b0100:
				 begin
					  pixels[5:0] 		= 6'b001000;
					  pixels[11:6] 	= 6'b001100;
					  pixels[17:12] 	= 6'b001010;
					  pixels[23:18] 	= 6'b011110;
					  pixels[29:24] 	= 6'b001000;
				 end
			4'b0101:
				 begin
					  pixels[5:0] 		= 6'b001110;
					  pixels[11:6] 	= 6'b000010;
					  pixels[17:12] 	= 6'b001100;
					  pixels[23:18] 	= 6'b010000;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b0110:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b000010;
					  pixels[17:12] 	= 6'b001110;
					  pixels[23:18] 	= 6'b010010;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b0111:
				 begin
					  pixels[5:0] 		= 6'b011110;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b001000;
					  pixels[23:18] 	= 6'b000100;
					  pixels[29:24] 	= 6'b000100;
				 end
			4'b1000:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b001100;
					  pixels[23:18] 	= 6'b010010;
					  pixels[29:24] 	= 6'b001100;
				 end
			4'b1001:
				 begin
					  pixels[5:0] 		= 6'b001100;
					  pixels[11:6] 	= 6'b010010;
					  pixels[17:12] 	= 6'b011100;
					  pixels[23:18] 	= 6'b010000;
					  pixels[29:24] 	= 6'b001100;
				 end
			default: pixels[29:0] 	= 29'b0;
		endcase
    end
endmodule