From 4d52d3c721f5777c1b4a76555db955e0aaee6624 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Sun, 2 Oct 2022 19:00:33 +0100 Subject: [PATCH] f4pga/flows/common: cleanup Signed-off-by: Unai Martinez-Corral --- f4pga/flows/common.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/f4pga/flows/common.py b/f4pga/flows/common.py index e2f2764..8a31179 100644 --- a/f4pga/flows/common.py +++ b/f4pga/flows/common.py @@ -156,17 +156,6 @@ def vpr(mode: str, vprargs: VprArgs, cwd=None): """ 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( *( [ @@ -182,7 +171,7 @@ def vpr(mode: str, vprargs: VprArgs, cwd=None): "--read_placement_delay_lookup", vprargs.place_delay, ] - + modeargs + + ([f"--{mode}"] if mode in ["pack", "place", "route", "analysis"] else []) + vprargs.optional ), cwd=cwd,