]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Thu, 12 Mar 2009 19:58:57 +0000 (19:58 +0000)
committerhadeshyp <hadeshyp>
Thu, 12 Mar 2009 19:58:57 +0000 (19:58 +0000)
optical_link/flexi_PCS_channel_synch.vhd
optical_link/flexi_PCS_synch.vhd
optical_link/hub.vhd
optical_link/hub_tb.vhd
optical_link/simpleupcounter_16bit.vhd
optical_link/simpleupcounter_32bit.vhd
optical_link/simpleupcounter_8bit.vhd
optical_link/trb_hub_interface.vhd

index 60312dd9a05e517d147c8deef448ea490bfcdac3..075520e5081fd30a5b0d450b8973690c26c4923d 100644 (file)
@@ -1,8 +1,5 @@
 library IEEE;
 use IEEE.STD_LOGIC_UNSIGNED.ALL;
-library UNISIM;
-use UNISIM.VCOMPONENTS.all;
-library ieee;
 library work;
 use ieee.std_logic_1164.all;
 use ieee.numeric_std.all;
index a0ac21211aee47a899103a8e2ece11b8651e217e..cc293785d8d459f2e4d434f20faf2eb8675ab6e2 100644 (file)
@@ -1,8 +1,5 @@
 library IEEE;
 use IEEE.STD_LOGIC_UNSIGNED.ALL;
-library UNISIM;
-use UNISIM.VCOMPONENTS.all;
-library ieee;
 library work;
 use ieee.std_logic_1164.all;
 use ieee.numeric_std.all;
index d10832cf4804c3b30c9fef02832c76fda27b963d..7287a5f2d2480b16a357d81efa360b9db41e69a7 100644 (file)
@@ -1,11 +1,9 @@
 library IEEE;
 use IEEE.STD_LOGIC_UNSIGNED.ALL;
-library UNISIM;
-use UNISIM.VCOMPONENTS.all;
-library ieee;
-library work;
 use ieee.std_logic_1164.all;
 use ieee.numeric_std.all;
+
+library work;
 use work.all;
 use work.trb_net_std.all;
 use work.trb_net16_hub_func.all;
index 1b35d87644e9acb4c3202063a8f31866946bd258..3933fdd021ad97bcc895482b1341d7cd4add11bd 100644 (file)
@@ -1,7 +1,6 @@
 library IEEE;
 use IEEE.STD_LOGIC_UNSIGNED.ALL;
-library UNISIM;
-use UNISIM.VCOMPONENTS.all;
+
 library ieee;
 library work;
 use ieee.std_logic_1164.all;
@@ -33,7 +32,7 @@ entity hub_tb is
 end hub_tb;
 
 architecture hub_tb of hub_tb is
-  
+
 signal LVDS_CLK_200P_i : std_logic;
 signal LVDS_CLK_200N_i : std_logic;
 signal SERDES_200N_i   : std_logic;
@@ -81,7 +80,7 @@ component hub
     OPT_DATA_OUT : out std_logic_vector(16*HOW_MANY_CHANNELS-1 downto 0);
     OPT_DATA_VALID_IN : in std_logic_vector(HOW_MANY_CHANNELS-1 downto 0);
     OPT_DATA_VALID_OUT : out std_logic_vector(HOW_MANY_CHANNELS-1 downto 0)
+
 
     );
 end component;
@@ -105,12 +104,12 @@ begin  -- of hub_tb
         SFP_INP_P     => SFP_INP_P_i,
         SFP_OUT_N     => SFP_OUT_N_i,
         SFP_OUT_P     => SFP_OUT_P_i
-        FS_PE_11  =>  
-        OPT_DATA_IN => 
-        OPT_DATA_OUT => 
-        OPT_DATA_VALID_IN => 
-        OPT_DATA_VALID_OUT => 
-  
+        FS_PE_11  =>
+        OPT_DATA_IN =>
+        OPT_DATA_OUT =>
+        OPT_DATA_VALID_IN =>
+        OPT_DATA_VALID_OUT =>
+
        clock_gclk : process
          begin
            SERDES_200P_i <= '0';
index 4dd2e34d0c16966d4f2c4ff43984687de7199f6d..16e14af783039f7536bc7c16cc4cfa64793dc652 100644 (file)
@@ -3,10 +3,7 @@ use IEEE.STD_LOGIC_1164.ALL;
 use IEEE.STD_LOGIC_ARITH.ALL;
 use IEEE.STD_LOGIC_UNSIGNED.ALL;
 
---  Uncomment the following lines to use the declarations that are
---  provided for instantiating Xilinx primitive components.
---library UNISIM;
---use UNISIM.VComponents.all;
+
 
 entity simpleupcounter_16bit is
     Port ( QOUT : out std_logic_vector(15 downto 0);
index 4bc7f930ee110c540885744aa1bda17a9c22aa33..7bf16a9c02e3ca9956ff321ccfc72be910463567 100644 (file)
@@ -3,10 +3,7 @@ use IEEE.STD_LOGIC_1164.ALL;
 use IEEE.STD_LOGIC_ARITH.ALL;
 use IEEE.STD_LOGIC_UNSIGNED.ALL;
 
---  Uncomment the following lines to use the declarations that are
---  provided for instantiating Xilinx primitive components.
---library UNISIM;
---use UNISIM.VComponents.all;
+
 
 entity simpleupcounter_32bit is
     Port ( QOUT : out std_logic_vector(31 downto 0);
index aa07751dcbedf0ba12a140cd2ea2888a4a5bedfb..e5fa035a91c4d8e3d1609337dfa47b6e08f61a58 100644 (file)
@@ -3,10 +3,7 @@ use IEEE.STD_LOGIC_1164.ALL;
 use IEEE.STD_LOGIC_ARITH.ALL;
 use IEEE.STD_LOGIC_UNSIGNED.ALL;
 
---  Uncomment the following lines to use the declarations that are
---  provided for instantiating Xilinx primitive components.
---library UNISIM;
---use UNISIM.VComponents.all;
+
 
 entity simpleupcounter_8bit is
     Port ( QOUT : out std_logic_vector(7 downto 0);
index 7f1d1b7679a2323e5610f8cb29e68a5508d57232..b340ad5677720d806ca2c67bbfa024c394c1480b 100644 (file)
@@ -5,11 +5,7 @@ use IEEE.STD_LOGIC_ARITH.ALL;
 use IEEE.STD_LOGIC_UNSIGNED.ALL;
 use IEEE.NUMERIC_STD.all;
 --use work.support.all;
-library UNISIM;
-use UNISIM.VCOMPONENTS.all;
 
-library UNISIM;
-use UNISIM.VComponents.all;
 
 entity trb_hub_interface is
   port (
@@ -19,7 +15,7 @@ entity trb_hub_interface is
     INTERNAL_DATA_IN   : in    std_logic_vector(7 downto 0);
     INTERNAL_DATA_OUT  : out   std_logic_vector(7 downto 0);
     INTERNAL_ADDRESS   : in    std_logic_vector(15 downto 0);
-    INTERNAL_MODE      : in    std_logic;  
+    INTERNAL_MODE      : in    std_logic;
     VALID_DATA_SENT    : out   std_logic;
     HUB_REGISTER_00    : in    std_logic_vector(7 downto 0);
     HUB_REGISTER_01    : in    std_logic_vector(7 downto 0);
@@ -112,7 +108,7 @@ begin
             when x"0004" => saved_data_out <= HUB_REGISTER_04;
             when x"0005" => saved_data_out <= HUB_REGISTER_05;
             when x"0006" => saved_data_out <= HUB_REGISTER_06;
-            when x"0007" => saved_data_out <= HUB_REGISTER_07;                            
+            when x"0007" => saved_data_out <= HUB_REGISTER_07;
             when x"0008" => saved_data_out <= HUB_REGISTER_08;
             when x"0009" => saved_data_out <= HUB_REGISTER_09;
             when x"000a" => saved_data_out <= hub_register_0a_i;
@@ -127,8 +123,8 @@ begin
             when x"0013" => saved_data_out <= HUB_REGISTER_13;
             when x"0014" => saved_data_out <= HUB_REGISTER_14;
             when x"0015" => saved_data_out <= HUB_REGISTER_15;
-            when x"0016" => saved_data_out <= HUB_REGISTER_16;                            
-                           
+            when x"0016" => saved_data_out <= HUB_REGISTER_16;
+
             when others  => saved_data_out <= x"ff";
           end case;
         elsif saved_mod = '0' then
@@ -138,7 +134,7 @@ begin
             when x"000c" => hub_register_0c_i <= saved_data_in;
             when x"000d" => hub_register_0d_i <= saved_data_in;
             when x"000e" => hub_register_0e_i <= saved_data_in;
-            when x"000f" => hub_register_0f_i <= saved_data_in;                            
+            when x"000f" => hub_register_0f_i <= saved_data_in;
             when others      => null;
           end case;
         end if;
@@ -154,17 +150,17 @@ begin
   INTERNAL_DATA_OUT <= saved_data_out;
   data_ready <=  '1';
   VALID_CLOCKED  : process (CLK, RESET)
-  begin 
-    if rising_edge(CLK)  then 
-      if RESET = '1' then 
+  begin
+    if rising_edge(CLK)  then
+      if RESET = '1' then
         VALID_current <= IDLE;
-      else 
+      else
         VALID_current <= VALID_next;
       end if;
     end if;
   end process VALID_CLOCKED;
     SEND_VALID_FSM: process (VALID_current,data_ready,strobe_pulse)
-    begin 
+    begin
       case (VALID_current) is
         when IDLE =>
           VALID_DATA_SENT <= '0';
@@ -192,7 +188,7 @@ begin
         when VALID_5 =>
           VALID_DATA_SENT <= '1';
           VALID_next <= IDLE;
-      end case;   
+      end case;
     end process SEND_VALID_FSM;
-  
+
 end trb_hub_interface;