Skip to content
Snippets Groups Projects
Commit 85e983d6 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Use tech_xaui_mosi_addr_w(c_tech_stratixiv) to define c_xaui_mosi_addr_w=9.

parent 0353bd89
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,8 @@ USE technology_lib.technology_pkg.ALL; ...@@ -27,6 +27,8 @@ USE technology_lib.technology_pkg.ALL;
PACKAGE tech_xaui_component_pkg IS PACKAGE tech_xaui_component_pkg IS
FUNCTION tech_xaui_mosi_addr_w(technology : IN INTEGER) RETURN INTEGER;
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-- ip_stratixiv -- ip_stratixiv
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
...@@ -234,3 +236,15 @@ PACKAGE tech_xaui_component_pkg IS ...@@ -234,3 +236,15 @@ PACKAGE tech_xaui_component_pkg IS
END tech_xaui_component_pkg; END tech_xaui_component_pkg;
PACKAGE BODY tech_xaui_component_pkg IS
FUNCTION tech_xaui_mosi_addr_w(technology : IN INTEGER) RETURN INTEGER IS
BEGIN
CASE technology IS
WHEN c_tech_stratixiv => RETURN 9;
WHEN OTHERS => RETURN 9;
END CASE;
END;
END tech_xaui_component_pkg;
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2012 -- Copyright (C) 2014
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/> -- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/> -- JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands -- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
...@@ -23,11 +23,12 @@ ...@@ -23,11 +23,12 @@
-- Declare IP libraries to ensure default binding in simulation. The IP library clause is ignored by synthesis. -- Declare IP libraries to ensure default binding in simulation. The IP library clause is ignored by synthesis.
LIBRARY ip_stratixiv_transceiver_lib, ip_stratixiv_phy_xaui_lib; LIBRARY ip_stratixiv_transceiver_lib, ip_stratixiv_phy_xaui_lib;
LIBRARY IEEE, common_lib; LIBRARY IEEE, technology_lib, common_lib;
USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_1164.ALL;
USE common_lib.common_pkg.ALL; USE common_lib.common_pkg.ALL;
USE common_lib.common_mem_pkg.ALL; USE common_lib.common_mem_pkg.ALL;
USE common_lib.common_interface_layers_pkg.ALL; USE common_lib.common_interface_layers_pkg.ALL;
USE technology_lib.technology_pkg.ALL;
USE work.tech_xaui_component_pkg.ALL; USE work.tech_xaui_component_pkg.ALL;
ENTITY tech_xaui_stratixiv IS ENTITY tech_xaui_stratixiv IS
...@@ -65,7 +66,7 @@ ENTITY tech_xaui_stratixiv IS ...@@ -65,7 +66,7 @@ ENTITY tech_xaui_stratixiv IS
END tech_xaui_stratixiv; END tech_xaui_stratixiv;
ARCHITECTURE str OF tech_xaui_stratixiv IS ARCHITECTURE str OF tech_xaui_stratixiv IS
CONSTANT c_reconf_togxb_bus_w : NATURAL := 4; CONSTANT c_reconf_togxb_bus_w : NATURAL := 4;
CONSTANT c_reconf_fromgxb_bus_w : NATURAL := 17; CONSTANT c_reconf_fromgxb_bus_w : NATURAL := 17;
...@@ -73,7 +74,7 @@ ARCHITECTURE str OF tech_xaui_stratixiv IS ...@@ -73,7 +74,7 @@ ARCHITECTURE str OF tech_xaui_stratixiv IS
CONSTANT c_reconf_soft_nof_gx : NATURAL := 16; -- g_nof_xaui=4 soft XAUI, with 16 transceivers requires gxb_reconfig as for 16 transceivers CONSTANT c_reconf_soft_nof_gx : NATURAL := 16; -- g_nof_xaui=4 soft XAUI, with 16 transceivers requires gxb_reconfig as for 16 transceivers
CONSTANT c_reconf_soft_fromgxb_bus_w : NATURAL := 4*c_reconf_fromgxb_bus_w; CONSTANT c_reconf_soft_fromgxb_bus_w : NATURAL := 4*c_reconf_fromgxb_bus_w;
CONSTANT c_xaui_mosi_addr_w : NATURAL := 9; CONSTANT c_xaui_mosi_addr_w : NATURAL := tech_xaui_mosi_addr_w(c_tech_stratixiv);
SIGNAL reconfig_togxb : STD_LOGIC_VECTOR(c_reconf_togxb_bus_w-1 DOWNTO 0); SIGNAL reconfig_togxb : STD_LOGIC_VECTOR(c_reconf_togxb_bus_w-1 DOWNTO 0);
SIGNAL reconfig_fromgxb : STD_LOGIC_VECTOR(c_reconf_fromgxb_bus_w-1 DOWNTO 0); SIGNAL reconfig_fromgxb : STD_LOGIC_VECTOR(c_reconf_fromgxb_bus_w-1 DOWNTO 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment