From b0f3f7ff9e9388480c1401e064b582613888fc15 Mon Sep 17 00:00:00 2001
From: Daniel Newbrook <dwn1c21@soton.ac.uk>
Date: Fri, 13 Oct 2023 16:46:46 +0100
Subject: [PATCH] Add copy of dma350 address mapping to setenv

---
 set_env.sh                         | 1 +
 system/src/accelerator_subsystem.v | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/set_env.sh b/set_env.sh
index 65e9115..392e8cb 100755
--- a/set_env.sh
+++ b/set_env.sh
@@ -13,6 +13,7 @@
 # Source set_env script from soctools_flow
 source soctools_flow/bin/project_setup.sh $@
 if [ ! -f .dma350_configured ]; then
+    cp nanosoc_tech/nanosoc/sldma350_tech/config/address_map_m1_nanosoc.sv $ARM_IP_LIBRARY_PATH/DMA-350/CG096-r0p0-00rel0/CG096-BU-50000-r0p0-00rel0/dma350/logical/models/modules/generic/address_map_m1_nanosoc.sv
     make -C nanosoc_tech/nanosoc/sldma350_tech/ config_dma_ahb
     touch .dma350_configured
 fi
\ No newline at end of file
diff --git a/system/src/accelerator_subsystem.v b/system/src/accelerator_subsystem.v
index 6cb2d42..0957c7c 100644
--- a/system/src/accelerator_subsystem.v
+++ b/system/src/accelerator_subsystem.v
@@ -38,7 +38,7 @@ module accelerator_subsystem #(
   output wire   [1:0]              EXP_DRQ,
   input  wire   [1:0]              EXP_DLAST,
    // DMAC Stream interfaces
-`ifdef DMAC_1_DMA350
+`ifdef DMAC_DMA350
   input  wire                      EXP_STR_IN_0_TVALID,
   output wire                      EXP_STR_IN_0_TREADY,
   input  wire [SYS_DATA_W-1:0]     EXP_STR_IN_0_TDATA,
-- 
GitLab