#ifdef VHDL_TESTBENCH
/*
 * $Id: Signal_testbench_test_ok.cpp 95 2008-12-16 16:24:26Z 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
