#ifdef VHDL_TESTBENCH
/*
 * $Id: Signal_testbench_test_ok.cpp 81 2008-04-15 18:40:01Z rosiere $
 *
 * [ 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
