source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_library.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: 943 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_set_library.cpp 113 2009-04-14 18:39:12Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13
14namespace morpheo              {
15namespace behavioural          {
16 
17#undef  FUNCTION
18#define FUNCTION "Vhdl::set_library"
19  void Vhdl::set_library (std::string library_name,
20                          std::string package_name,
21                          std::string declarative_unit)
22  {
23    log_begin(Behavioural,FUNCTION);
24
25    std::string library = "library "+library_name;
26
27    std::list<std::string>::iterator it = _list_library.begin();
28    while ((it != _list_library.end()) and
29           (*it != library))
30      ++it;
31    if (it == _list_library.end())
32      set_list(_list_library, library);
33
34    set_list(_list_library, "use "+library_name+"."+ package_name + "."+declarative_unit);
35
36    log_end(Behavioural,FUNCTION);
37  };
38 
39}; // end namespace behavioural         
40}; // end namespace morpheo             
41
42#endif
Note: See TracBrowser for help on using the repository browser.