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

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

Import Morpheo

File size: 781 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11#include <sstream>
12#include <fstream>
13using namespace std;
14
15namespace morpheo              {
16namespace behavioural          {
17
18  void Vhdl::generate_file_package(void)
19  {
20    log_printf(FUNC,Behavioural,"generate_file_package","Begin");
21
22    string name     = _name + "_Pack";
23    string filename =  name + ".vhdl";
24
25    cout << "Generate file \""<< filename << "\"" << endl;
26
27    ofstream file;
28    file.open(filename.c_str(),ios::out | ios::trunc);
29
30    file << get_package (0,filename, name, _name);
31
32    file.close();
33
34    log_printf(FUNC,Behavioural,"generate_file_package","End");
35  };
36 
37}; // end namespace behavioural         
38}; // end namespace morpheo             
39
40#endif
Note: See TracBrowser for help on using the repository browser.