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

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 877 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_generate_file_package.cpp 88 2008-12-10 18:31:39Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11#include "Common/include/Environment.h"
12#include <sstream>
13#include <fstream>
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    directory();
23
24    std::string name     = _name + "_Pack";
25    std::string filename = MORPHEO_VHDL + "/" + name + ".vhdl";
26
27    msg_printf(INFORMATION,_("Generate file \"%s\"."),filename.c_str());
28
29    std::ofstream file;
30    file.open(filename.c_str(),std::ios::out | std::ios::trunc);
31
32    file << get_package (0,filename, name, _name);
33
34    file.close();
35
36    log_printf(FUNC,Behavioural,"generate_file_package","End");
37  };
38 
39}; // end namespace behavioural         
40}; // end namespace morpheo             
41
42#endif
Note: See TracBrowser for help on using the repository browser.