]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Mon, 9 Feb 2009 18:12:40 +0000 (18:12 +0000)
committerhadeshyp <hadeshyp>
Mon, 9 Feb 2009 18:12:40 +0000 (18:12 +0000)
testbenches/testbench_all_channels_p2p.vhd
trb_net16_addresses.vhd
trb_net16_med_ecp_sfp.vhd
trb_net16_regIO.vhd

index 55a113dd8d8e63c945fee68cf3192dcd2e6f3416..2456d9a9e6c80d125f78b330e42e3c6a59ab0d34 100644 (file)
@@ -341,7 +341,7 @@ begin
       APL_READ_IN         => APL_READ_OUT(0),
       APL_SHORT_TRANSFER_OUT => APL_SHORT_TRANSFER_IN(0),
       APL_DTYPE_OUT       => APL_DTYPE_IN(3 downto 0),
-      APL_SEND_OUT        => APL_SEND_IN(0),
+      APL_SEND_OUT        => open,--APL_SEND_IN(0),
       APL_DATA_IN         => APL_DATA_OUT(15 downto 0),
       APL_PACKET_NUM_IN   => APL_PACKET_NUM_OUT(2 downto 0),
       APL_TYP_IN          => APL_TYP_OUT(2 downto 0),
index 01961e87d1ffacab4ae6b886aaaf73112b7fdacc..8874b7523e253c1d01cb1a07e53f9021c1194e12 100644 (file)
@@ -85,6 +85,7 @@ type sending_state_t is (sending_idle, send_uid_1, send_uid_2, send_ack_address)
 signal sending_state : sending_state_t;
 signal sending_state_bits : std_logic_vector(1 downto 0);
 signal buf_ADDRESS_OUT : std_logic_vector(15 downto 0);
+signal delayed_buf_API_SEND_OUT : std_logic;
 
 begin
 
@@ -240,9 +241,11 @@ begin
         if RESET = '1' then
           state <= c_H0;
           last_ram_read_addr2 <= "0000";
+          delayed_buf_API_SEND_OUT <= '0';
         elsif CLK_EN = '1' then
           state <= next_state;
           last_ram_read_addr2 <= ram_read_addr2;
+          delayed_buf_API_SEND_OUT <= buf_API_SEND_OUT;
         end if;
       end if;
     end process;
@@ -278,7 +281,7 @@ begin
       );
 
 API_READ_OUT <= buf_API_READ_OUT;
-API_SEND_OUT <= buf_API_SEND_OUT;
+API_SEND_OUT <= delayed_buf_API_SEND_OUT;
 API_PACKET_NUM_OUT <= buf_API_PACKET_NUM_OUT;
 ADDRESS_OUT <= buf_ADDRESS_OUT;
 
index 763f8940c672a3ce0175c49eaf3d4921a4e67f44..02daf45cf7e7b7ff06bb2f1953b6fd00215a101e 100644 (file)
@@ -624,7 +624,7 @@ fifo_rx_rd_en <= '1';
 THE_BYTE_SWAP_PROC: process( ff_rxhalfclk )
 begin
   if( rising_edge(ff_rxhalfclk) ) then
-    last_rx <= rx_k(1) & rx_d(15 downto 8);
+    last_rx <= rx_k(1) & rx_data(15 downto 8);
     if( swap_bytes = '0' ) then
       fifo_rx_din   <= rx_k(1) & rx_k(0) & rx_data(15 downto 8) & rx_data(7 downto 0);
       fifo_rx_wr_en <= not rx_k(0) and rx_allow and link_ok(0);
index af294598ea938dcedff8e026777ed8eafbbb51e5..c10dde612b4e9027f0d6d85aca0ee724c784763d 100644 (file)
@@ -258,8 +258,13 @@ begin
       STAT_DEBUG        => buf_STAT_ADDR_DEBUG
       );
 
-  STAT_ADDR_DEBUG(11 downto 0) <= buf_STAT_ADDR_DEBUG(11 downto 0);
-  STAT_ADDR_DEBUG(12) <= buf_API_DATAREADY_OUT;
+  STAT_ADDR_DEBUG(2 downto 0)  <= state_bits(2 downto 0);
+  STAT_ADDR_DEBUG(3)  <= ADR_DONT_UNDERSTAND;
+  STAT_ADDR_DEBUG(4)  <= API_DATAREADY_IN;
+  STAT_ADDR_DEBUG(5)  <= buf_API_SHORT_TRANSFER_OUT;
+  STAT_ADDR_DEBUG(6)  <= combined_API_SEND_OUT;
+  STAT_ADDR_DEBUG(11 downto 7) <= buf_STAT_ADDR_DEBUG(11 downto 7);
+  STAT_ADDR_DEBUG(12) <= combined_API_DATAREADY_OUT;
   STAT_ADDR_DEBUG(13) <= ADR_REJECTED;
   STAT_ADDR_DEBUG(14) <= ADR_SEND_OUT;
   STAT_ADDR_DEBUG(15) <= ADR_DATAREADY_OUT;
@@ -357,8 +362,8 @@ begin
           end if;
 
         when ADDRESS_ACK =>
-          ADR_READ_IN <= API_READ_IN;
           ADR_DATAREADY_IN <= API_DATAREADY_IN;
+          ADR_READ_IN <= API_READ_IN;
           if ADR_SEND_OUT = '0' then
             next_state <= SEND_REPLY_DATA_finish;
           end if;