def METHOD_NAME(self, port_num):
    if port_num < self.port_start or port_num > self.port_end:
        return False
    mod_rst_path = self.BASE_CPLD_PATH + "module_reset_" + str(port_num)
    self.__port_to_mod_rst = mod_rst_path
    try:
        reg_file = open(self.__port_to_mod_rst, 'r+', buffering=0)
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    # toggle reset
    reg_file.seek(0)
    reg_file.write('1')
    time.sleep(1)
    reg_file.seek(0)
    reg_file.write('0')
    reg_file.close()
    return True