#ifdef VHDL_TESTBENCH
/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/Select/Pseudo_LRU/include/Pseudo_LRU.h"

namespace morpheo {
namespace behavioural {
namespace generic {
namespace select {
namespace pseudo_lru {


  void Pseudo_LRU::vhdl_testbench_transition (Vhdl_Testbench & vhdl_testbench)
  {
#ifndef SYSTEMCASS_SPECIFIC
    sc_cycle(0);
#endif

    for (uint32_t i = 0; i < _param._nb_access; i ++)
      {
	vhdl_testbench.add_input  (PORT_READ( in_ACCESS_VAL     [i]));
	vhdl_testbench.add_output (PORT_READ(out_ACCESS_ACK     [i]));
	if (_param._size_table>1)
	  vhdl_testbench.add_input  (PORT_READ( in_ACCESS_ADDRESS [i]));
	vhdl_testbench.add_output (PORT_READ(out_ACCESS_ENTITY  [i]));
      }

    for (uint32_t i = 0; i < _param._nb_update; i ++)
      {
	vhdl_testbench.add_input  (PORT_READ( in_UPDATE_VAL     [i]));
	vhdl_testbench.add_output (PORT_READ(out_UPDATE_ACK     [i]));
	if (_param._size_table>1)
	  vhdl_testbench.add_input  (PORT_READ( in_UPDATE_ADDRESS [i]));
	vhdl_testbench.add_input  (PORT_READ( in_UPDATE_ENTITY  [i]));
      }

    vhdl_testbench.add_test(true);

    vhdl_testbench.new_cycle (); // always at the end
  };

}; // end namespace pseudo_lru
}; // end namespace select
}; // end namespace generic
}; // end namespace behavioural
}; // end namespace morpheo              
#endif
