f4pga/flows/common: cleanup

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-10-02 19:00:33 +01:00
parent 3ef329ce6f
commit 4d52d3c721
1 changed files with 1 additions and 12 deletions

View File

@ -156,17 +156,6 @@ def vpr(mode: str, vprargs: VprArgs, cwd=None):
""" """
Execute `vpr`. Execute `vpr`.
""" """
modeargs = []
if mode == "pack":
modeargs = ["--pack"]
elif mode == "place":
modeargs = ["--place"]
elif mode == "route":
modeargs = ["--route"]
elif mode == "analysis":
modeargs = ["--analysis"]
return sub( return sub(
*( *(
[ [
@ -182,7 +171,7 @@ def vpr(mode: str, vprargs: VprArgs, cwd=None):
"--read_placement_delay_lookup", "--read_placement_delay_lookup",
vprargs.place_delay, vprargs.place_delay,
] ]
+ modeargs + ([f"--{mode}"] if mode in ["pack", "place", "route", "analysis"] else [])
+ vprargs.optional + vprargs.optional
), ),
cwd=cwd, cwd=cwd,