Rev | Line | |
---|
[2] | 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> |
---|
| 13 | using namespace std; |
---|
| 14 | |
---|
| 15 | namespace morpheo { |
---|
| 16 | namespace 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.