source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_port.cpp

Last change on this file 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: 1.2 KB
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_set_port.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_port"
19  void Vhdl::set_port (std::string      name     ,
20                       direction_t direction,
21                       std::string      type     )
22  {
23    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
24    set_list (_list_port, name + "\t: " + direction_toString(direction) + " " + type);
25    log_printf(FUNC,Behavioural,FUNCTION,"End");
26  };
27
28  void Vhdl::set_port (std::string      name     ,
29                       direction_t direction,
30                       uint32_t    size     )
31  {
32    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
33    set_port(name,direction,std_logic(size));
34    log_printf(FUNC,Behavioural,FUNCTION,"End");
35  };
36
37// #undef  FUNCTION
38// #define FUNCTION "Vhdl::set_port_clock"
39//   void Vhdl::set_port_clock (std::string name)
40//   {
41//     log_printf(FUNC,Behavioural,FUNCTION,"Begin");
42
43//     _port_clock = name;
44
45//     log_printf(FUNC,Behavioural,FUNCTION,"End");
46//   };
47   
48}; // end namespace behavioural         
49}; // end namespace morpheo             
50
51#endif
Note: See TracBrowser for help on using the repository browser.