data/full_repos/permissive/181665138/verilog/capitolo_vi/sEP8.v
 line:491: before: "=="
1: b"%Error: data/full_repos/permissive/181665138/verilog/capitolo_vi/sEP8.v:491: syntax error, unexpected ==, expecting ')' or ',' or or\n    always @(reset_ == 0) #1\n                    ^~\n%Error: Cannot continue\n"
function [6:0] first_execution_state;
        input [7:0] opcode;
        casex(opcode)

            'B00000000: first_execution_state = hlt;
            'B00000001: first_execution_state = nop;
            'B00000010: first_execution_state = ALtoAH;
            'B00000011: first_execution_state = AHtoAL;
            'B00000100: first_execution_state = incDP;
            'B00000101: first_execution_state = aluAL;
            'B00000110: first_execution_state = aluAL;
            'B00000111: first_execution_state = aluAL;
            'B00001000: first_execution_state = aluAH;
            'B00001001: first_execution_state = aluAH;
            'B00001010: first_execution_state = aluAH;
			'B00001011: first_execution_state = pushAL;
            'B00001100: first_execution_state = popAL;
            'B00001101: first_execution_state = pushAH;
            'B00001110: first_execution_state = popAH;
            'B00001111: first_execution_state = pushDP;
            'B00010000: first_execution_state = popDP;
            'B00010001: first_execution_state = ret;


            'B00100000: first_execution_state = in;
            'B00100001: first_execution_state = out;
            'B00100010: first_execution_state = ldimmDP;
            'B00100011: first_execution_state = ldSP;
            'B00100100: first_execution_state = lddirDP;
            'B00100101: first_execution_state = storeDP;


            'B01000000: first_execution_state = ldAL;
            'B01000001: first_execution_state = aluAL;
            'B01000010: first_execution_state = aluAL;
            'B01000011: first_execution_state = aluAL;
            'B01000100: first_execution_state = aluAL;
            'B01000101: first_execution_state = aluAL;
            'B01000110: first_execution_state = ldAH;
            'B01000111: first_execution_state = aluAH;
            'B01001000: first_execution_state = aluAH;
            'B01001001: first_execution_state = aluAH;
            'B01001010: first_execution_state = aluAH;
            'B01001011: first_execution_state = aluAH;


            'B01100000: first_execution_state = storeAL;
            'B01100001: first_execution_state = storeAH;


            'B10000000: first_execution_state = ldAL;
            'B10000001: first_execution_state = aluAH;
            'B10000010: first_execution_state = aluAL;
            'B10000011: first_execution_state = aluAL;
            'B10000100: first_execution_state = aluAL;
            'B10000101: first_execution_state = aluAL;
            'B10000110: first_execution_state = ldAH;
            'B10000111: first_execution_state = aluAH;
            'B10001000: first_execution_state = aluAH;
            'B10001001: first_execution_state = aluAH;
            'B10001010: first_execution_state = aluAH;
            'B10001011: first_execution_state = aluAH;


			'B10100000: first_execution_state = ldAL;
            'B10100001: first_execution_state = aluAL;
            'B10100010: first_execution_state = aluAL;
            'B10100011: first_execution_state = aluAL;
            'B10100100: first_execution_state = aluAL;
            'B10100101: first_execution_state = aluAL;
            'B10100110: first_execution_state = ldAH;
            'B10100111: first_execution_state = aluAH;
            'B10101000: first_execution_state = aluAH;
            'B10101001: first_execution_state = aluAH;
            'B10101010: first_execution_state = aluAH;
            'B10101011: first_execution_state = aluAH;


            'B11000000: first_execution_state = storeAL;
            'B11000001: first_execution_state = storeAH;


            'B11100000: first_execution_state = jmp;
            'B11100001: first_execution_state = jmp;
            'B11100010: first_execution_state = jmp;
            'B11100011: first_execution_state = jmp;
            'B11100100: first_execution_state = jmp;
            'B11100101: first_execution_state = jmp;
            'B11100110: first_execution_state = jmp;
            'B11100111: first_execution_state = jmp;
            'B11101000: first_execution_state = jmp;
            'B11101001: first_execution_state = jmp;
            'B11101010: first_execution_state = jmp;
            'B11101011: first_execution_state = jmp;
            'B11101100: first_execution_state = jmp;
            'B11101101: first_execution_state = jmp;
            'B11101110: first_execution_state = jmp;
            'B11101111: first_execution_state = jmp;
            'B11110000: first_execution_state = jmp;
            'B11110001: first_execution_state = jmp;
            'B11110010: first_execution_state = jmp;
            'B11110011: first_execution_state = call;
        endcase
    endfunction
function [6:0] first_execution_state;

        input [7:0] opcode;
        casex(opcode)

            'B00000000: first_execution_state = hlt;
            'B00000001: first_execution_state = nop;
            'B00000010: first_execution_state = ALtoAH;
            'B00000011: first_execution_state = AHtoAL;
            'B00000100: first_execution_state = incDP;
            'B00000101: first_execution_state = aluAL;
            'B00000110: first_execution_state = aluAL;
            'B00000111: first_execution_state = aluAL;
            'B00001000: first_execution_state = aluAH;
            'B00001001: first_execution_state = aluAH;
            'B00001010: first_execution_state = aluAH;
			'B00001011: first_execution_state = pushAL;
            'B00001100: first_execution_state = popAL;
            'B00001101: first_execution_state = pushAH;
            'B00001110: first_execution_state = popAH;
            'B00001111: first_execution_state = pushDP;
            'B00010000: first_execution_state = popDP;
            'B00010001: first_execution_state = ret;


            'B00100000: first_execution_state = in;
            'B00100001: first_execution_state = out;
            'B00100010: first_execution_state = ldimmDP;
            'B00100011: first_execution_state = ldSP;
            'B00100100: first_execution_state = lddirDP;
            'B00100101: first_execution_state = storeDP;


            'B01000000: first_execution_state = ldAL;
            'B01000001: first_execution_state = aluAL;
            'B01000010: first_execution_state = aluAL;
            'B01000011: first_execution_state = aluAL;
            'B01000100: first_execution_state = aluAL;
            'B01000101: first_execution_state = aluAL;
            'B01000110: first_execution_state = ldAH;
            'B01000111: first_execution_state = aluAH;
            'B01001000: first_execution_state = aluAH;
            'B01001001: first_execution_state = aluAH;
            'B01001010: first_execution_state = aluAH;
            'B01001011: first_execution_state = aluAH;


            'B01100000: first_execution_state = storeAL;
            'B01100001: first_execution_state = storeAH;


            'B10000000: first_execution_state = ldAL;
            'B10000001: first_execution_state = aluAH;
            'B10000010: first_execution_state = aluAL;
            'B10000011: first_execution_state = aluAL;
            'B10000100: first_execution_state = aluAL;
            'B10000101: first_execution_state = aluAL;
            'B10000110: first_execution_state = ldAH;
            'B10000111: first_execution_state = aluAH;
            'B10001000: first_execution_state = aluAH;
            'B10001001: first_execution_state = aluAH;
            'B10001010: first_execution_state = aluAH;
            'B10001011: first_execution_state = aluAH;


			'B10100000: first_execution_state = ldAL;
            'B10100001: first_execution_state = aluAL;
            'B10100010: first_execution_state = aluAL;
            'B10100011: first_execution_state = aluAL;
            'B10100100: first_execution_state = aluAL;
            'B10100101: first_execution_state = aluAL;
            'B10100110: first_execution_state = ldAH;
            'B10100111: first_execution_state = aluAH;
            'B10101000: first_execution_state = aluAH;
            'B10101001: first_execution_state = aluAH;
            'B10101010: first_execution_state = aluAH;
            'B10101011: first_execution_state = aluAH;


            'B11000000: first_execution_state = storeAL;
            'B11000001: first_execution_state = storeAH;


            'B11100000: first_execution_state = jmp;
            'B11100001: first_execution_state = jmp;
            'B11100010: first_execution_state = jmp;
            'B11100011: first_execution_state = jmp;
            'B11100100: first_execution_state = jmp;
            'B11100101: first_execution_state = jmp;
            'B11100110: first_execution_state = jmp;
            'B11100111: first_execution_state = jmp;
            'B11101000: first_execution_state = jmp;
            'B11101001: first_execution_state = jmp;
            'B11101010: first_execution_state = jmp;
            'B11101011: first_execution_state = jmp;
            'B11101100: first_execution_state = jmp;
            'B11101101: first_execution_state = jmp;
            'B11101110: first_execution_state = jmp;
            'B11101111: first_execution_state = jmp;
            'B11110000: first_execution_state = jmp;
            'B11110001: first_execution_state = jmp;
            'B11110010: first_execution_state = jmp;
            'B11110011: first_execution_state = call;
        endcase
    endfunction