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 sevenshow(
    input [8:0] inp,
	output [3:0] an,
	output [7:0] seven,
	input wire clk,
	input wire rst_n
);
	reg [7:0] counter;
	reg [5:0] tmp;
	reg [5:0] next_tmp;

	wire [8:0] lo[4:0];
	wire [8:0] dlo[4:0];
    assign lo[0] = inp % 9'd10;
    assign lo[1] = (inp / 9'd10) % 9'd10;
    assign lo[2] = (inp / 9'd100) % 9'd10;
    assign lo[3] = 8'd0;
	always@(posedge clk)begin
		if(rst_n)begin
			tmp <= 8'd0; 
		end else begin
			tmp <= next_tmp;
		end
	end
	always@(*)begin
		next_tmp = inp;
	end
    show_encode se0(.inp(lo[0]), .out(dlo[0]));
	show_encode se1(.inp(lo[1]), .out(dlo[1]));
	show_encode se2(.inp(lo[2]), .out(dlo[2]));
	show_encode se3(.inp(lo[3]), .out(dlo[3]));
	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));
endmodule
module sevenshow(
    input [8:0] inp,
	output [3:0] an,
	output [7:0] seven,
	input wire clk,
	input wire rst_n
);

	reg [7:0] counter;
	reg [5:0] tmp;
	reg [5:0] next_tmp;

	wire [8:0] lo[4:0];
	wire [8:0] dlo[4:0];
    assign lo[0] = inp % 9'd10;
    assign lo[1] = (inp / 9'd10) % 9'd10;
    assign lo[2] = (inp / 9'd100) % 9'd10;
    assign lo[3] = 8'd0;
	always@(posedge clk)begin
		if(rst_n)begin
			tmp <= 8'd0; 
		end else begin
			tmp <= next_tmp;
		end
	end
	always@(*)begin
		next_tmp = inp;
	end
    show_encode se0(.inp(lo[0]), .out(dlo[0]));
	show_encode se1(.inp(lo[1]), .out(dlo[1]));
	show_encode se2(.inp(lo[2]), .out(dlo[2]));
	show_encode se3(.inp(lo[3]), .out(dlo[3]));
	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));
endmodule