]> jspc29.x-matter.uni-frankfurt.de Git - cri.git/commitdiff
small imrovements in dca_bridge and gub fix in simulation agwb handler
authorAdrian Weber <adrian.a.weber@exp2.physik.uni-giessen.de>
Wed, 3 Mar 2021 13:23:09 +0000 (14:23 +0100)
committerAdrian Weber <adrian.a.weber@exp2.physik.uni-giessen.de>
Wed, 3 Mar 2021 13:23:09 +0000 (14:23 +0100)
src/agwb_handler_dca_sim.vhd
src/cri_trbnet_dca_bridge.vhd

index 1059fb939d4e08caf6f882507dbbd219efec16eb..6aed9db55a19bcdf3fe390be09406572771a1398 100644 (file)
@@ -66,11 +66,13 @@ begin
       if WB_SLAVE_IN.we = '0' then
         WB_SLAVE_OUT.dat <= TX_DATA_IN;
         WB_SLAVE_OUT.ack <= '1';
+        TX_READ_ACK      <= '1';
       end if;    
     elsif WB_SLAVE_IN.adr = x"00000003" then  
       if WB_SLAVE_IN.we = '0' then
-        WB_SLAVE_OUT.dat <= TX_DATA_IN;
+        WB_SLAVE_OUT.dat <= TX_SIZE_DATA;
         WB_SLAVE_OUT.ack <= '1';
+        TX_SIZE_ACK      <= '1';
       end if;
     end if;
   end if;  
index 4a34427851e019b4bd05cdf32320931d0109b984..22cfa895fd5c4398819299230d729ed48e677581 100644 (file)
@@ -121,6 +121,8 @@ signal tx_data_size_dca  : std_logic_vector(15 downto 0);
 
 signal preload_word_tx_fifo : std_logic;
 
+signal tx_data_out          : std_logic_vector(31 downto 0);
+
 begin
 
 -- from wishbone:
@@ -141,7 +143,7 @@ begin
     RX_DATA_RDY        => rx_data_wr,
     
     TX_READ_ACK        => tx_rd_ack,
-    TX_DATA_IN         => tx_fifo_q,
+    TX_DATA_IN         => tx_data_out,
     
     TX_DATA_SIZE       => tx_data_size_dca,
     TX_READ_SIZE_ACK   => tx_rd_size_ack,
@@ -265,6 +267,9 @@ DCA_INIT_DATA_OUT       <= rx_fifo_q(15 downto 0);
 dca_init_dataready      <= '1' when (DCA_INIT_READ_IN = '1' and dissect_current_state = LOAD_TO_HUB) or
                                     (dissect_current_state = WAIT_FOR_HUB)
                                     else '0';
+                                    
+tx_data_out <= x"00000000" when (dissect_current_state = IDLE)
+               else tx_fifo_q;                                    
 
 PACKET_NUM_PROC : process(CLK)
 begin