From bd3f65c97a6acc58b555650f3747dc7823c59cbb Mon Sep 17 00:00:00 2001
From: David Brouwer <dbrouwer@astron.nl>
Date: Mon, 25 Sep 2023 13:44:02 +0200
Subject: [PATCH] Add new technology identifier for Intel Agilex 7 and
 increment c_tech_nof_technologies by 1 within technology_pkg.vhd and add
 default technology selection for iwave by creating technology_select_pkg.vhd

---
 libraries/technology/technology_pkg.vhd       | 24 +++++++-------
 .../technology_select_pkg_iwave.vhd           | 33 +++++++++++++++++++
 2 files changed, 45 insertions(+), 12 deletions(-)
 create mode 100644 libraries/technology/technology_select_pkg_iwave.vhd

diff --git a/libraries/technology/technology_pkg.vhd b/libraries/technology/technology_pkg.vhd
index 5573eda846..dafa2104b2 100644
--- a/libraries/technology/technology_pkg.vhd
+++ b/libraries/technology/technology_pkg.vhd
@@ -1,21 +1,20 @@
 -------------------------------------------------------------------------------
 --
--- Copyright (C) 2014
+-- Copyright (C) 2014-2023
 -- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
 -- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
 --
--- This program is free software: you can redistribute it and/or modify
--- it under the terms of the GNU General Public License as published by
--- the Free Software Foundation, either version 3 of the License, or
--- (at your option) any later version.
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
 --
--- This program is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--- GNU General Public License for more details.
+--     http://www.apache.org/licenses/LICENSE-2.0
 --
--- You should have received a copy of the GNU General Public License
--- along with this program.  If not, see <http://www.gnu.org/licenses/>.
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
 --
 -------------------------------------------------------------------------------
 
@@ -49,7 +48,8 @@ package technology_pkg is
   constant c_tech_arria10_e1sg       : integer := 7;  -- e.g. used on UniBoard2b third run (5 ARTS boards version "01" feb 2017)
   constant c_tech_arria10_e2sg       : integer := 8;  -- e.g. used on UniBoard2c (2 LOFAR2.0 SDP boards version "11" f 2021)
   constant c_tech_ultrascale         : integer := 9;  -- e.g. used on Alveo FPGA platforms
-  constant c_tech_nof_technologies   : integer := 10;
+  constant c_tech_agi027_xxxx        : integer := 10; -- e.g. used on Intel Agilex 7 for ALMA (porting pfb from arrial10_e2sg version "00" sept 2023)
+  constant c_tech_nof_technologies   : integer := 11;
 
   -- Functions
   function tech_sel_a_b(sel : boolean; a, b : string)  return string;
diff --git a/libraries/technology/technology_select_pkg_iwave.vhd b/libraries/technology/technology_select_pkg_iwave.vhd
new file mode 100644
index 0000000000..7c73510bfb
--- /dev/null
+++ b/libraries/technology/technology_select_pkg_iwave.vhd
@@ -0,0 +1,33 @@
+-------------------------------------------------------------------------------
+--
+-- Copyright (C) 2023
+-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
+-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+--     http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-------------------------------------------------------------------------------
+-- Author: D.F. Brouwer
+-- Purpose: 
+--   Define default technology selection value for g_technology
+-- Description:
+--   In case g_technology is not overruled by the application design then the
+--   g_technology defaults to c_tech_select_default.
+
+library IEEE;
+use IEEE.std_logic_1164.all;
+use work.technology_pkg.all;
+
+package technology_select_pkg is
+  constant c_tech_select_default : integer := c_tech_agi027_xxxx;
+end technology_select_pkg;
-- 
GitLab