Last change
on this file since 19 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
1.0 KB
|
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_model(void) |
---|
| 19 | { |
---|
| 20 | log_printf(FUNC,Behavioural,"generate_file_model","Begin"); |
---|
| 21 | |
---|
| 22 | string filename = _name + ".vhdl"; |
---|
| 23 | |
---|
| 24 | log_printf(TRACE,Behavioural,"generate_file_model","print %s",filename.c_str()); |
---|
| 25 | cout << "Generate file \""<< filename << "\"" << endl; |
---|
| 26 | |
---|
| 27 | log_printf(TRACE,Behavioural,"generate_file_model","declaration"); |
---|
| 28 | ofstream file; |
---|
[15] | 29 | |
---|
[2] | 30 | log_printf(TRACE,Behavioural,"generate_file_model","open file"); |
---|
| 31 | file.open(filename.c_str(),ios::out | ios::trunc); |
---|
| 32 | |
---|
| 33 | log_printf(TRACE,Behavioural,"generate_file_model","get model"); |
---|
| 34 | file << get_model (0,filename,_name,"behavioural"); |
---|
| 35 | file.close(); |
---|
| 36 | |
---|
| 37 | log_printf(FUNC,Behavioural,"generate_file_model","End"); |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
| 42 | |
---|
| 43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.