An ADDWF PCL instruction is not correctly executed. Being a PCL modify instruction (like RETURN, RETFIE, RETLW, CALL, GOTO) the next instruction should be skipped. The solution is to modify PPC_Ctrl at line 138 bay adding this additional or Inst (13 downto 0) = "00011110000010" --ADDWF PCL