]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
added correct reset for hades hub & other fifo in gbe
authorJan Michel <j.michel@gsi.de>
Fri, 24 Jan 2014 16:23:27 +0000 (17:23 +0100)
committerJan Michel <j.michel@gsi.de>
Fri, 24 Jan 2014 16:23:35 +0000 (17:23 +0100)
central_hub2/trb3_central.vhd
trb3_gbe/trb3_central.prj

index 4311744e024cc012130c4219ca7735f336673ca7..c76a447a24d342e7197ceace517ae4ba2f0884ac 100644 (file)
@@ -17,7 +17,8 @@ use work.version.all;
 
 entity trb3_central is
   generic(
-    FULL_UPLINK : integer := c_YES
+    FULL_UPLINK : integer := c_YES;
+    IS_HADES_HUB : integer := c_YES
     );
   port(
     --Clocks
@@ -142,6 +143,7 @@ architecture trb3_central_arch of trb3_central is
   attribute syn_preserve : boolean;
   
   constant NUM_PORTS : integer := 5 + FULL_UPLINK*3;
+  constant RESET_SFP_IN : integer := 4 + IS_HADES_HUB;
   
   signal clk_100_i   : std_logic; --clock for main logic, 100 MHz, via Clock Manager and internal PLL
   signal clk_200_i   : std_logic; --clock for logic at 200 MHz, via Clock Manager and bypassed PLL
@@ -219,7 +221,7 @@ THE_RESET_HANDLER : trb_net_reset_handler
     SYSCLK_IN       => clk_100_i,       -- PLL/DLL remastered clock
     PLL_LOCKED_IN   => pll_lock,        -- master PLL lock signal (async)
     RESET_IN        => '0',             -- general reset signal (SYSCLK)
-    TRB_RESET_IN    => med_stat_op(4*16+13), -- TRBnet reset signal (SYSCLK)
+    TRB_RESET_IN    => med_stat_op(RESET_SFP_IN*16+13), -- TRBnet reset signal (SYSCLK)
     CLEAR_OUT       => clear_i,         -- async reset out, USE WITH CARE!
     RESET_OUT       => reset_i,         -- synchronous reset out (SYSCLK)
     DEBUG_OUT       => open
index d06e52e64c8b4cfc9c50220b37c852daf7c18845..e40bf6b3f27b93a7b0bd3c8ade035abbca28ba75 100644 (file)
@@ -144,6 +144,7 @@ add_file -vhdl -lib work "../../trbnet/gbe2_ecp3/trb_net16_gbe_response_construc
 add_file -vhdl -lib work "../../trbnet/gbe2_ecp3/ipcores_ecp3/fifo_4kx18x9.vhd"
 add_file -vhdl -lib work "../../trbnet/gbe2_ecp3/ipcores_ecp3/fifo_4kx8_ecp3.vhd"
 add_file -vhdl -lib work "../../trbnet/gbe2_ecp3/ipcores_ecp3/fifo_512x32x8.vhd"
+add_file -vhdl -lib work "../../trbnet/gbe2_ecp3/ipcores_ecp3/fifo_32kx9_flags.vhd"
 add_file -vhdl -lib work "../../trbnet/gbe2_ecp3/trb_net16_gbe_ipu_interface.vhd"
 add_file -vhdl -lib work "../../trbnet/gbe2_ecp3/trb_net16_gbe_event_constr.vhd"