]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Wed, 16 Jan 2008 14:56:03 +0000 (14:56 +0000)
committerhadeshyp <hadeshyp>
Wed, 16 Jan 2008 14:56:03 +0000 (14:56 +0000)
optical_link/hub.vhd

index bc356dd6ac2a4fda0c11ca258f985a6b06914499..fc8d710ad847584355fa0b94362b52d6e1c5d209 100644 (file)
@@ -12,6 +12,9 @@ use work.trb_net16_hub_func.all;
 -- library sc;
 -- use sc.components.all;
 entity hub is
+  generic (
+   HOW_MANY_CHANNELS : integer range 2 to c_MAX_MII_PER_HUB := 2;
+   );
   port (
     LVDS_CLK_200P          : in std_logic;
 --    LVDS_CLK_200N          : in std_logic;
@@ -318,7 +321,6 @@ architecture hub of hub is
   -----------------------------------------------------------------------------
   -- FLEXI_PCS
   -----------------------------------------------------------------------------
-  constant HOW_MANY_CHANNELS        : integer := 2;
   signal   ref_pclk                 : std_logic_vector((HOW_MANY_CHANNELS+3)/4 -1 downto 0);
   signal   rxd_i                    : std_logic_vector(((HOW_MANY_CHANNELS+3)/4)*64-1 downto 0);
   signal   rxd_synch_i              : std_logic_vector(((HOW_MANY_CHANNELS+3)/4)*64-1 downto 0);