source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_test_architecture.cpp @ 113

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

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 994 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_test_architecture.cpp 113 2009-04-14 18:39:12Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12namespace morpheo              {
13namespace behavioural          {
14
15// _architecture[_name_architecture].
16// test_architecture();
17 
18#undef  FUNCTION
19#define FUNCTION "Vhdl::test_architecture"
20  void Vhdl::test_architecture (void)
21  {
22    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
23
24    if (_name_architecture == "")
25      _name_architecture = _name_architecture_default;
26
27    log_printf(FUNC,Behavioural,FUNCTION,"End");
28  };
29
30#undef  FUNCTION
31#define FUNCTION "Vhdl::test_architecture"
32  std::string Vhdl::test_architecture (std::string name)
33  {
34    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
35
36    std::string _return;
37
38    if (name == "")
39      _return = _name_architecture_default;
40    else
41      _return = name;
42   
43    log_printf(FUNC,Behavioural,FUNCTION,"End");
44
45    return _return;
46  };
47 
48}; // end namespace behavioural         
49}; // end namespace morpheo             
50
51#endif
Note: See TracBrowser for help on using the repository browser.