def cli(ctx):
"""Helper tool for using Vivado HLS through the command line. If no arguments are specified then a default run is executed which includes C simulation, C synthesis, Cosimulation and export for both Vivado IP Catalog and System Generator. If any of the run options are specified then only those specified are performed."""
# Generate a default config dict and then load in the local config file.
config = generate_default_config();
config_loaded = get_vars_from_file('hls_config.py')
errors = []
parse_config_vars(config_loaded, config, errors)
if len(errors) != 0:
for err in errors:
print(err)
print("Config Errors, exiting...")
raise click.Abort()
# Store the loaded config in an object within the Click context so it is available to all commands.
obj = hlsclt_internal_object(config)
ctx.obj = obj
pass
# Add Click Sub Commands
评论列表
文章目录