def METHOD_NAME(name, gds_name, final_verification=False):
    """Run DRC check on a given top-level name which is
       implemented in gds_name."""
    global num_drc_runs
    num_drc_runs += 1
    write_drc_script(name, gds_name, True, final_verification, OPTS.openram_temp)
    (outfile, errfile, resultsfile) = run_script(name, "drc")
    # count and report errors
    errors = 0
    try:
        f = open(OPTS.openram_temp + name +".err", "r")
    except:
        debug.error("Unable to retrieve DRC results file.", 1)
    results = f.readlines()
    f.close()
    for line in results:
        if re.match("Rule No.", line):
            if re.search("# INFO:", line) == None:
                errors = errors + 1
                debug.info(1, line)
    if errors > 0:
        debug.error("Errors: {}".format(errors))
    return errors