source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench_test.cpp @ 135

Last change on this file since 135 was 135, checked in by rosiere, 15 years ago

1) Add Vhdl component
2) Inhib VHDL Seltest interface

  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id: Interface_testbench_test.cpp 135 2009-07-17 08:59:05Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interface.h"
10#include "Behavioural/include/Entity.h"
11
12namespace morpheo              {
13namespace behavioural          {
14
15  std::string Interface::testbench_test (Vhdl * & vhdl,
16                                    std::string   counter_name,
17                                    std::string   reset_name  )
18  {
19    log_printf(FUNC,Behavioural,"testbench_test","Begin");
20
21    vhdl->set_body("");
22    vhdl->set_body("-- Test exhaustive");
23    vhdl->set_body("");
24
25    std::string test_name    = testbench_test_name(vhdl);
26    std::string test_name_ok = testbench_test_ok  (vhdl);
27
28//     vhdl->set_body(test_name + " <= '1' when ("+reset_name+" = '0') else "+test_name_ok+";");
29
30    if (_make_testbench)
31      vhdl->set_body(test_name + " <= '1' when ("+reset_name+" = '0') else "+test_name_ok+";");
32    else
33      vhdl->set_body(test_name + " <= '1';");
34
35    log_printf(FUNC,Behavioural,"testbench_test","End");
36
37    return test_name;
38  };
39
40}; // end namespace behavioural         
41}; // end namespace morpheo             
42#endif
Note: See TracBrowser for help on using the repository browser.