From 1fb78eea75da68583309a7c316b749ac27dfb14f Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Tue, 30 Sep 2014 07:23:31 +0000
Subject: [PATCH] Corrected g_nof_gx GENERATE ranges.

---
 .../ip_stratixiv/ip_stratixiv_gxb_reconfig_v101.vhd         | 6 +++---
 .../ip_stratixiv/ip_stratixiv_gxb_reconfig_v111.vhd         | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libraries/technology/ip_stratixiv/ip_stratixiv_gxb_reconfig_v101.vhd b/libraries/technology/ip_stratixiv/ip_stratixiv_gxb_reconfig_v101.vhd
index 73570cf501..e412cc3004 100644
--- a/libraries/technology/ip_stratixiv/ip_stratixiv_gxb_reconfig_v101.vhd
+++ b/libraries/technology/ip_stratixiv/ip_stratixiv_gxb_reconfig_v101.vhd
@@ -45,7 +45,7 @@ END ip_stratixiv_gxb_reconfig_v101;
 ARCHITECTURE str OF ip_stratixiv_gxb_reconfig_v101 IS
 BEGIN
 
-  gen_gx_reconfig_4 : IF g_nof_gx = 4 GENERATE  
+  gen_gx_reconfig_4 : IF g_nof_gx <= 4 GENERATE  
     u_gx_reconfig_4 : ENTITY work.ip_stratixiv_gxb_reconfig_v101_4
     PORT MAP (
       reconfig_clk        => reconfig_clk,
@@ -55,7 +55,7 @@ BEGIN
     );
   END GENERATE;
         
-  gen_gx_reconfig_8 : IF g_nof_gx = 8 GENERATE  
+  gen_gx_reconfig_8 : IF g_nof_gx > 4 AND g_nof_gx <= 8 GENERATE  
     u_gx_reconfig_8 : ENTITY work.ip_stratixiv_gxb_reconfig_v101_8
     PORT MAP (
       reconfig_clk        => reconfig_clk,
@@ -65,7 +65,7 @@ BEGIN
     );
   END GENERATE;
 
-  gen_gx_reconfig_12 : IF g_nof_gx = 12 GENERATE  
+  gen_gx_reconfig_12 : IF g_nof_gx > 8 AND g_nof_gx <= 12 GENERATE  
     u_gx_reconfig_12 : ENTITY work.ip_stratixiv_gxb_reconfig_v101_12
     PORT MAP (
       reconfig_clk        => reconfig_clk,
diff --git a/libraries/technology/ip_stratixiv/ip_stratixiv_gxb_reconfig_v111.vhd b/libraries/technology/ip_stratixiv/ip_stratixiv_gxb_reconfig_v111.vhd
index 704435ed25..24d4842582 100644
--- a/libraries/technology/ip_stratixiv/ip_stratixiv_gxb_reconfig_v111.vhd
+++ b/libraries/technology/ip_stratixiv/ip_stratixiv_gxb_reconfig_v111.vhd
@@ -46,7 +46,7 @@ END ip_stratixiv_gxb_reconfig_v111;
 ARCHITECTURE str OF ip_stratixiv_gxb_reconfig_v111 IS
 BEGIN
 
-  gen_gxb_reconfig_4 : IF g_nof_gx = 4 AND g_soft = FALSE GENERATE
+  gen_gxb_reconfig_4 : IF g_nof_gx <= 4 AND g_soft = FALSE GENERATE
     u_gxb_reconfig_4 : ENTITY work.ip_stratixiv_gxb_reconfig_v111_4
     PORT MAP (
       reconfig_clk        => reconfig_clk,
@@ -56,7 +56,7 @@ BEGIN
     );
   END GENERATE;
         
-  gen_gxb_reconfig_soft_4 : IF g_nof_gx = 4 AND g_soft = TRUE GENERATE
+  gen_gxb_reconfig_soft_4 : IF g_nof_gx <= 4 AND g_soft = TRUE GENERATE
     u_gxb_reconfig_soft_4 : ENTITY work.ip_stratixiv_gxb_reconfig_v111_soft_4
     PORT MAP (
       reconfig_clk        => reconfig_clk,
-- 
GitLab