Last change
on this file since 59 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
1.1 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 <time.h> |
---|
| 12 | #include <sstream> |
---|
| 13 | using namespace std; |
---|
| 14 | |
---|
| 15 | namespace morpheo { |
---|
| 16 | namespace behavioural { |
---|
| 17 | |
---|
[43] | 18 | #undef FUNCTION |
---|
| 19 | #define FUNCTION "Vhdl::get_header" |
---|
[2] | 20 | string Vhdl::get_header(uint32_t depth, |
---|
| 21 | string filename) |
---|
| 22 | { |
---|
[43] | 23 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 24 | |
---|
[2] | 25 | string tab = string(depth,'\t'); |
---|
| 26 | ostringstream text; |
---|
| 27 | |
---|
| 28 | time_t current_time; |
---|
| 29 | time (¤t_time); |
---|
| 30 | |
---|
| 31 | text << tab << "-------------------------------------------------------------------------------" << endl |
---|
| 32 | << tab << "-- file : " << filename << endl |
---|
| 33 | << tab << "-- date : " << ctime (¤t_time ) |
---|
| 34 | << tab << "-- comment : it's a autogenerated file : don't modify" << endl |
---|
| 35 | << tab << "-------------------------------------------------------------------------------" << endl; |
---|
| 36 | |
---|
[43] | 37 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 38 | |
---|
[2] | 39 | return text.str(); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | }; // end namespace behavioural |
---|
| 43 | }; // end namespace morpheo |
---|
| 44 | |
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.