From 7fa2b2aa5124e552b757a5d2b548c032cb2ea195 Mon Sep 17 00:00:00 2001
From: Yaman Umuroglu <yamanu@xilinx.com>
Date: Fri, 25 Mar 2022 13:12:47 +0100
Subject: [PATCH] [Stitch] fix mdd folder name and tcl command syntax err

---
 .../transformation/fpgadataflow/create_stitched_ip.py     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/finn/transformation/fpgadataflow/create_stitched_ip.py b/src/finn/transformation/fpgadataflow/create_stitched_ip.py
index 59e424547..c88c65fc8 100644
--- a/src/finn/transformation/fpgadataflow/create_stitched_ip.py
+++ b/src/finn/transformation/fpgadataflow/create_stitched_ip.py
@@ -447,16 +447,16 @@ class CreateStitchedIP(Transformation):
             )
         # add a rudimentary driver mdd to get correct ranges in xparameters.h later on
         example_data_dir = pk.resource_filename("finn.qnn-data", "mdd-data/")
-        copytree(example_data_dir, vivado_stitch_proj_dir + "/mdd-data")
-        tcl.append("file copy -force mdd-data ip/")
+        copytree(example_data_dir, vivado_stitch_proj_dir + "/data")
+        tcl.append("file copy -force data ip/")
         tcl.append("ipx::add_file_group -type software_driver {} [ipx::current_core]")
         tcl.append(
-            "set_property type mdd [ipx::add_file mdd-data/finn_design.mdd"
+            "set_property type mdd [ipx::add_file data/finn_design.mdd "
             "[ipx::get_file_groups xilinx_softwaredriver -of_objects "
             "[ipx::current_core]]]"
         )
         tcl.append(
-            "set_property type tclSource [ipx::add_file mdd-data/finn_design.tcl "
+            "set_property type tclSource [ipx::add_file data/finn_design.tcl "
             "[ipx::get_file_groups xilinx_softwaredriver -of_objects "
             "[ipx::current_core]]]"
         )
-- 
GitLab