From 9124fc7a2222379fd9e1dd82187e619810bcb1b6 Mon Sep 17 00:00:00 2001
From: Daniel van der Schuur <schuur@astron.nl>
Date: Fri, 10 Jul 2015 12:25:51 +0000
Subject: [PATCH] -Fixed path to ehx files; -Added copy_files statement to
 hdllib.

---
 libraries/dsp/correlator/hdllib.cfg                | 3 +++
 libraries/dsp/correlator/tb/vhdl/tb_correlator.vhd | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/libraries/dsp/correlator/hdllib.cfg b/libraries/dsp/correlator/hdllib.cfg
index fc1fcbc8e9..d927c822d6 100644
--- a/libraries/dsp/correlator/hdllib.cfg
+++ b/libraries/dsp/correlator/hdllib.cfg
@@ -5,6 +5,9 @@ hdl_lib_uses_sim =
 
 hdl_lib_technology = 
 
+modelsim_copy_files = 
+    src/hex hex
+
 synth_files =
     $SVN/RadioHDL/trunk/libraries/dsp/correlator/src/vhdl/corr_carousel.vhd
     $SVN/RadioHDL/trunk/libraries/dsp/correlator/src/vhdl/corr_unfolder.vhd
diff --git a/libraries/dsp/correlator/tb/vhdl/tb_correlator.vhd b/libraries/dsp/correlator/tb/vhdl/tb_correlator.vhd
index 26a88542fb..034c209294 100644
--- a/libraries/dsp/correlator/tb/vhdl/tb_correlator.vhd
+++ b/libraries/dsp/correlator/tb/vhdl/tb_correlator.vhd
@@ -139,7 +139,7 @@ BEGIN
     g_nof_streams        => c_nof_input_streams,
     g_buf_dat_w          => 2*c_complex_data_w,
     g_buf_addr_w         => ceil_log2(TO_UINT(c_bg_ctrl.samples_per_packet)),
-    g_file_name_prefix   => "../../../libraries/dsp/correlator/src/hex/complex_subbands_" & NATURAL'IMAGE(c_complex_data_w) & "b_" & "fold_" & NATURAL'IMAGE(g_nof_input_folds),
+    g_file_name_prefix   => "hex/complex_subbands_" & NATURAL'IMAGE(c_complex_data_w) & "b_" & "fold_" & NATURAL'IMAGE(g_nof_input_folds),
     g_diag_block_gen_rst => c_bg_ctrl
   )
   PORT MAP (
-- 
GitLab