data/full_repos/permissive/438129974/playerclient/sevenshow.v
1: b'%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:17: Operator ASSIGNW expects 9 bits on the Assign RHS, but Assign RHS\'s CONST \'8\'h0\' generates 8 bits.\n                                                                                : ... In instance sevenshow\n    assign lo[3] = 8\'d0;\n                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:20: Operator ASSIGNDLY expects 6 bits on the Assign RHS, but Assign RHS\'s CONST \'8\'h0\' generates 8 bits.\n                                                                                : ... In instance sevenshow\n   tmp <= 8\'d0; \n       ^~\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:26: Operator ASSIGN expects 6 bits on the Assign RHS, but Assign RHS\'s VARREF \'inp\' generates 9 bits.\n                                                                                : ... In instance sevenshow\n  next_tmp = inp;\n           ^\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:28: Output port connection \'out\' expects 8 bits on the pin connection, but pin connection\'s ARRAYSEL generates 9 bits.\n                                                                                : ... In instance sevenshow\n    show_encode se0(.inp(lo[0]), .out(dlo[0]));\n                                  ^~~\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:29: Output port connection \'out\' expects 8 bits on the pin connection, but pin connection\'s ARRAYSEL generates 9 bits.\n                                                                                : ... In instance sevenshow\n show_encode se1(.inp(lo[1]), .out(dlo[1]));\n                               ^~~\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:30: Output port connection \'out\' expects 8 bits on the pin connection, but pin connection\'s ARRAYSEL generates 9 bits.\n                                                                                : ... In instance sevenshow\n show_encode se2(.inp(lo[2]), .out(dlo[2]));\n                               ^~~\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:31: Output port connection \'out\' expects 8 bits on the pin connection, but pin connection\'s ARRAYSEL generates 9 bits.\n                                                                                : ... In instance sevenshow\n show_encode se3(.inp(lo[3]), .out(dlo[3]));\n                               ^~~\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:32: Input port connection \'a\' expects 8 bits on the pin connection, but pin connection\'s ARRAYSEL generates 9 bits.\n                                                                                : ... In instance sevenshow\n seven_show seven_s(.clk(clk), .rst_n(rst_n), .a(dlo[0]), .b(dlo[1]), .c(dlo[2]), .d(dlo[3]), .an(an), .led(seven));\n                                               ^\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:32: Input port connection \'b\' expects 8 bits on the pin connection, but pin connection\'s ARRAYSEL generates 9 bits.\n                                                                                : ... In instance sevenshow\n seven_show seven_s(.clk(clk), .rst_n(rst_n), .a(dlo[0]), .b(dlo[1]), .c(dlo[2]), .d(dlo[3]), .an(an), .led(seven));\n                                                           ^\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:32: Input port connection \'c\' expects 8 bits on the pin connection, but pin connection\'s ARRAYSEL generates 9 bits.\n                                                                                : ... In instance sevenshow\n seven_show seven_s(.clk(clk), .rst_n(rst_n), .a(dlo[0]), .b(dlo[1]), .c(dlo[2]), .d(dlo[3]), .an(an), .led(seven));\n                                                                       ^\n%Warning-WIDTH: data/full_repos/permissive/438129974/playerclient/sevenshow.v:32: Input port connection \'d\' expects 8 bits on the pin connection, but pin connection\'s ARRAYSEL generates 9 bits.\n                                                                                : ... In instance sevenshow\n seven_show seven_s(.clk(clk), .rst_n(rst_n), .a(dlo[0]), .b(dlo[1]), .c(dlo[2]), .d(dlo[3]), .an(an), .led(seven));\n                                                                                   ^\n%Error: Exiting due to 11 warning(s)\n'
module show_encode(inp, out);
	input [8:0] inp;
	output [7:0] out;
	assign out = (inp == 9'd0) ?  8'b00000011:
				(inp == 9'd1) ? 8'b10011111:
				(inp == 9'd2) ? 8'b00100101:
				(inp == 9'd3) ? 8'b00001101:
				(inp == 9'd4) ? 8'b10011001:
				(inp == 9'd5) ? 8'b01001001:
				(inp == 9'd6) ? 8'b01000001:
				(inp == 9'd7) ? 8'b00011111:
				(inp == 9'd8) ? 8'b00000001:
				(inp == 9'd9) ? 8'b00001001:8'b00001111;
endmodule
module show_encode(inp, out);

	input [8:0] inp;
	output [7:0] out;
	assign out = (inp == 9'd0) ?  8'b00000011:
				(inp == 9'd1) ? 8'b10011111:
				(inp == 9'd2) ? 8'b00100101:
				(inp == 9'd3) ? 8'b00001101:
				(inp == 9'd4) ? 8'b10011001:
				(inp == 9'd5) ? 8'b01001001:
				(inp == 9'd6) ? 8'b01000001:
				(inp == 9'd7) ? 8'b00011111:
				(inp == 9'd8) ? 8'b00000001:
				(inp == 9'd9) ? 8'b00001001:8'b00001111;
endmodule