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

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 795 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_generate_file_package.cpp 81 2008-04-15 18:40:01Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11#include <sstream>
12#include <fstream>
13
14namespace morpheo              {
15namespace behavioural          {
16
17  void Vhdl::generate_file_package(void)
18  {
19    log_printf(FUNC,Behavioural,"generate_file_package","Begin");
20
21    std::string name     = _name + "_Pack";
22    std::string filename =  name + ".vhdl";
23
24    std::cout << "Generate file \""<< filename << "\"" << std::endl;
25
26    std::ofstream file;
27    file.open(filename.c_str(),std::ios::out | std::ios::trunc);
28
29    file << get_package (0,filename, name, _name);
30
31    file.close();
32
33    log_printf(FUNC,Behavioural,"generate_file_package","End");
34  };
35 
36}; // end namespace behavioural         
37}; // end namespace morpheo             
38
39#endif
Note: See TracBrowser for help on using the repository browser.