data/full_repos/permissive/152271286/OTM17.v
1: b'%Warning-WIDTH: data/full_repos/permissive/152271286/OTM17.v:87: Operator ADD expects 19 bits on the RHS, but RHS\'s CONST \'16\'h1\' generates 16 bits.\n                                                               : ... In instance BFI.c8\n opx=opx+16\'b1;\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 cho(output reg [18:0]prout,
			output reg [15:0]yout,
			output reg cout,
			input cin,
			input [18:0]prin,
			input [18:0]x,
			input [15:0]yin,
			input clk);

reg [18:0]prtmp;
reg [34:0]pry;
reg [18:0]opx;


always @(posedge clk)
begin
	opx[0]=~x[0];
	opx[1]=~x[1];
	opx[2]=~x[2];
	opx[3]=~x[3];
	opx[4]=~x[4];
	opx[5]=~x[5];
	opx[6]=~x[6];
	opx[7]=~x[7];
	opx[8]=~x[8];
	opx[9]=~x[9];
	opx[10]=~x[10];
	opx[11]=~x[11];
	opx[12]=~x[12];
	opx[13]=~x[13];
	opx[14]=~x[14];
	opx[15]=~x[15];
	opx=opx+16'b1;
	opx[16]=~x[16];
	opx[17]=~x[16];
	opx[18]=~x[16];

	if(!yin[1])
	begin
		if(!yin[0])
		begin
			if(!cin)
			begin
				prtmp=prin;
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
			if(cin)
			begin
				prtmp=prin+x;
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
		end
		if(yin[0])
		begin
			if(!cin)
			begin
				prtmp=prin+x;
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
			if(cin)
			begin
				prtmp=prin+(2*x);
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
		end
	end
	if(yin[1])
	begin
		if(!yin[0])
		begin
			if(!cin)
			begin
				prtmp=prin+(2*x);
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
			if(cin)
			begin
				prtmp=prin+opx;
				cout=1;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
		end
		if(yin[0])
		begin
			if(!cin)
			begin
				prtmp=prin+opx;
				cout=1;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
			if(cin)
			begin
				prtmp=prin;
				cout=1;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
		end
	end
end
endmodule
module cho(output reg [18:0]prout,
			output reg [15:0]yout,
			output reg cout,
			input cin,
			input [18:0]prin,
			input [18:0]x,
			input [15:0]yin,
			input clk);


reg [18:0]prtmp;
reg [34:0]pry;
reg [18:0]opx;


always @(posedge clk)
begin
	opx[0]=~x[0];
	opx[1]=~x[1];
	opx[2]=~x[2];
	opx[3]=~x[3];
	opx[4]=~x[4];
	opx[5]=~x[5];
	opx[6]=~x[6];
	opx[7]=~x[7];
	opx[8]=~x[8];
	opx[9]=~x[9];
	opx[10]=~x[10];
	opx[11]=~x[11];
	opx[12]=~x[12];
	opx[13]=~x[13];
	opx[14]=~x[14];
	opx[15]=~x[15];
	opx=opx+16'b1;
	opx[16]=~x[16];
	opx[17]=~x[16];
	opx[18]=~x[16];

	if(!yin[1])
	begin
		if(!yin[0])
		begin
			if(!cin)
			begin
				prtmp=prin;
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
			if(cin)
			begin
				prtmp=prin+x;
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
		end
		if(yin[0])
		begin
			if(!cin)
			begin
				prtmp=prin+x;
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
			if(cin)
			begin
				prtmp=prin+(2*x);
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
		end
	end
	if(yin[1])
	begin
		if(!yin[0])
		begin
			if(!cin)
			begin
				prtmp=prin+(2*x);
				cout=0;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
			if(cin)
			begin
				prtmp=prin+opx;
				cout=1;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
		end
		if(yin[0])
		begin
			if(!cin)
			begin
				prtmp=prin+opx;
				cout=1;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
			if(cin)
			begin
				prtmp=prin;
				cout=1;
				pry[15:0]=yin;
				pry[34:16]=prtmp;
				pry=pry>>2;
				pry[34]=cout;
				pry[33]=cout;
				yout=pry[15:0];
				prout=pry[34:16];
			end
		end
	end
end
endmodule