data/full_repos/permissive/43339463/jmp_check.v
1: b"%Error: data/full_repos/permissive/43339463/jmp_check.v:1: syntax error, unexpected type, expecting IDENTIFIER or '[' or do or final\nmodule jmp_check(input [15:0] addr, pc_i, output [15:0] pc_o, input [3:0] type, input [15:0] flag, input [15:0] cr, input en);\n                                                                          ^~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:4: syntax error, unexpected always\n always @(posedge en) begin\n ^~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:6: Define or directive not defined: '`JMP_FORCE'\n   `JMP_FORCE : con <= 1;\n   ^~~~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:7: Define or directive not defined: '`JMP_E'\n   `JMP_E : con <= (flag[`ALUF_ZF] == 1'b1);\n   ^~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:7: Define or directive not defined: '`ALUF_ZF'\n   `JMP_E : con <= (flag[`ALUF_ZF] == 1'b1);\n                         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:8: Define or directive not defined: '`JMP_NE'\n   `JMP_NE : con <= (flag[`ALUF_ZF] == 1'b0);\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:8: Define or directive not defined: '`ALUF_ZF'\n   `JMP_NE : con <= (flag[`ALUF_ZF] == 1'b0);\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:9: Define or directive not defined: '`JMP_A'\n   `JMP_A : con <= (flag[`ALUF_CF] == 1'b0 && flag[`ALUF_ZF] == 1'b0);\n   ^~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:9: Define or directive not defined: '`ALUF_CF'\n   `JMP_A : con <= (flag[`ALUF_CF] == 1'b0 && flag[`ALUF_ZF] == 1'b0);\n                         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:9: Define or directive not defined: '`ALUF_ZF'\n   `JMP_A : con <= (flag[`ALUF_CF] == 1'b0 && flag[`ALUF_ZF] == 1'b0);\n                                                   ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:10: Define or directive not defined: '`JMP_AE'\n   `JMP_AE : con <= (flag[`ALUF_CF] == 1'b0);\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:10: Define or directive not defined: '`ALUF_CF'\n   `JMP_AE : con <= (flag[`ALUF_CF] == 1'b0);\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:11: Define or directive not defined: '`JMP_B'\n   `JMP_B : con <= (flag[`ALUF_CF] == 1'b1);\n   ^~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:11: Define or directive not defined: '`ALUF_CF'\n   `JMP_B : con <= (flag[`ALUF_CF] == 1'b1);\n                         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:12: Define or directive not defined: '`JMP_BE'\n   `JMP_BE : con <= (flag[`ALUF_CF] == 1'b1 || flag[`ALUF_ZF] == 1'b1);\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:12: Define or directive not defined: '`ALUF_CF'\n   `JMP_BE : con <= (flag[`ALUF_CF] == 1'b1 || flag[`ALUF_ZF] == 1'b1);\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:12: Define or directive not defined: '`ALUF_ZF'\n   `JMP_BE : con <= (flag[`ALUF_CF] == 1'b1 || flag[`ALUF_ZF] == 1'b1);\n                                                    ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:13: Define or directive not defined: '`JMP_G'\n   `JMP_G : con <= (flag[`ALUF_ZF] == 1'b0 && flag[`ALUF_SF] == flag[`ALUF_OF]);\n   ^~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:13: Define or directive not defined: '`ALUF_ZF'\n   `JMP_G : con <= (flag[`ALUF_ZF] == 1'b0 && flag[`ALUF_SF] == flag[`ALUF_OF]);\n                         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:13: Define or directive not defined: '`ALUF_SF'\n   `JMP_G : con <= (flag[`ALUF_ZF] == 1'b0 && flag[`ALUF_SF] == flag[`ALUF_OF]);\n                                                   ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:13: Define or directive not defined: '`ALUF_OF'\n   `JMP_G : con <= (flag[`ALUF_ZF] == 1'b0 && flag[`ALUF_SF] == flag[`ALUF_OF]);\n                                                                     ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:14: Define or directive not defined: '`JMP_GE'\n   `JMP_GE : con <= (flag[`ALUF_SF] == flag[`ALUF_OF]);\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:14: Define or directive not defined: '`ALUF_SF'\n   `JMP_GE : con <= (flag[`ALUF_SF] == flag[`ALUF_OF]);\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:14: Define or directive not defined: '`ALUF_OF'\n   `JMP_GE : con <= (flag[`ALUF_SF] == flag[`ALUF_OF]);\n                                            ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:15: Define or directive not defined: '`JMP_L'\n   `JMP_L : con <= (flag[`ALUF_SF] != flag[`ALUF_OF]);\n   ^~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:15: Define or directive not defined: '`ALUF_SF'\n   `JMP_L : con <= (flag[`ALUF_SF] != flag[`ALUF_OF]);\n                         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:15: Define or directive not defined: '`ALUF_OF'\n   `JMP_L : con <= (flag[`ALUF_SF] != flag[`ALUF_OF]);\n                                           ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:16: Define or directive not defined: '`JMP_LE'\n   `JMP_LE : con <= (flag[`ALUF_ZF] == 1'b1 || flag[`ALUF_SF] != flag[`ALUF_OF]);\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:16: Define or directive not defined: '`ALUF_ZF'\n   `JMP_LE : con <= (flag[`ALUF_ZF] == 1'b1 || flag[`ALUF_SF] != flag[`ALUF_OF]);\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:16: Define or directive not defined: '`ALUF_SF'\n   `JMP_LE : con <= (flag[`ALUF_ZF] == 1'b1 || flag[`ALUF_SF] != flag[`ALUF_OF]);\n                                                    ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:16: Define or directive not defined: '`ALUF_OF'\n   `JMP_LE : con <= (flag[`ALUF_ZF] == 1'b1 || flag[`ALUF_SF] != flag[`ALUF_OF]);\n                                                                      ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:17: Define or directive not defined: '`JMP_S'\n   `JMP_S : con <= (flag[`ALUF_SF] == 1'b1);\n   ^~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:17: Define or directive not defined: '`ALUF_SF'\n   `JMP_S : con <= (flag[`ALUF_SF] == 1'b1);\n                         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:18: Define or directive not defined: '`JMP_NS'\n   `JMP_NS : con <= (flag[`ALUF_SF] == 1'b0);\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:18: Define or directive not defined: '`ALUF_SF'\n   `JMP_NS : con <= (flag[`ALUF_SF] == 1'b0);\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:19: Define or directive not defined: '`JMP_O'\n   `JMP_O : con <= (flag[`ALUF_OF] == 1'b1);\n   ^~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:19: Define or directive not defined: '`ALUF_OF'\n   `JMP_O : con <= (flag[`ALUF_OF] == 1'b1);\n                         ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:20: Define or directive not defined: '`JMP_NO'\n   `JMP_NO : con <= (flag[`ALUF_OF] == 1'b0);\n   ^~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:20: Define or directive not defined: '`ALUF_OF'\n   `JMP_NO : con <= (flag[`ALUF_OF] == 1'b0);\n                          ^~~~~~~~\n%Error: data/full_repos/permissive/43339463/jmp_check.v:21: Define or directive not defined: '`JMP_CRZ'\n   `JMP_CRZ : con <= (cr == 16'd0);\n   ^~~~~~~~\n%Error: Exiting due to 40 error(s)\n"
module jmp_check(input [15:0] addr, pc_i, output [15:0] pc_o, input [3:0] type, input [15:0] flag, input [15:0] cr, input en);
	reg con;
	
	always @(posedge en) begin
		case (type)
			`JMP_FORCE : con <= 1;
			`JMP_E : con <= (flag[`ALUF_ZF] == 1'b1);
			`JMP_NE : con <= (flag[`ALUF_ZF] == 1'b0);
			`JMP_A : con <= (flag[`ALUF_CF] == 1'b0 && flag[`ALUF_ZF] == 1'b0);
			`JMP_AE : con <= (flag[`ALUF_CF] == 1'b0);
			`JMP_B : con <= (flag[`ALUF_CF] == 1'b1);
			`JMP_BE : con <= (flag[`ALUF_CF] == 1'b1 || flag[`ALUF_ZF] == 1'b1);
			`JMP_G : con <= (flag[`ALUF_ZF] == 1'b0 && flag[`ALUF_SF] == flag[`ALUF_OF]);
			`JMP_GE : con <= (flag[`ALUF_SF] == flag[`ALUF_OF]);
			`JMP_L : con <= (flag[`ALUF_SF] != flag[`ALUF_OF]);
			`JMP_LE : con <= (flag[`ALUF_ZF] == 1'b1 || flag[`ALUF_SF] != flag[`ALUF_OF]);
			`JMP_S : con <= (flag[`ALUF_SF] == 1'b1);
			`JMP_NS : con <= (flag[`ALUF_SF] == 1'b0);
			`JMP_O : con <= (flag[`ALUF_OF] == 1'b1);
			`JMP_NO : con <= (flag[`ALUF_OF] == 1'b0);
			`JMP_CRZ : con <= (cr == 16'd0);
			default : begin
				$display("unknown type:%b", type);
				$finish();
			end
		endcase
	end
	
	assign pc_o = (en) ? ((con) ? addr : pc_i) : 16'bz;
endmodule
module jmp_check(input [15:0] addr, pc_i, output [15:0] pc_o, input [3:0] type, input [15:0] flag, input [15:0] cr, input en);

	reg con;
	
	always @(posedge en) begin
		case (type)
			`JMP_FORCE : con <= 1;
			`JMP_E : con <= (flag[`ALUF_ZF] == 1'b1);
			`JMP_NE : con <= (flag[`ALUF_ZF] == 1'b0);
			`JMP_A : con <= (flag[`ALUF_CF] == 1'b0 && flag[`ALUF_ZF] == 1'b0);
			`JMP_AE : con <= (flag[`ALUF_CF] == 1'b0);
			`JMP_B : con <= (flag[`ALUF_CF] == 1'b1);
			`JMP_BE : con <= (flag[`ALUF_CF] == 1'b1 || flag[`ALUF_ZF] == 1'b1);
			`JMP_G : con <= (flag[`ALUF_ZF] == 1'b0 && flag[`ALUF_SF] == flag[`ALUF_OF]);
			`JMP_GE : con <= (flag[`ALUF_SF] == flag[`ALUF_OF]);
			`JMP_L : con <= (flag[`ALUF_SF] != flag[`ALUF_OF]);
			`JMP_LE : con <= (flag[`ALUF_ZF] == 1'b1 || flag[`ALUF_SF] != flag[`ALUF_OF]);
			`JMP_S : con <= (flag[`ALUF_SF] == 1'b1);
			`JMP_NS : con <= (flag[`ALUF_SF] == 1'b0);
			`JMP_O : con <= (flag[`ALUF_OF] == 1'b1);
			`JMP_NO : con <= (flag[`ALUF_OF] == 1'b0);
			`JMP_CRZ : con <= (cr == 16'd0);
			default : begin
				$display("unknown type:%b", type);
				$finish();
			end
		endcase
	end
	
	assign pc_o = (en) ? ((con) ? addr : pc_i) : 16'bz;
endmodule