import argparse


def create_runme(f_out, args):
    print(
        """
report_timing_summary

source {util_tcl}
write_timing_info timing_{name}.json5
""".format(name=args.name, util_tcl=args.util_tcl),
        file=f_out
    )


def main():
    parser = argparse.ArgumentParser(description=__doc__)

    parser.add_argument('--name', required=True)
    parser.add_argument('--util_tcl', required=True)
    parser.add_argument('--output_tcl', required=True)

    args = parser.parse_args()
    with open(args.output_tcl, 'w') as f:
        create_runme(f, args)


if __name__ == "__main__":
    main()

import argparse


def create_output_timing(f_out, args):
    print(
        """
source {util_tcl}
write_timing_info timing_{name}.json5

report_timing_summary
""".format(name=args.name, util_tcl=args.util_tcl),
        file=f_out
    )


def main():
    parser = argparse.ArgumentParser(description=__doc__)

    parser.add_argument('--name', required=True)
    parser.add_argument('--util_tcl', required=True)
    parser.add_argument('--output_tcl', required=True)

    args = parser.parse_args()
    with open(args.output_tcl, 'w') as f:
        create_output_timing(f, args)


if __name__ == "__main__":
    main()

Correct function name and put report_timing_summary at end of script.
Correct function name and put report_timing_summary at end of script.

Signed-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>

  import argparse
  
  
- def create_runme(f_out, args):
+ def create_output_timing(f_out, args):
      print(
          """
- report_timing_summary
- 
  source {util_tcl}
  write_timing_info timing_{name}.json5
+ 
+ report_timing_summary
  """.format(name=args.name, util_tcl=args.util_tcl),
          file=f_out
      )
  
  
  def main():
      parser = argparse.ArgumentParser(description=__doc__)
  
      parser.add_argument('--name', required=True)
      parser.add_argument('--util_tcl', required=True)
      parser.add_argument('--output_tcl', required=True)
  
      args = parser.parse_args()
      with open(args.output_tcl, 'w') as f:
-         create_runme(f, args)
+         create_output_timing(f, args)
  
  
  if __name__ == "__main__":
      main()
  
Correct function name and put report_timing_summary at end of script.
## Code Before:
import argparse


def create_runme(f_out, args):
    print(
        """
report_timing_summary

source {util_tcl}
write_timing_info timing_{name}.json5
""".format(name=args.name, util_tcl=args.util_tcl),
        file=f_out
    )


def main():
    parser = argparse.ArgumentParser(description=__doc__)

    parser.add_argument('--name', required=True)
    parser.add_argument('--util_tcl', required=True)
    parser.add_argument('--output_tcl', required=True)

    args = parser.parse_args()
    with open(args.output_tcl, 'w') as f:
        create_runme(f, args)


if __name__ == "__main__":
    main()

## Instruction:
Correct function name and put report_timing_summary at end of script.
## Code After:
import argparse


def create_output_timing(f_out, args):
    print(
        """
source {util_tcl}
write_timing_info timing_{name}.json5

report_timing_summary
""".format(name=args.name, util_tcl=args.util_tcl),
        file=f_out
    )


def main():
    parser = argparse.ArgumentParser(description=__doc__)

    parser.add_argument('--name', required=True)
    parser.add_argument('--util_tcl', required=True)
    parser.add_argument('--output_tcl', required=True)

    args = parser.parse_args()
    with open(args.output_tcl, 'w') as f:
        create_output_timing(f, args)


if __name__ == "__main__":
    main()
