]> jspc29.x-matter.uni-frankfurt.de Git - trb3sc.git/commitdiff
ECP3 works well now, link seems stable
authorMichael Boehmer <mboehmer@ph.tum.de>
Tue, 25 Oct 2022 12:26:50 +0000 (14:26 +0200)
committerMichael Boehmer <mboehmer@ph.tum.de>
Tue, 25 Oct 2022 12:26:50 +0000 (14:26 +0200)
gbe_hub/trb3sc_gbe_hub.prj
gbe_hub/trb3sc_gbe_hub.vhd

index 66bbec51bfe40964eae848dddeccb341dcd23b86..790bfda427b0d5a62e6a577fcf6499e29a880a09 100644 (file)
@@ -190,7 +190,7 @@ add_file -vhdl -lib work "../../trbnet/gbe_trb/base/remover.vhd"
 add_file -vhdl -lib work "../../trbnet/gbe_trb_ecp3/cores/fifo_inserter.vhd"
 add_file -vhdl -lib work "../../trbnet/gbe_trb_ecp3/cores/fifo_remover.vhd"
 
-add_file -vhdl -lib work "../../trbnet/gbe_trb/base/parser.vhd"
+#add_file -vhdl -lib work "../../trbnet/gbe_trb/base/parser.vhd"
 
 add_file -vhdl -lib work "../../trbnet/gbe_trb/base/rx_rb.vhd"
 add_file -vhdl -lib work "../../trbnet/gbe_trb/base/tx_fifo.vhd"
index 569741594c6187d803b256425378786b64a177f2..3ed1dc7f457a455bd7f6a5d5335d5d2e8655605b 100644 (file)
@@ -128,6 +128,7 @@ architecture trb3sc_arch of trb3sc_gbe_hub is
   signal tx_pll_lol_d_i             : std_logic;
   signal tx_clk_avail_i             : std_logic;
   signal tx_pcs_rst_i               : std_logic;
+  signal rst_qd_c_i                 : std_logic;
   signal link_tx_ready_i            : std_logic;
   signal status_raw                 : std_logic_vector(4 * 32 - 1 downto 0);
 
@@ -415,6 +416,7 @@ begin
   -- 8 : fifo_eof
   -- 7..0: data
   
+--  DBG(15 downto 0)  <= debug_pcsd(15 downto 0);
   DBG(31 downto 0)  <= debug_pcsd(31 downto 0);
 --  DBG(31 downto 16) <= debug_pcsc(111 downto 96);
   DBG(32)           <= '0';
@@ -669,6 +671,7 @@ begin
     SD_TXDIS_OUT(3)             => open,
     -- SerDes control          
     TX_PLOL_LOL_OUT             => tx_pll_lol_a_i,
+    RST_QD_C_IN                 => rst_qd_c_i,
     TX_PCS_RST_IN               => tx_pcs_rst_i,
     RX_LINK_READY_OUT           => open,
     TX_LINK_READY_IN            => link_tx_ready_i,
@@ -778,6 +781,7 @@ begin
     SD_TXDIS_OUT(3)             => HUB_TXDIS(8), --open,
     -- SerDes control          
     TX_PLOL_LOL_OUT             => tx_pll_lol_b_i,
+    RST_QD_C_IN                 => rst_qd_c_i,
     TX_PCS_RST_IN               => tx_pcs_rst_i,
     RX_LINK_READY_OUT           => open,
     TX_LINK_READY_IN            => link_tx_ready_i,
@@ -885,6 +889,7 @@ begin
     SD_TXDIS_OUT(3)             => HUB_TXDIS(2),
     -- SerDes control          
     TX_PLOL_LOL_OUT             => tx_pll_lol_c_i,
+    RST_QD_C_IN                 => rst_qd_c_i,
     TX_PCS_RST_IN               => tx_pcs_rst_i,
     RX_LINK_READY_OUT           => open,
     TX_LINK_READY_IN            => link_tx_ready_i,
@@ -965,6 +970,7 @@ begin
     MAC_RX_ERROR_OUT            => sniffer_error,
     -- SerDes control          
     TX_PLOL_LOL_OUT             => tx_pll_lol_d_i,
+    RST_QD_C_IN                 => rst_qd_c_i,
     TX_PCS_RST_IN               => tx_pcs_rst_i,
     RX_LINK_READY_OUT           => open,
     TX_LINK_READY_IN            => link_tx_ready_i,
@@ -1007,6 +1013,8 @@ begin
 
   global_reset_i <= not tx_clk_avail_i; -- keep everything in reset until we get some clock
   
+  rst_qd_c_i <= clear_i;
+  
 ---------------------------------------------------------------------------
 -- LED
 ---------------------------------------------------------------------------