[Script] Now task-run script support the use of env variables openfpga_path in yosys scripts

This commit is contained in:
tangxifan 2021-03-16 16:45:57 -06:00
parent 76837e02e6
commit 090f483a11
1 changed files with 6 additions and 7 deletions

View File

@ -481,14 +481,13 @@ def run_yosys_with_abc():
clean_up_and_exit("") clean_up_and_exit("")
args.K = lut_size args.K = lut_size
# Yosys script parameter mapping # Yosys script parameter mapping
ys_params = { ys_params = script_env_vars["PATH"]
"READ_VERILOG_FILE": " \n".join([ ys_params["READ_VERILOG_FILE"] = " \n".join([
"read_verilog -nolatches " + shlex.quote(eachfile) "read_verilog -nolatches " + shlex.quote(eachfile)
for eachfile in args.benchmark_files]), for eachfile in args.benchmark_files])
"TOP_MODULE": args.top_module, ys_params["TOP_MODULE"] = args.top_module
"LUT_SIZE": lut_size, ys_params["LUT_SIZE"] = lut_size
"OUTPUT_BLIF": args.top_module+"_yosys_out.blif", ys_params["OUTPUT_BLIF"] = args.top_module+"_yosys_out.blif"
}
for indx in range(0, len(OpenFPGAArgs), 2): for indx in range(0, len(OpenFPGAArgs), 2):
tmpVar = OpenFPGAArgs[indx][2:].upper() tmpVar = OpenFPGAArgs[indx][2:].upper()