From 657ec60d21a4766bf08c8cc461cd0fa5ee5456a5 Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <maltanar@gmail.com> Date: Mon, 3 May 2021 23:23:16 +0100 Subject: [PATCH] [Vitis] slightly improved VitisBuild enable_link comment --- src/finn/transformation/fpgadataflow/vitis_build.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/finn/transformation/fpgadataflow/vitis_build.py b/src/finn/transformation/fpgadataflow/vitis_build.py index 2260b73ef..c70ff88ba 100644 --- a/src/finn/transformation/fpgadataflow/vitis_build.py +++ b/src/finn/transformation/fpgadataflow/vitis_build.py @@ -116,7 +116,7 @@ class CreateVitisXO(Transformation): ) arg_id += 1 args_string.append( - "{numReps:0:%s:%s:0x4:0x1C:uint:0}" + "{numReps:0:%s:%s:0x4:0x1C:uint:0}" % (str(arg_id), axilite_intf_name) ) arg_id += 1 @@ -340,8 +340,8 @@ class VitisBuild(Transformation): floorplan_file: path to a JSON containing a dictionary with SLR assignments for each node in the ONNX graph. Must be parse-able by the ApplyConfig transform. - enable_link: enable linking .xo files - + enable_link: enable linking kernels (.xo files), otherwise just synthesize + them independently. """ def __init__( @@ -368,10 +368,7 @@ class VitisBuild(Transformation): # first infer layouts model = model.transform(InferDataLayouts()) # prepare at global level, then break up into kernels - prep_transforms = [ - InsertIODMA(512), - InsertDWC(), - ] + prep_transforms = [InsertIODMA(512), InsertDWC()] for trn in prep_transforms: model = model.transform(trn) model = model.transform(GiveUniqueNodeNames()) @@ -420,6 +417,6 @@ class VitisBuild(Transformation): # set platform attribute for correct remote execution model.set_metadata_prop("platform", "alveo") - #create driver + # create driver model = model.transform(MakePYNQDriver(platform="alveo")) return (model, False) -- GitLab