Adjust cli.py to match the changed '-cfg' config file option.
@@ -47,7 +47,7 @@ def cmdline():
"Examples: ",
"$ sc 'hello_world.v' -target freepdk45' ",
"$ sc 'my_riscv_cpu.v' -target asap7 -design my_riscv_cpu ",
- "$ sc 'my_tpu.v' -cfgfile my_tpu_setup.json ",
+ "$ sc 'my_tpu.v' -cfg my_tpu_setup.json ",
" ",
"-----------------------------------------------------------------------"])
@@ -207,8 +207,8 @@ def main():
setup_target(chip)
# Reading in config files specified at command line
- if 'cfgfile' in cmdlinecfg.keys():
- for cfgfile in cmdlinecfg['cfgfile']['value']:
+ if 'cfg' in cmdlinecfg.keys():
+ for cfgfile in cmdlinecfg['cfg']['value']:
chip.readcfg(cfgfile)
#Override cfg with command line args
