data/full_repos/permissive/43339463/alu.v
1: b'%Error: data/full_repos/permissive/43339463/alu.v:1: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/43339463,data/full_repos/permissive/43339463/defines.v\n             data/full_repos/permissive/43339463,data/full_repos/permissive/43339463/defines.v.v\n             data/full_repos/permissive/43339463,data/full_repos/permissive/43339463/defines.v.sv\n             defines.v\n             defines.v.v\n             defines.v.sv\n             obj_dir/defines.v\n             obj_dir/defines.v.v\n             obj_dir/defines.v.sv\n%Error: data/full_repos/permissive/43339463/alu.v:30: Define or directive not defined: \'`ALU_ADD\'\n   `ALU_ADD : begin\n   ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:30: syntax error, unexpected \':\', expecting endcase\n   `ALU_ADD : begin\n            ^\n%Error: data/full_repos/permissive/43339463/alu.v:31: Define or directive not defined: \'`ALUF_CF\'\n    {flag[`ALUF_CF], r1} = a[SIZE-1:0] + b[SIZE-1:0];\n          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:32: Define or directive not defined: \'`ALUF_OF\'\n    flag[`ALUF_OF] = (a[SIZE-1] & b[SIZE-1] & ~r1[SIZE-1])|(~a[SIZE-1] & ~b[SIZE-1] & r1[SIZE-1]);\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:32: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_OF] = (a[SIZE-1] & b[SIZE-1] & ~r1[SIZE-1])|(~a[SIZE-1] & ~b[SIZE-1] & r1[SIZE-1]);\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:34: Define or directive not defined: \'`ALU_SUB\'\n   `ALU_SUB : begin\n   ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:34: syntax error, unexpected begin, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER or new\n   `ALU_SUB : begin\n              ^~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:35: Define or directive not defined: \'`ALUF_CF\'\n    {flag[`ALUF_CF], r1} = a[SIZE-1:0] - b[SIZE-1:0];\n          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:36: Define or directive not defined: \'`ALUF_OF\'\n    flag[`ALUF_OF] = (a[SIZE-1] & ~b[SIZE-1] & ~r1[SIZE-1])|(~a[SIZE-1] & b[SIZE-1] & r1[SIZE-1]);\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:36: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_OF] = (a[SIZE-1] & ~b[SIZE-1] & ~r1[SIZE-1])|(~a[SIZE-1] & b[SIZE-1] & r1[SIZE-1]);\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:38: Define or directive not defined: \'`ALU_AND\'\n   `ALU_AND : begin\n   ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:38: syntax error, unexpected begin, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER or new\n   `ALU_AND : begin\n              ^~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:40: Define or directive not defined: \'`ALUF_CF\'\n    flag[`ALUF_CF] = 0;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:40: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_CF] = 0;\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:41: Define or directive not defined: \'`ALUF_OF\'\n    flag[`ALUF_OF] = 0;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:41: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_OF] = 0;\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:43: Define or directive not defined: \'`ALU_OR\'\n   `ALU_OR : begin\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:43: syntax error, unexpected begin, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER or new\n   `ALU_OR : begin\n             ^~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:45: Define or directive not defined: \'`ALUF_CF\'\n    flag[`ALUF_CF] = 0;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:45: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_CF] = 0;\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:46: Define or directive not defined: \'`ALUF_OF\'\n    flag[`ALUF_OF] = 0;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:46: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_OF] = 0;\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:48: Define or directive not defined: \'`ALU_OR\'\n   `ALU_OR : begin\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:48: syntax error, unexpected begin, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER or new\n   `ALU_OR : begin\n             ^~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:50: Define or directive not defined: \'`ALUF_CF\'\n    flag[`ALUF_CF] = 0;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:50: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_CF] = 0;\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:51: Define or directive not defined: \'`ALUF_OF\'\n    flag[`ALUF_OF] = 0;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:51: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_OF] = 0;\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:53: Define or directive not defined: \'`ALU_XOR\'\n   `ALU_XOR : begin\n   ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:53: syntax error, unexpected begin, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER or new\n   `ALU_XOR : begin\n              ^~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:55: Define or directive not defined: \'`ALUF_CF\'\n    flag[`ALUF_CF] = 0;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:55: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_CF] = 0;\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:56: Define or directive not defined: \'`ALUF_OF\'\n    flag[`ALUF_OF] = 0;\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:56: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_OF] = 0;\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:58: Define or directive not defined: \'`ALU_MUL\'\n   `ALU_MUL : begin\n   ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:58: syntax error, unexpected begin, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER or new\n   `ALU_MUL : begin\n              ^~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:60: Define or directive not defined: \'`ALUF_CF\'\n    flag[`ALUF_CF] = (r2 != 0);\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:60: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_CF] = (r2 != 0);\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:61: Define or directive not defined: \'`ALUF_OF\'\n    flag[`ALUF_OF] = (r2 != 0);\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:61: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_OF] = (r2 != 0);\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:63: Define or directive not defined: \'`ALU_DIV\'\n   `ALU_DIV : begin\n   ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:63: syntax error, unexpected begin, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER or new\n   `ALU_DIV : begin\n              ^~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:69: Define or directive not defined: \'`ALU_IMUL\'\n   `ALU_IMUL : begin\n   ^~~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:69: syntax error, unexpected begin, expecting IDENTIFIER or PACKAGE-IDENTIFIER or TYPE-IDENTIFIER or new\n   `ALU_IMUL : begin\n               ^~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:71: Define or directive not defined: \'`ALUF_CF\'\n    flag[`ALUF_CF] = (r2 != 0);\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:71: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_CF] = (r2 != 0);\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:72: Define or directive not defined: \'`ALUF_OF\'\n    flag[`ALUF_OF] = (r2 != 0);\n         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/alu.v:72: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    flag[`ALUF_OF] = (r2 != 0);\n                 ^\n%Error: data/full_repos/permissive/43339463/alu.v:74: Define or directive not defined: \'`ALU_IDIV\'\n   `ALU_IDIV : begin\n   ^~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
module alu_test;
	reg [31:0] a, b;
	wire [15:0] r1, r2;
	reg [4:0] func;
	reg en;
	wire [15:0] flag;
	wire size;
	
	alu alu(a, b, r1, r2, size, func, flag, en);
	
	initial begin
		$monitor("%t: a = %x, b = %x, result = %x %x, flag = %b", $time, a, b, r2, r1, flag[3:0]);
		
		en = 1;
		a <= 32'h7FFF;
		b <= 32'h7FFF;
		func <= `ALU_ADD;
		#10
		func <= `ALU_SUB;
		#10
		a <= 32'hFFFF;
		b <= 32'hFFFF;
		func <= `ALU_ADD;
		#10
		func <= `ALU_SUB;
		#10
		a <= 32'hFFFF;
		b <= 32'hFFFF;
		func <= `ALU_MUL;
		#10 $finish();
	end
	
	always #5 begin
		en <= ~en;
	end
	assign size = 1;
endmodule
module alu_test;

	reg [31:0] a, b;
	wire [15:0] r1, r2;
	reg [4:0] func;
	reg en;
	wire [15:0] flag;
	wire size;
	
	alu alu(a, b, r1, r2, size, func, flag, en);
	
	initial begin
		$monitor("%t: a = %x, b = %x, result = %x %x, flag = %b", $time, a, b, r2, r1, flag[3:0]);
		
		en = 1;
		a <= 32'h7FFF;
		b <= 32'h7FFF;
		func <= `ALU_ADD;
		#10
		func <= `ALU_SUB;
		#10
		a <= 32'hFFFF;
		b <= 32'hFFFF;
		func <= `ALU_ADD;
		#10
		func <= `ALU_SUB;
		#10
		a <= 32'hFFFF;
		b <= 32'hFFFF;
		func <= `ALU_MUL;
		#10 $finish();
	end
	
	always #5 begin
		en <= ~en;
	end
	assign size = 1;
endmodule