Index: /branches/v5/modules/dspin_local_ring_fast_c/caba/source/include/dspin_half_gateway_initiator_fast_c.h
===================================================================
--- /branches/v5/modules/dspin_local_ring_fast_c/caba/source/include/dspin_half_gateway_initiator_fast_c.h	(revision 356)
+++ /branches/v5/modules/dspin_local_ring_fast_c/caba/source/include/dspin_half_gateway_initiator_fast_c.h	(revision 357)
@@ -34,5 +34,5 @@
 
 #define  BRDCST_TGT_MASK  0xFFFFFFFFE1ULL
-//#define  HI_DEBUG
+#define  HI_DEBUG
 
 namespace soclib { namespace caba {
@@ -172,5 +172,5 @@
 		case CMD_IDLE:  
                 { 
-
+			bool eop = ( (int) ((m_cmd_fifo.read() >> (ring_cmd_data_size - 1) ) & 0x1) == 1);
                         // tga : target gate allocated
 			if(m_cmd_fifo.rok())
@@ -199,7 +199,17 @@
 					}
 				}
-				else	if(tga || p_ring_in.cmd_grant)
+				else    if (tga)
 					{
-						cmd_fifo_get = tga && p_ring_in.cmd_r;
+
+						cmd_fifo_get   = p_ring_in.cmd_r;
+						if (eop)
+				        		r_ring_cmd_fsm = CMD_IDLE;
+						else
+							r_ring_cmd_fsm = SENDING;
+						break;
+					}
+
+					if(p_ring_in.cmd_grant)
+					{
 				        	r_ring_cmd_fsm = SENDING;
 					}
