From 379160e78dbc55a010c3ec9fa1623f181eb72a34 Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Mon, 20 Mar 2023 11:30:34 +0100
Subject: [PATCH] Add missing hex files for 16G 64b and 72b.

---
 .../designs/unb2c_test/revisions/unb2c_test_ddr/hdllib.cfg   | 5 +++++
 .../unb2c_test/revisions/unb2c_test_ddr_16G/hdllib.cfg       | 5 +++++
 libraries/io/ddr/hdllib.cfg                                  | 3 ++-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/boards/uniboard2c/designs/unb2c_test/revisions/unb2c_test_ddr/hdllib.cfg b/boards/uniboard2c/designs/unb2c_test/revisions/unb2c_test_ddr/hdllib.cfg
index 6d3ea7c1f0..dda0a9ead9 100644
--- a/boards/uniboard2c/designs/unb2c_test/revisions/unb2c_test_ddr/hdllib.cfg
+++ b/boards/uniboard2c/designs/unb2c_test/revisions/unb2c_test_ddr/hdllib.cfg
@@ -22,6 +22,11 @@ regression_test_vhdl =
 modelsim_copy_files =
     ../../src/hex hex
 
+modelsim_compile_ip_files =
+    $HDL_WORK/libraries/technology/ip_arria10/ddr4_4g_1600/copy_hex_files.tcl               # 4GB DDR4 model
+    $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_8g_1600/copy_hex_files.tcl          # Unb2c 8GB DDR4 driver
+    $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_16g_1600/ddr4_16g_1600_64b/copy_hex_files.tcl   # Unb2c 16GB-64b DDR4 driver
+    $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_16g_1600/ddr4_16g_1600_72b/copy_hex_files.tcl   # Unb2c 16GB-72b DDR4 driver
 
 [quartus_project_file]
 synth_top_level_entity =
diff --git a/boards/uniboard2c/designs/unb2c_test/revisions/unb2c_test_ddr_16G/hdllib.cfg b/boards/uniboard2c/designs/unb2c_test/revisions/unb2c_test_ddr_16G/hdllib.cfg
index bb3b67dbb7..330391473a 100644
--- a/boards/uniboard2c/designs/unb2c_test/revisions/unb2c_test_ddr_16G/hdllib.cfg
+++ b/boards/uniboard2c/designs/unb2c_test/revisions/unb2c_test_ddr_16G/hdllib.cfg
@@ -23,6 +23,11 @@ regression_test_vhdl =
 modelsim_copy_files =
     ../../src/hex hex
 
+modelsim_compile_ip_files =
+    $HDL_WORK/libraries/technology/ip_arria10/ddr4_4g_1600/copy_hex_files.tcl               # 4GB DDR4 model
+    $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_8g_1600/copy_hex_files.tcl          # Unb2c 8GB DDR4 driver
+    $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_16g_1600/ddr4_16g_1600_64b/copy_hex_files.tcl   # Unb2c 16GB-64b DDR4 driver
+    $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_16g_1600/ddr4_16g_1600_72b/copy_hex_files.tcl   # Unb2c 16GB-72b DDR4 driver
 
 [quartus_project_file]
 synth_top_level_entity =
diff --git a/libraries/io/ddr/hdllib.cfg b/libraries/io/ddr/hdllib.cfg
index 8bb8fa2a50..9ff95327eb 100644
--- a/libraries/io/ddr/hdllib.cfg
+++ b/libraries/io/ddr/hdllib.cfg
@@ -28,6 +28,7 @@ modelsim_compile_ip_files =
     $HDL_WORK/libraries/technology/ip_arria10_e1sg/ddr4_4g_1600/copy_hex_files.tcl          # Unb2b 4GB DDR4 driver
     $HDL_WORK/libraries/technology/ip_arria10_e1sg/ddr4_8g_1600/copy_hex_files.tcl          # Unb2b 8GB DDR4 driver
     $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_8g_1600/copy_hex_files.tcl          # Unb2c 8GB DDR4 driver
-
+    $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_16g_1600/ddr4_16g_1600_64b/copy_hex_files.tcl   # Unb2c 16GB-64b DDR4 driver
+    $HDL_WORK/libraries/technology/ip_arria10_e2sg/ddr4_16g_1600/ddr4_16g_1600_72b/copy_hex_files.tcl   # Unb2c 16GB-72b DDR4 driver
 
 [quartus_project_file]
-- 
GitLab