Index: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/SelfTest/src/test.cpp
===================================================================
--- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/SelfTest/src/test.cpp	(revision 75)
+++ trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/SelfTest/src/test.cpp	(revision 78)
@@ -15,10 +15,4 @@
   cout << "<" << name << "> : Simulation SystemC" << endl;
 
-  if (param._nb_update < 1)
-    {
-      cerr << "<" << name << "> : To test, need a less one update's port" << endl;
-      exit (EXIT_FAILURE);
-    }
-  
   try 
     {
@@ -45,5 +39,5 @@
 								  param_stat,
 #endif
-								  param);
+								  &param);
   
 #ifdef SYSTEMC
@@ -57,10 +51,7 @@
   sc_signal<Tcontrol_t>                    ACCESS_ACK     [param._nb_access];
   sc_signal<Taddress_t>                    ACCESS_ADDRESS [param._nb_access];
+  sc_signal<Tcontrol_t>                    ACCESS_HIT     [param._nb_access];
   sc_signal<Tentity_t >                    ACCESS_ENTITY  [param._nb_access];
-  
-  sc_signal<Tcontrol_t>                    UPDATE_VAL     [param._nb_update];
-  sc_signal<Tcontrol_t>                    UPDATE_ACK     [param._nb_update];
-  sc_signal<Taddress_t>                    UPDATE_ADDRESS [param._nb_update];
-  sc_signal<Tentity_t >                    UPDATE_ENTITY  [param._nb_update];
+  sc_signal<Tentity_t >                    ACCESS_VICTIM  [param._nb_access];
   
   /********************************************************
@@ -77,17 +68,11 @@
 	(*(_Victim_Pseudo_LRU-> in_ACCESS_VAL     [i])) (ACCESS_VAL     [i]);
 	(*(_Victim_Pseudo_LRU->out_ACCESS_ACK     [i])) (ACCESS_ACK     [i]);
-	if (param._size_table>1)
+	if (param._size_address>1)
 	(*(_Victim_Pseudo_LRU-> in_ACCESS_ADDRESS [i])) (ACCESS_ADDRESS [i]);
-	(*(_Victim_Pseudo_LRU->out_ACCESS_ENTITY  [i])) (ACCESS_ENTITY  [i]);
+	(*(_Victim_Pseudo_LRU-> in_ACCESS_HIT     [i])) (ACCESS_HIT     [i]);
+	(*(_Victim_Pseudo_LRU-> in_ACCESS_ENTITY  [i])) (ACCESS_ENTITY  [i]);
+	(*(_Victim_Pseudo_LRU->out_ACCESS_VICTIM  [i])) (ACCESS_VICTIM  [i]);
       }
 
-    for (uint32_t i=0; i<param._nb_update; i++)
-      {
-	(*(_Victim_Pseudo_LRU-> in_UPDATE_VAL     [i])) (UPDATE_VAL     [i]);
-	(*(_Victim_Pseudo_LRU->out_UPDATE_ACK     [i])) (UPDATE_ACK     [i]);
-	if (param._size_table>1)
-	(*(_Victim_Pseudo_LRU-> in_UPDATE_ADDRESS [i])) (UPDATE_ADDRESS [i]);
-	(*(_Victim_Pseudo_LRU-> in_UPDATE_ENTITY  [i])) (UPDATE_ENTITY  [i]);
-      }
   /********************************************************
    * Simulation - Begin
@@ -105,21 +90,18 @@
       ACCESS_VAL[i].write(0);
     }
-  for (uint32_t i=0; i<param._nb_update; i++)
-    {
-      UPDATE_VAL[i].write(0);
-    }
 
   sc_start(5);
   cout << "-----[ Test Update ]------------------------------" << endl;
-  for (uint32_t i=0; i<param._nb_update; i++)
-    {
-      UPDATE_VAL[i].write(1);
-    }
-  
-  for (uint32_t j=0; j<param._size_table; j+=param._nb_update)
+  for (uint32_t i=0; i<param._nb_access; i++)
+    {
+      ACCESS_VAL[i].write(1);
+      ACCESS_HIT[i].write(1);
+    }
+  
+  for (uint32_t j=0; j<param._size_table; j+=param._nb_access)
     for (uint32_t k=0; k<param._nb_entity; k++)
       {
 	cout << "time : " << static_cast<uint32_t>(sc_simulation_time()) << endl;
-	for (uint32_t i=0; i<param._nb_update; i++)
+	for (uint32_t i=0; i<param._nb_access; i++)
 	  {
 	    
@@ -131,11 +113,11 @@
 	      addr = 0;
 	    Tentity_t  entity  = (k+1)%param._nb_entity;
-	    UPDATE_VAL     [i].write(val );
-	    if (param._size_table>1)
-	      UPDATE_ADDRESS [i].write(addr);
-	    UPDATE_ENTITY  [i].write(entity);
+	    ACCESS_VAL     [i].write(val );
+	    if (param._size_address>1)
+	      ACCESS_ADDRESS [i].write(addr);
+	    ACCESS_ENTITY  [i].write(entity);
 	    
 	    sc_start(0);
-	    cout << "\t[" << i << "] " << val << " - " << UPDATE_ACK[i].read() << " addr : " << addr << " -> " << entity << endl;
+	    cout << "\t[" << i << "] " << val << " - " << ACCESS_ACK[i].read() << " addr : " << addr << " -> " << entity << endl;
 	  }
 	sc_start(1);
@@ -143,7 +125,7 @@
 		    
 
-  for (uint32_t i=0; i<param._nb_update; i++)
-    {
-      UPDATE_VAL[i].write(0);
+  for (uint32_t i=0; i<param._nb_access; i++)
+    {
+      ACCESS_VAL[i].write(0);
     }
 
@@ -151,4 +133,9 @@
 
   cout << "-----[ Test Access ]------------------------------" << endl;
+
+  for (uint32_t i=0; i<param._nb_access; i++)
+    {
+      ACCESS_HIT[i].write(0);
+    }
   
   
@@ -171,10 +158,10 @@
 		addr = 0;
 	      ACCESS_VAL     [i].write(val );
-	      if (param._size_table>1)
+	      if (param._size_address>1)
 		ACCESS_ADDRESS [i].write(addr);
 	      
 	      sc_start(0);
 	      
-	      Tentity_t  entity  = ACCESS_ENTITY [i].read();
+	      Tentity_t  entity  = ACCESS_VICTIM [i].read();
 	      
 	      cout << "\t[" << i << "] " << val << " - " << ACCESS_ACK[i].read() << " addr : " << addr << " -> " << entity << endl;
