Last change
on this file since 125 was
98,
checked in by rosiere, 16 years ago
|
1) Fix bug (read unit, RAT -> write in R0, SPR desallocation ...)
2) Change VHDL Execute_queue -> use Generic/Queue?
3) Complete document on VHDL generation
4) Add soc test
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id: XML_header.cpp 98 2008-12-31 10:18:08Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/XML.h" |
---|
[85] | 9 | #include "Behavioural/include/Version.h" |
---|
[2] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
[43] | 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "XML::header" |
---|
[71] | 16 | void XML::header (std::string encoding) |
---|
[2] | 17 | { |
---|
[43] | 18 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[71] | 19 | |
---|
| 20 | time_t current_time; |
---|
| 21 | time (¤t_time); |
---|
| 22 | |
---|
| 23 | std::string str; |
---|
| 24 | |
---|
| 25 | str = "<?xml version=\"1.0\" encoding=\""+encoding+"\" ?>\n"; |
---|
| 26 | str += "\n"; |
---|
| 27 | str += "<!--\n"; |
---|
[98] | 28 | str += "\t"+toString(_("File : ")) + _name + _filename_extension + "\n"; |
---|
| 29 | str += "\t"+toString(_("Date : ")) + ctime (¤t_time ); |
---|
| 30 | str += "\t"+toString(_("Version : ")) + MORPHEO_HEADER +"\n"; |
---|
| 31 | str += "\t"+toString(_("Comment : ")) + toString(_("it's a autogenerated file, don't modify")) +"\n"; |
---|
[71] | 32 | str += "-->\n"; |
---|
| 33 | str += "\n"; |
---|
| 34 | |
---|
| 35 | _body = str + _body; |
---|
| 36 | |
---|
[43] | 37 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[2] | 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.