]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Tue, 22 Jan 2008 14:42:33 +0000 (14:42 +0000)
committerhadeshyp <hadeshyp>
Tue, 22 Jan 2008 14:42:33 +0000 (14:42 +0000)
trb_net16_endpoint_0_trg_1_api.vhd
trb_net16_ibuf.vhd
trb_net_std.vhd

index e592841b44c9523ca145c965638101b98668a918..6b37c902bb545697a783b2c335c937888e4273df 100644 (file)
@@ -419,8 +419,8 @@ begin
         API_TYPE          => API_TYPE,
         FIFO_TO_INT_DEPTH => FIFO_TO_INT_DEPTH,
         FIFO_TO_APL_DEPTH => FIFO_TO_APL_DEPTH,
-        USE_REPLY_CHANNEL => c_USE_REPLY_CHANNEL(DAT_CHANNEL),
-        FORCE_REPLY       => c_FORCE_REPLY(DAT_CHANNEL),
+        USE_REPLY_CHANNEL => cfg_USE_REPLY_CHANNEL(DAT_CHANNEL),
+        FORCE_REPLY       => cfg_FORCE_REPLY(DAT_CHANNEL),
         SBUF_VERSION      => SBUF_VERSION
         )
       port map (
@@ -478,8 +478,8 @@ begin
         API_TYPE          => API_TYPE,
         FIFO_TO_INT_DEPTH => FIFO_TO_INT_DEPTH,
         FIFO_TO_APL_DEPTH => FIFO_TO_APL_DEPTH,
-        USE_REPLY_CHANNEL => c_USE_REPLY_CHANNEL(DAT_CHANNEL),
-        FORCE_REPLY       => c_FORCE_REPLY(DAT_CHANNEL),
+        USE_REPLY_CHANNEL => cfg_USE_REPLY_CHANNEL(DAT_CHANNEL),
+        FORCE_REPLY       => cfg_FORCE_REPLY(DAT_CHANNEL),
         SBUF_VERSION      => SBUF_VERSION
         )
       port map (
@@ -556,8 +556,8 @@ IOBUF: trb_net16_iobuf
     REPLY_DEPTH         => REPLY_DEPTH,
     IBUF_SECURE_MODE    => IBUF_SECURE_MODE,
     SBUF_VERSION        => SBUF_VERSION,
-    USE_ACKNOWLEDGE     => c_USE_ACKNOWLEDGE(DAT_CHANNEL),
-    USE_REPLY_CHANNEL   => c_USE_REPLY_CHANNEL(DAT_CHANNEL),
+    USE_ACKNOWLEDGE     => cfg_USE_ACKNOWLEDGE(DAT_CHANNEL),
+    USE_REPLY_CHANNEL   => cfg_USE_REPLY_CHANNEL(DAT_CHANNEL),
     INIT_CAN_SEND_DATA  => INIT_CAN_SEND_DATA,
     REPLY_CAN_SEND_DATA => REPLY_CAN_SEND_DATA
     )
index 71e867c3432302491a54cfa66d0fbb111cb416e0..7278ccb5f9598ad57e64f1fc5efa7f2923c526bf 100644 (file)
@@ -192,14 +192,11 @@ begin
           if MED_PACKET_NUM_IN = "10" then
             next_rec_buffer_size_out <= MED_DATA_IN(3 downto 0);
           end if;
-        else
-          if fifo_full = '0' then
-            fifo_write <=  '1';
-          else
+        elsif not (current_packet_type = TYPE_ILLEGAL) then
+          fifo_write <=  '1';
+          if fifo_full = '1' then
             next_error_state <= GOT_OVERFLOW_ERROR;
           end if;
---         elsif is_locked = '1' then
---           next_error_state <= GOT_LOCKED_ERROR;
         end if;
       end if;
       if fifo_full = '0' then
@@ -289,7 +286,7 @@ begin
     end process;
 
 
---BUGBUG HDR retransmit needed
+--BUGBUG HDR retransmit needed -> not here but in HUB
 
   release_locked <= CTRL_LOCKED(0);
   STAT_LOCKED(0) <= is_locked;
index 514b5318a4dcd9b818050092b21ad5edbce80351..0a6dc21ea5e7ec4b4ed0721a2811d1c2d5d2b135 100644 (file)
@@ -58,7 +58,7 @@ package trb_net_std is
   constant std_IBUF_SECURE_MODE : integer := c_SECURE_MODE;
   constant std_USE_ACKNOWLEDGE  : integer := c_YES;
   constant std_USE_REPLY_CHANNEL: integer := c_YES;
-  constant std_FIFO_DEPTH       : integer := c_SMALL;
+  constant std_FIFO_DEPTH       : integer := c_FIFO_SMALL;
   constant std_DATA_COUNT_WIDTH : integer := 5; --max 7
   constant std_TERM_SECURE_MODE : integer := c_NO;
   constant std_MUX_SECURE_MODE  : integer := c_NO;