Last change
on this file since 74 was
71,
checked in by rosiere, 16 years ago
|
Modification of Statisctics
Add a new systemC component : Load_Store_Queue (tested with one benchmark and one configuration). Store don't supported the Data Buss Error (Load is supported)
|
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 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | |
---|
| 17 | void Vhdl::generate_file_model(void) |
---|
| 18 | { |
---|
| 19 | log_printf(FUNC,Behavioural,"generate_file_model","Begin"); |
---|
| 20 | |
---|
[71] | 21 | std::string filename = _name + ".vhdl"; |
---|
[2] | 22 | |
---|
| 23 | log_printf(TRACE,Behavioural,"generate_file_model","print %s",filename.c_str()); |
---|
[71] | 24 | std::cout << "Generate file \""<< filename << "\"" << std::endl; |
---|
[2] | 25 | |
---|
| 26 | log_printf(TRACE,Behavioural,"generate_file_model","declaration"); |
---|
[71] | 27 | std::ofstream file; |
---|
[15] | 28 | |
---|
[2] | 29 | log_printf(TRACE,Behavioural,"generate_file_model","open file"); |
---|
[71] | 30 | file.open(filename.c_str(),std::ios::out | std::ios::trunc); |
---|
[2] | 31 | |
---|
| 32 | log_printf(TRACE,Behavioural,"generate_file_model","get model"); |
---|
| 33 | file << get_model (0,filename,_name,"behavioural"); |
---|
| 34 | file.close(); |
---|
| 35 | |
---|
| 36 | log_printf(FUNC,Behavioural,"generate_file_model","End"); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | }; // end namespace behavioural |
---|
| 40 | }; // end namespace morpheo |
---|
| 41 | |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.