data/full_repos/permissive/20688874/final/src/umult8.v
None: at end of input
1: b'%Error: data/full_repos/permissive/20688874/final/src/umult8.v:5: Cannot find include file: ~/ee577b/syn/src/control.h\n`include "~/ee577b/syn/src/control.h" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/20688874/final/src,data/full_repos/permissive/20688874/~/ee577b/syn/src/control.h\n             data/full_repos/permissive/20688874/final/src,data/full_repos/permissive/20688874/~/ee577b/syn/src/control.h.v\n             data/full_repos/permissive/20688874/final/src,data/full_repos/permissive/20688874/~/ee577b/syn/src/control.h.sv\n             ~/ee577b/syn/src/control.h\n             ~/ee577b/syn/src/control.h.v\n             ~/ee577b/syn/src/control.h.sv\n             obj_dir/~/ee577b/syn/src/control.h\n             obj_dir/~/ee577b/syn/src/control.h.v\n             obj_dir/~/ee577b/syn/src/control.h.sv\n%Error: data/full_repos/permissive/20688874/final/src/umult8.v:73: Define or directive not defined: \'`w8\'\n     (`w8+2\'b1):\n      ^~~\n%Error: data/full_repos/permissive/20688874/final/src/umult8.v:159: Define or directive not defined: \'`w16\'\n     (`w16+2\'b1):\n      ^~~~\n%Error: Exiting due to 3 error(s)\n'
module umult8(reg_A, reg_B, result, ctrl_ww);

	input [0:127] reg_A, reg_B;
	input [0:1] ctrl_ww;
	

	output [0:127] result;
	

	reg [0:15] p_pdt8a, p_pdt8a2;
	reg [0:15] p_pdt8b, p_pdt8b2;
	reg [0:15] p_pdt8c, p_pdt8c2;
	reg [0:15] p_pdt8d, p_pdt8d2;
	reg [0:15] p_pdt8e, p_pdt8e2;
	reg [0:15] p_pdt8f, p_pdt8f2;
	reg [0:15] p_pdt8g, p_pdt8g2;
	reg [0:15] p_pdt8h, p_pdt8h2;
	
	reg [0:31] p_pdt16a, p_pdt16a2;
	reg [0:31] p_pdt16b, p_pdt16b2;
	reg [0:31] p_pdt16c, p_pdt16c2;
	reg [0:31] p_pdt16d, p_pdt16d2;
	
	reg [0:127] p_pdt;
	reg [0:127] result;
	

	integer i;
	
	always @ (reg_A or reg_B or ctrl_ww)
		begin




		
		p_pdt8a=16'b0;
		p_pdt8a2=16'b0;
		p_pdt8b=16'b0;
		p_pdt8b2=16'b0;
		p_pdt8c=16'b0;
		p_pdt8c2=16'b0;
		p_pdt8d=16'b0;
		p_pdt8d2=16'b0;
		p_pdt8e=16'b0;
		p_pdt8e2=16'b0;
		p_pdt8f=16'b0;
		p_pdt8f2=16'b0;
		p_pdt8g=16'b0;
		p_pdt8g2=16'b0;
		p_pdt8h=16'b0;
		p_pdt8h2=16'b0;
		
		p_pdt16a=32'b0;
		p_pdt16a2=32'b0;
		p_pdt16b=32'b0;
		p_pdt16b2=32'b0;
		p_pdt16c=32'b0;
		p_pdt16c2=32'b0;
		p_pdt16d=32'b0;
		p_pdt16d2=32'b0;
		
		p_pdt=128'b0;
		
					case(ctrl_ww)
					(`w8+2'b1):
						begin
						


						p_pdt8a2={{8{1'b0}},reg_B[0+(16*0):7+(16*0)]}; 

						p_pdt8a={{8{1'b0}},reg_A[0+(16*0):7+(16*0)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*0):15+(16*0)]=p_pdt[0+(16*0):15+(16*0)] 
							+ (p_pdt8a[i]?(p_pdt8a2<<(8'd15-i)):16'b0);



						p_pdt8b2={{8{1'b0}},reg_B[0+(16*1):7+(16*1)]}; 

						p_pdt8b={{8{1'b0}},reg_A[0+(16*1):7+(16*1)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*1):15+(16*1)]=p_pdt[0+(16*1):15+(16*1)] 
							+ (p_pdt8b[i]?(p_pdt8b2<<(8'd15-i)):16'b0);



						p_pdt8c2={{8{1'b0}},reg_B[0+(16*2):7+(16*2)]}; 

						p_pdt8c={{8{1'b0}},reg_A[0+(16*2):7+(16*2)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*2):15+(16*2)]=p_pdt[0+(16*2):15+(16*2)] 
							+ (p_pdt8c[i]?(p_pdt8c2<<(8'd15-i)):16'b0);



						p_pdt8d2={{8{1'b0}},reg_B[0+(16*3):7+(16*3)]}; 

						p_pdt8d={{8{1'b0}},reg_A[0+(16*3):7+(16*3)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*3):15+(16*3)]=p_pdt[0+(16*3):15+(16*3)] 
							+ (p_pdt8d[i]?(p_pdt8d2<<(8'd15-i)):16'b0);



						p_pdt8e2={{8{1'b0}},reg_B[0+(16*4):7+(16*4)]}; 

						p_pdt8e={{8{1'b0}},reg_A[0+(16*4):7+(16*4)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*4):15+(16*4)]=p_pdt[0+(16*4):15+(16*4)] 
							+ (p_pdt8e[i]?(p_pdt8e2<<(8'd15-i)):16'b0);



						p_pdt8f2={{8{1'b0}},reg_B[0+(16*5):7+(16*5)]}; 

						p_pdt8f={{8{1'b0}},reg_A[0+(16*5):7+(16*5)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*5):15+(16*5)]=p_pdt[0+(16*5):15+(16*5)] 
							+ (p_pdt8f[i]?(p_pdt8f2<<(8'd15-i)):16'b0);



						p_pdt8g2={{8{1'b0}},reg_B[0+(16*6):7+(16*6)]}; 

						p_pdt8g={{8{1'b0}},reg_A[0+(16*6):7+(16*6)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*6):15+(16*6)]=p_pdt[0+(16*6):15+(16*6)] 
							+ (p_pdt8g[i]?(p_pdt8g2<<(8'd15-i)):16'b0);



						p_pdt8h2={{8{1'b0}},reg_B[0+(16*7):7+(16*7)]}; 

						p_pdt8h={{8{1'b0}},reg_A[0+(16*7):7+(16*7)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*7):15+(16*7)]=p_pdt[0+(16*7):15+(16*7)] 
							+ (p_pdt8h[i]?(p_pdt8h2<<(8'd15-i)):16'b0);

						result<=p_pdt;
						end

					(`w16+2'b1):
						begin



						p_pdt16a2={{16{1'b0}},reg_B[0+(32*0):15+(32*0)]};

						p_pdt16a={{16{1'b0}},reg_A[0+(32*0):15+(32*0)]};

						for (i=31; i>15; i=i-1)
							p_pdt[0+(32*0):31+(32*0)]=p_pdt[0+(32*0):31+(32*0)] 
							+ (p_pdt16a[i]?(p_pdt16a2<<(8'd31-i)):32'b0);



						p_pdt16b2={{16{1'b0}},reg_B[0+(32*1):15+(32*1)]};

						p_pdt16b={{16{1'b0}},reg_A[0+(32*1):15+(32*1)]};

						for (i=31; i>15; i=i-1)
							p_pdt[0+(32*1):31+(32*1)]=p_pdt[0+(32*1):31+(32*1)] 
							+ (p_pdt16b[i]?(p_pdt16b2<<(8'd31-i)):32'b0);



						p_pdt16c2={{16{1'b0}},reg_B[0+(32*2):15+(32*2)]};

						p_pdt16c={{16{1'b0}},reg_A[0+(32*2):15+(32*2)]};

						for (i=31; i>15; i=i-1)
							p_pdt[0+(32*2):31+(32*2)]=p_pdt[0+(32*2):31+(32*2)] 
							+ (p_pdt16c[i]?(p_pdt16c2<<(8'd31-i)):32'b0);



						p_pdt16d2={{16{1'b0}},reg_B[0+(32*3):15+(32*3)]};

						p_pdt16d={{16{1'b0}},reg_A[0+(32*3):15+(32*3)]};

						for (i=31; i>15; i=i-1)
							p_pdt[0+(32*3):31+(32*3)]=p_pdt[0+(32*3):31+(32*3)] 
							+ (p_pdt16d[i]?(p_pdt16d2<<(8'd31-i)):32'b0);

						result<=p_pdt;
						end

					default:
						begin
						result<=128'd0;
						end
					endcase
		end

endmodule
module umult8(reg_A, reg_B, result, ctrl_ww);


	input [0:127] reg_A, reg_B;
	input [0:1] ctrl_ww;
	

	output [0:127] result;
	

	reg [0:15] p_pdt8a, p_pdt8a2;
	reg [0:15] p_pdt8b, p_pdt8b2;
	reg [0:15] p_pdt8c, p_pdt8c2;
	reg [0:15] p_pdt8d, p_pdt8d2;
	reg [0:15] p_pdt8e, p_pdt8e2;
	reg [0:15] p_pdt8f, p_pdt8f2;
	reg [0:15] p_pdt8g, p_pdt8g2;
	reg [0:15] p_pdt8h, p_pdt8h2;
	
	reg [0:31] p_pdt16a, p_pdt16a2;
	reg [0:31] p_pdt16b, p_pdt16b2;
	reg [0:31] p_pdt16c, p_pdt16c2;
	reg [0:31] p_pdt16d, p_pdt16d2;
	
	reg [0:127] p_pdt;
	reg [0:127] result;
	

	integer i;
	
	always @ (reg_A or reg_B or ctrl_ww)
		begin




		
		p_pdt8a=16'b0;
		p_pdt8a2=16'b0;
		p_pdt8b=16'b0;
		p_pdt8b2=16'b0;
		p_pdt8c=16'b0;
		p_pdt8c2=16'b0;
		p_pdt8d=16'b0;
		p_pdt8d2=16'b0;
		p_pdt8e=16'b0;
		p_pdt8e2=16'b0;
		p_pdt8f=16'b0;
		p_pdt8f2=16'b0;
		p_pdt8g=16'b0;
		p_pdt8g2=16'b0;
		p_pdt8h=16'b0;
		p_pdt8h2=16'b0;
		
		p_pdt16a=32'b0;
		p_pdt16a2=32'b0;
		p_pdt16b=32'b0;
		p_pdt16b2=32'b0;
		p_pdt16c=32'b0;
		p_pdt16c2=32'b0;
		p_pdt16d=32'b0;
		p_pdt16d2=32'b0;
		
		p_pdt=128'b0;
		
					case(ctrl_ww)
					(`w8+2'b1):
						begin
						


						p_pdt8a2={{8{1'b0}},reg_B[0+(16*0):7+(16*0)]}; 

						p_pdt8a={{8{1'b0}},reg_A[0+(16*0):7+(16*0)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*0):15+(16*0)]=p_pdt[0+(16*0):15+(16*0)] 
							+ (p_pdt8a[i]?(p_pdt8a2<<(8'd15-i)):16'b0);



						p_pdt8b2={{8{1'b0}},reg_B[0+(16*1):7+(16*1)]}; 

						p_pdt8b={{8{1'b0}},reg_A[0+(16*1):7+(16*1)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*1):15+(16*1)]=p_pdt[0+(16*1):15+(16*1)] 
							+ (p_pdt8b[i]?(p_pdt8b2<<(8'd15-i)):16'b0);



						p_pdt8c2={{8{1'b0}},reg_B[0+(16*2):7+(16*2)]}; 

						p_pdt8c={{8{1'b0}},reg_A[0+(16*2):7+(16*2)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*2):15+(16*2)]=p_pdt[0+(16*2):15+(16*2)] 
							+ (p_pdt8c[i]?(p_pdt8c2<<(8'd15-i)):16'b0);



						p_pdt8d2={{8{1'b0}},reg_B[0+(16*3):7+(16*3)]}; 

						p_pdt8d={{8{1'b0}},reg_A[0+(16*3):7+(16*3)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*3):15+(16*3)]=p_pdt[0+(16*3):15+(16*3)] 
							+ (p_pdt8d[i]?(p_pdt8d2<<(8'd15-i)):16'b0);



						p_pdt8e2={{8{1'b0}},reg_B[0+(16*4):7+(16*4)]}; 

						p_pdt8e={{8{1'b0}},reg_A[0+(16*4):7+(16*4)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*4):15+(16*4)]=p_pdt[0+(16*4):15+(16*4)] 
							+ (p_pdt8e[i]?(p_pdt8e2<<(8'd15-i)):16'b0);



						p_pdt8f2={{8{1'b0}},reg_B[0+(16*5):7+(16*5)]}; 

						p_pdt8f={{8{1'b0}},reg_A[0+(16*5):7+(16*5)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*5):15+(16*5)]=p_pdt[0+(16*5):15+(16*5)] 
							+ (p_pdt8f[i]?(p_pdt8f2<<(8'd15-i)):16'b0);



						p_pdt8g2={{8{1'b0}},reg_B[0+(16*6):7+(16*6)]}; 

						p_pdt8g={{8{1'b0}},reg_A[0+(16*6):7+(16*6)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*6):15+(16*6)]=p_pdt[0+(16*6):15+(16*6)] 
							+ (p_pdt8g[i]?(p_pdt8g2<<(8'd15-i)):16'b0);



						p_pdt8h2={{8{1'b0}},reg_B[0+(16*7):7+(16*7)]}; 

						p_pdt8h={{8{1'b0}},reg_A[0+(16*7):7+(16*7)]}; 

						for (i=15; i>7; i=i-1)
							p_pdt[0+(16*7):15+(16*7)]=p_pdt[0+(16*7):15+(16*7)] 
							+ (p_pdt8h[i]?(p_pdt8h2<<(8'd15-i)):16'b0);

						result<=p_pdt;
						end

					(`w16+2'b1):
						begin



						p_pdt16a2={{16{1'b0}},reg_B[0+(32*0):15+(32*0)]};

						p_pdt16a={{16{1'b0}},reg_A[0+(32*0):15+(32*0)]};

						for (i=31; i>15; i=i-1)
							p_pdt[0+(32*0):31+(32*0)]=p_pdt[0+(32*0):31+(32*0)] 
							+ (p_pdt16a[i]?(p_pdt16a2<<(8'd31-i)):32'b0);



						p_pdt16b2={{16{1'b0}},reg_B[0+(32*1):15+(32*1)]};

						p_pdt16b={{16{1'b0}},reg_A[0+(32*1):15+(32*1)]};

						for (i=31; i>15; i=i-1)
							p_pdt[0+(32*1):31+(32*1)]=p_pdt[0+(32*1):31+(32*1)] 
							+ (p_pdt16b[i]?(p_pdt16b2<<(8'd31-i)):32'b0);



						p_pdt16c2={{16{1'b0}},reg_B[0+(32*2):15+(32*2)]};

						p_pdt16c={{16{1'b0}},reg_A[0+(32*2):15+(32*2)]};

						for (i=31; i>15; i=i-1)
							p_pdt[0+(32*2):31+(32*2)]=p_pdt[0+(32*2):31+(32*2)] 
							+ (p_pdt16c[i]?(p_pdt16c2<<(8'd31-i)):32'b0);



						p_pdt16d2={{16{1'b0}},reg_B[0+(32*3):15+(32*3)]};

						p_pdt16d={{16{1'b0}},reg_A[0+(32*3):15+(32*3)]};

						for (i=31; i>15; i=i-1)
							p_pdt[0+(32*3):31+(32*3)]=p_pdt[0+(32*3):31+(32*3)] 
							+ (p_pdt16d[i]?(p_pdt16d2<<(8'd31-i)):32'b0);

						result<=p_pdt;
						end

					default:
						begin
						result<=128'd0;
						end
					endcase
		end

endmodule