]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
small change to api, Jan
authorhadeshyp <hadeshyp>
Fri, 7 Sep 2007 14:19:18 +0000 (14:19 +0000)
committerhadeshyp <hadeshyp>
Fri, 7 Sep 2007 14:19:18 +0000 (14:19 +0000)
trb_net_base_api.vhd
trb_net_iobuf.vhd

index 150b98323ec6343527952416347e165eebf5af00..a7e3e11ca2f90834520b13296e4ab464fcc4a1d5 100644 (file)
@@ -440,6 +440,7 @@ begin
           if APL_SHORT_TRANSFER_IN = '1' and APL_WRITE_IN = '0' and fifo_to_int_empty = '1' then
             next_state <=  SEND_SHORT;  -- no next data word, waiting for falling edge of APL_SEND_IN
             next_INT_MASTER_DATAREADY_OUT <= '0';
+            update_registered_trailer <= '1'; -- moved from SEND_SHORT
           else  -- normal transfer, prepare the header
             next_state <= SEND_HEADER;
             out_select <= HDR;
@@ -453,7 +454,6 @@ begin
     -------------------------------------------------------------------------------
       elsif current_state = SEND_SHORT then 
         next_state <=  SEND_SHORT;
-        update_registered_trailer <= '1';
         if APL_SEND_IN = '0' then -- terminate the transfer
           next_state <= SEND_TRAILER;
           next_INT_MASTER_DATAREADY_OUT <= '1';
index e42132b6c97b87852678c33e6e7c272d6240b9c8..bf2f95cabba0959f41520c5db73ecbec8722879a 100644 (file)
@@ -114,8 +114,8 @@ architecture trb_net_iobuf_arch of trb_net_iobuf is
 
   port(
     --  Misc
-    CLK    : in std_logic;             
-    RESET  : in std_logic;     
+    CLK    : in std_logic;
+    RESET  : in std_logic;
     CLK_EN : in std_logic;
     --  Media direction port
     MED_DATAREADY_IN:  in  STD_LOGIC; -- Data word is offered by the Media (the IOBUF MUST read)