[Script] Allow users to specify custom post-synthesis verilog for simulation

This commit is contained in:
tangxifan 2021-03-10 11:45:55 -07:00
parent aafd87c3f9
commit 5d46537b5b
1 changed files with 7 additions and 6 deletions

View File

@ -279,12 +279,13 @@ def generate_each_task_actions(taskname):
"for vpr_blif flow")
CurrBenchPara["activity_file"] = SynthSection.get(bech_name+"_act")
# Check if base verilog file exists
if not SynthSection.get(bech_name+"_verilog"):
clean_up_and_exit("Missing argument %s for vpr_blif flow" %
(bech_name+"_verilog"))
CurrBenchPara["verilog_file"] = SynthSection.get(
bech_name+"_verilog")
# Allow user to specify a post-synthesis verilog file for simulation usage
# Check if base verilog file exists
if not SynthSection.get(bech_name+"_verilog"):
clean_up_and_exit("Missing argument %s for vpr_blif flow" %
(bech_name+"_verilog"))
CurrBenchPara["verilog_file"] = SynthSection.get(
bech_name+"_verilog")
# Add script parameter list in current benchmark
ScriptSections = [x for x in TaskFileSections if "SCRIPT_PARAM" in x]