def readData(inp, output_dict, input_dict):
    """
    This function read data from input wire and output
    :param inp: input name
    :param output_dict: output dictionary
    :param input_dict: input dictionary
    :return: input value
    """
    if inp in output_dict.keys():
        tempLogic = output_dict[inp]
    else:
        tempLogic = input_dict[inp]
    return tempLogic
