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

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 673 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13using namespace std;
14
15namespace morpheo              {
16namespace behavioural          {
17 
18  void Vhdl::set_port (string      name     ,
19                       direction_t direction,
20                       string      type     )
21  {
22    set_list (_list_port, name + "\t: " + direction_toString(direction) + " " + type);
23  };
24
25  void Vhdl::set_port (string      name     ,
26                       direction_t direction,
27                       uint32_t    size     )
28  {
29    set_port(name,direction,std_logic(size));
30  };
31   
32}; // end namespace behavioural         
33}; // end namespace morpheo             
34
35#endif
Note: See TracBrowser for help on using the repository browser.