data/full_repos/permissive/105681119/src/miniproc_tb.v
 line:129: before: ")"
1: b'%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:32: Cannot find include file: definition.v\n`include "definition.v" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/105681119/src,data/full_repos/permissive/105681119/definition.v\n             data/full_repos/permissive/105681119/src,data/full_repos/permissive/105681119/definition.v.v\n             data/full_repos/permissive/105681119/src,data/full_repos/permissive/105681119/definition.v.sv\n             definition.v\n             definition.v.v\n             definition.v.sv\n             obj_dir/definition.v\n             obj_dir/definition.v.v\n             obj_dir/definition.v.sv\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:36: Define or directive not defined: \'`ALU_FUNCT_INDEX_LIMIT\'\n reg [`ALU_FUNCT_INDEX_LIMIT:0] CU_OPCODE, CU_FUNCT;\n      ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:36: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n reg [`ALU_FUNCT_INDEX_LIMIT:0] CU_OPCODE, CU_FUNCT;\n                            ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:38: Define or directive not defined: \'`REG_ADDR_INDEX_LIMIT\'\n reg [`REG_ADDR_INDEX_LIMIT:0] RF_ADDR_R1, RF_ADDR_R2, RF_ADDR_W;\n      ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:38: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n reg [`REG_ADDR_INDEX_LIMIT:0] RF_ADDR_R1, RF_ADDR_R2, RF_ADDR_W;\n                           ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:42: Define or directive not defined: \'`DATA_INDEX_LIMIT\'\n wire [`DATA_INDEX_LIMIT:0] ALU_RESULT;\n       ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:42: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n wire [`DATA_INDEX_LIMIT:0] ALU_RESULT;\n                        ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:45: Define or directive not defined: \'`DATA_INDEX_LIMIT\'\n wire [`DATA_INDEX_LIMIT:0] alu_op1, alu_op2;\n       ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:45: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n wire [`DATA_INDEX_LIMIT:0] alu_op1, alu_op2;\n                        ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:46: Define or directive not defined: \'`ALU_FUNCT_INDEX_LIMIT\'\n wire [`ALU_FUNCT_INDEX_LIMIT:0] alu_code;\n       ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:46: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n wire [`ALU_FUNCT_INDEX_LIMIT:0] alu_code;\n                             ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:47: Define or directive not defined: \'`DATA_INDEX_LIMIT\'\n wire [`DATA_INDEX_LIMIT:0] rf_data_r1, rf_data_r2;\n       ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:47: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\n wire [`DATA_INDEX_LIMIT:0] rf_data_r1, rf_data_r2;\n                        ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:69: Unsupported or unknown PLI call: $dumpfile\n  $dumpfile("miniproc_dump.vcd");\n  ^~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:70: Unsupported or unknown PLI call: $dumpvars\n  $dumpvars(0);\n  ^~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:75: Define or directive not defined: \'`SYS_CLK_PERIOD\'\n  #`SYS_CLK_PERIOD;\n   ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:75: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`SYS_CLK_PERIOD;\n                  ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:79: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  $display("---------------------------------------------------------------",);\n                                                                             ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:80: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  $display("|          if (EXPECTED === ACTUAL) pass; else fail.          |",);\n                                                                             ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:81: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n  $display("---------------------------------------------------------------",);\n                                                                             ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:89: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n  CU_FUNCT = `ALU_FUNCT_WIDTH\'h20;\n             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:90: Define or directive not defined: \'`CU_CLK_PERIOD\'\n  #`CU_CLK_PERIOD; \n   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:90: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`CU_CLK_PERIOD; \n                 ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:96: Define or directive not defined: \'`SYS_CLK_PERIOD\'\n  #`SYS_CLK_PERIOD;\n   ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:96: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`SYS_CLK_PERIOD;\n                  ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:105: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n  CU_FUNCT = `ALU_FUNCT_WIDTH\'h22;\n             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:106: Define or directive not defined: \'`CU_CLK_PERIOD\'\n  #`CU_CLK_PERIOD; \n   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:106: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`CU_CLK_PERIOD; \n                 ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:112: Define or directive not defined: \'`SYS_CLK_PERIOD\'\n  #`SYS_CLK_PERIOD;\n   ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:112: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`SYS_CLK_PERIOD;\n                  ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:121: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n  CU_FUNCT = `ALU_FUNCT_WIDTH\'h2c;\n             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:122: Define or directive not defined: \'`CU_CLK_PERIOD\'\n  #`CU_CLK_PERIOD; \n   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:122: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`CU_CLK_PERIOD; \n                 ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:128: Define or directive not defined: \'`SYS_CLK_PERIOD\'\n  #`SYS_CLK_PERIOD;\n   ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:128: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`SYS_CLK_PERIOD;\n                  ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:137: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n  CU_FUNCT = `ALU_FUNCT_WIDTH\'h01;\n             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:138: Define or directive not defined: \'`CU_CLK_PERIOD\'\n  #`CU_CLK_PERIOD; \n   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:138: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`CU_CLK_PERIOD; \n                 ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:144: Define or directive not defined: \'`SYS_CLK_PERIOD\'\n  #`SYS_CLK_PERIOD;\n   ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:144: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`SYS_CLK_PERIOD;\n                  ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:153: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n  CU_FUNCT = `ALU_FUNCT_WIDTH\'h02;\n             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:154: Define or directive not defined: \'`CU_CLK_PERIOD\'\n  #`CU_CLK_PERIOD; \n   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:154: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`CU_CLK_PERIOD; \n                 ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:160: Define or directive not defined: \'`SYS_CLK_PERIOD\'\n  #`SYS_CLK_PERIOD;\n   ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:160: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`SYS_CLK_PERIOD;\n                  ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:169: Define or directive not defined: \'`ALU_FUNCT_WIDTH\'\n  CU_FUNCT = `ALU_FUNCT_WIDTH\'h24;\n             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:170: Define or directive not defined: \'`CU_CLK_PERIOD\'\n  #`CU_CLK_PERIOD; \n   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:170: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`CU_CLK_PERIOD; \n                 ^\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:176: Define or directive not defined: \'`SYS_CLK_PERIOD\'\n  #`SYS_CLK_PERIOD;\n   ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/105681119/src/miniproc_tb.v:176: syntax error, unexpected \';\', expecting IDENTIFIER\n  #`SYS_CLK_PERIOD;\n                  ^\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function test_result;

		input [`DATA_INDEX_LIMIT:0] op1, op2;
		input [`ALU_FUNCT_INDEX_LIMIT:0] funct;
		input [`DATA_INDEX_LIMIT:0] actual;


		reg [`DATA_INDEX_LIMIT:0] exp;
		reg [2*8:0] opr;

		begin
			case (funct)
				`ALU_FUNCT_WIDTH'h20 : begin opr = "+"; exp = op1 + op2; end
				`ALU_FUNCT_WIDTH'h22 : begin opr = "-"; exp = op1 - op2; end
				`ALU_FUNCT_WIDTH'h2c : begin opr = "*"; exp = op1 * op2; end
				`ALU_FUNCT_WIDTH'h01 : begin opr = "<<"; exp = op1 << op2; end
				`ALU_FUNCT_WIDTH'h02 : begin opr = ">>"; exp = op1 >> op2; end
				`ALU_FUNCT_WIDTH'h24 : begin opr = "&"; exp = op1 & op2; end
				`ALU_FUNCT_WIDTH'h25 : begin opr = "|"; exp = op1 | op2; end
				`ALU_FUNCT_WIDTH'h27 : begin opr = "~|"; exp = ~(op1 | op2); end
				`ALU_FUNCT_WIDTH'h2a : begin opr = "<"; exp = op1 < op2; end
				default: begin opr = "?"; exp = `DATA_WIDTH'hx; end
			endcase

			if (exp === actual) begin
				$write(" [PASS] ");
				test_result = 1'b1;
			end
			else begin
				$write(" [FAIL] ");
				test_result = 1'b0;
			end
			$display("%d %2s %-d    EXPECTED = %2d, ACTUAL = %2d", op1, opr, op2, exp, actual);
		end
	endfunction
function test_result;


		input [`DATA_INDEX_LIMIT:0] op1, op2;
		input [`ALU_FUNCT_INDEX_LIMIT:0] funct;
		input [`DATA_INDEX_LIMIT:0] actual;


		reg [`DATA_INDEX_LIMIT:0] exp;
		reg [2*8:0] opr;

		begin
			case (funct)
				`ALU_FUNCT_WIDTH'h20 : begin opr = "+"; exp = op1 + op2; end
				`ALU_FUNCT_WIDTH'h22 : begin opr = "-"; exp = op1 - op2; end
				`ALU_FUNCT_WIDTH'h2c : begin opr = "*"; exp = op1 * op2; end
				`ALU_FUNCT_WIDTH'h01 : begin opr = "<<"; exp = op1 << op2; end
				`ALU_FUNCT_WIDTH'h02 : begin opr = ">>"; exp = op1 >> op2; end
				`ALU_FUNCT_WIDTH'h24 : begin opr = "&"; exp = op1 & op2; end
				`ALU_FUNCT_WIDTH'h25 : begin opr = "|"; exp = op1 | op2; end
				`ALU_FUNCT_WIDTH'h27 : begin opr = "~|"; exp = ~(op1 | op2); end
				`ALU_FUNCT_WIDTH'h2a : begin opr = "<"; exp = op1 < op2; end
				default: begin opr = "?"; exp = `DATA_WIDTH'hx; end
			endcase

			if (exp === actual) begin
				$write(" [PASS] ");
				test_result = 1'b1;
			end
			else begin
				$write(" [FAIL] ");
				test_result = 1'b0;
			end
			$display("%d %2s %-d    EXPECTED = %2d, ACTUAL = %2d", op1, opr, op2, exp, actual);
		end
	endfunction