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

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

Import Morpheo

File size: 925 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  string Vhdl::get_package(uint32_t depth       ,
19                           string   filename    ,
20                           string   package_name,
21                           string   entity_name )
22  {
23    string        tab = string(depth,'\t');
24    ostringstream text;
25
26    text << tab << get_header       (depth,filename)                      << endl
27         << tab << get_library_ieee (depth)                               << endl
28         << tab << "package " << package_name << " is"                    << endl
29         << tab << get_component    (depth+1,entity_name)                 << endl
30         << tab << "end " << package_name << ";"                          << endl;
31   
32    return text.str();
33  };
34 
35}; // end namespace behavioural         
36}; // end namespace morpheo             
37
38#endif
Note: See TracBrowser for help on using the repository browser.