source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_testbench_test_ok.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 607 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id: Signal_testbench_test_ok.cpp 81 2008-04-15 18:40:01Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Signal.h"
10
11namespace morpheo              {
12namespace behavioural          {
13
14  // à optimisé -> pointeur de fonction afin d'éviter le test et le switch
15  void Signal::testbench_test_ok (Vhdl * & vhdl)
16  {
17    log_printf(FUNC,Behavioural,"testbench_test_ok","Begin");
18
19    if (_direction == OUT)
20      vhdl->set_body ("\tand "+_name+" = "+_name+"_test");
21
22    log_printf(FUNC,Behavioural,"testbench_test_ok","End");
23  };
24
25}; // end namespace behavioural         
26}; // end namespace morpheo             
27#endif
Note: See TracBrowser for help on using the repository browser.