Skip to content

Commit ce0c25e

Browse files
committed
vtr_flow: tasks: remove try/except when reading sdc and place_constr
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 4c468f0 commit ce0c25e

File tree

1 file changed

+12
-18
lines changed
  • vtr_flow/scripts/python_libs/vtr

1 file changed

+12
-18
lines changed

vtr_flow/scripts/python_libs/vtr/task.py

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -348,28 +348,22 @@ def create_jobs(args, configs, longest_name=0, longest_arch_circuit=0, after_run
348348

349349
if config.sdc_dir:
350350
sdc_name = "{}.sdc".format(Path(circuit).stem)
351-
try:
352-
sdc_file = resolve_vtr_source_file(config, sdc_name, config.sdc_dir)
351+
sdc_file = resolve_vtr_source_file(config, sdc_name, config.sdc_dir)
353352

354-
cmd += [
355-
"-sdc_file",
356-
"{}".format(sdc_file)
357-
]
358-
except InspectError:
359-
pass
353+
cmd += [
354+
"-sdc_file",
355+
"{}".format(sdc_file)
356+
]
360357

361358
if config.place_constr_dir:
362359
place_constr_name = "{}.place".format(Path(circuit).stem)
363-
try:
364-
place_constr_file = resolve_vtr_source_file(
365-
config, place_constr_name, config.place_constr_dir)
366-
367-
cmd += [
368-
"--fix_clusters",
369-
"{}".format(place_constr_file)
370-
]
371-
except InspectError:
372-
pass
360+
place_constr_file = resolve_vtr_source_file(
361+
config, place_constr_name, config.place_constr_dir)
362+
363+
cmd += [
364+
"--fix_clusters",
365+
"{}".format(place_constr_file)
366+
]
373367

374368
parse_cmd = None
375369
second_parse_cmd = None

0 commit comments

Comments
 (0)