#***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
#Author:   jcyuan
#E-Mail:   yuan861025184@163.com
#Project:  UVM Auto Generator
#Function: Top Run the Generator
#***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
import os
import argparse
from generator.base_func import *
from generator.debug_log import *
from generator.integration import *
#config the args
parser = argparse.ArgumentParser(prog="PROG",usage="%(prog)s [options]",description="UVM Generator Config")
#the debug config 
parser.add_argument("-d","--debug",type=int,choices=[0,1,2,3,4],default=1,help="Debug Level Set") #debug level
parser.add_argument("-l","--log",type=str,default="",help="Debug Log File") #debug log file name 
parser.add_argument("-i","--inpcfg",type=str,default="",help="Verify Progect Config File") #the instance config file 
parser.add_argument("-o","--output",type=str,default="./build",help="UVM Progect Output Directory")  #project output directory


#***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
#***** ***** ***** ***** run the flow ***** ***** ***** ***** ****
#***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
args=parser.parse_args()
#config the log 
log_cfg(log_level=args.debug,log_fil=args.log)
if not path_exists(args.inpcfg):
    CRITICAL("NO Config File Input")
    print("usage: python3 top.py -h")
    exit()
else:
    INFO("Running the Flow")
    integrate=INTEGRATION()
    integrate.cfg_file=args.inpcfg
    integrate.out_dir=args.output
    integrate.run_flow()

d4886b4a37948781a3a50860c6702f248c8d40b4
<mask token>

<mask token>
parser.add_argument('-d', '--debug', type=int, choices=[0, 1, 2, 3, 4],
    default=1, help='Debug Level Set')
parser.add_argument('-l', '--log', type=str, default='', help='Debug Log File')
parser.add_argument('-i', '--inpcfg', type=str, default='', help=
    'Verify Progect Config File')
parser.add_argument('-o', '--output', type=str, default='./build', help=
    'UVM Progect Output Directory')
<mask token>
log_cfg(log_level=args.debug, log_fil=args.log)
if not path_exists(args.inpcfg):
    CRITICAL('NO Config File Input')
    print('usage: python3 top.py -h')
    exit()
else:
    INFO('Running the Flow')
    integrate = INTEGRATION()
    integrate.cfg_file = args.inpcfg
    integrate.out_dir = args.output
    integrate.run_flow()

<mask token>
parser = argparse.ArgumentParser(prog='PROG', usage='%(prog)s [options]',
    description='UVM Generator Config')
parser.add_argument('-d', '--debug', type=int, choices=[0, 1, 2, 3, 4],
    default=1, help='Debug Level Set')
parser.add_argument('-l', '--log', type=str, default='', help='Debug Log File')
parser.add_argument('-i', '--inpcfg', type=str, default='', help=
    'Verify Progect Config File')
parser.add_argument('-o', '--output', type=str, default='./build', help=
    'UVM Progect Output Directory')
args = parser.parse_args()
log_cfg(log_level=args.debug, log_fil=args.log)
if not path_exists(args.inpcfg):
    CRITICAL('NO Config File Input')
    print('usage: python3 top.py -h')
    exit()
else:
    INFO('Running the Flow')
    integrate = INTEGRATION()
    integrate.cfg_file = args.inpcfg
    integrate.out_dir = args.output
    integrate.run_flow()

import os
import argparse
from generator.base_func import *
from generator.debug_log import *
from generator.integration import *
parser = argparse.ArgumentParser(prog='PROG', usage='%(prog)s [options]',
    description='UVM Generator Config')
parser.add_argument('-d', '--debug', type=int, choices=[0, 1, 2, 3, 4],
    default=1, help='Debug Level Set')
parser.add_argument('-l', '--log', type=str, default='', help='Debug Log File')
parser.add_argument('-i', '--inpcfg', type=str, default='', help=
    'Verify Progect Config File')
parser.add_argument('-o', '--output', type=str, default='./build', help=
    'UVM Progect Output Directory')
args = parser.parse_args()
log_cfg(log_level=args.debug, log_fil=args.log)
if not path_exists(args.inpcfg):
    CRITICAL('NO Config File Input')
    print('usage: python3 top.py -h')
    exit()
else:
    INFO('Running the Flow')
    integrate = INTEGRATION()
    integrate.cfg_file = args.inpcfg
    integrate.out_dir = args.output
    integrate.run_flow()

#***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
#Author:   jcyuan
#E-Mail:   yuan861025184@163.com
#Project:  UVM Auto Generator
#Function: Top Run the Generator
#***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
import os
import argparse
from generator.base_func import *
from generator.debug_log import *
from generator.integration import *
#config the args
parser = argparse.ArgumentParser(prog="PROG",usage="%(prog)s [options]",description="UVM Generator Config")
#the debug config 
parser.add_argument("-d","--debug",type=int,choices=[0,1,2,3,4],default=1,help="Debug Level Set") #debug level
parser.add_argument("-l","--log",type=str,default="",help="Debug Log File") #debug log file name 
parser.add_argument("-i","--inpcfg",type=str,default="",help="Verify Progect Config File") #the instance config file 
parser.add_argument("-o","--output",type=str,default="./build",help="UVM Progect Output Directory")  #project output directory


#***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
#***** ***** ***** ***** run the flow ***** ***** ***** ***** ****
#***** ***** ***** ***** ***** ***** ***** ***** ***** ***** *****
args=parser.parse_args()
#config the log 
log_cfg(log_level=args.debug,log_fil=args.log)
if not path_exists(args.inpcfg):
    CRITICAL("NO Config File Input")
    print("usage: python3 top.py -h")
    exit()
else:
    INFO("Running the Flow")
    integrate=INTEGRATION()
    integrate.cfg_file=args.inpcfg
    integrate.out_dir=args.output
    integrate.run_flow()
