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

#include "Behavioural/include/Signal.h"

namespace morpheo              {
namespace behavioural          {

  // à optimisé -> pointeur de fonction afin d'éviter le test et le switch
  void Signal::testbench_test_ok (Vhdl * & vhdl)
  {
    log_printf(FUNC,Behavioural,"testbench_test_ok","Begin");

    if (_direction == OUT)
      vhdl->set_body ("\tand "+_name+" = "+_name+"_test");

    log_printf(FUNC,Behavioural,"testbench_test_ok","End");
  };

}; // end namespace behavioural          
}; // end namespace morpheo              
#endif
