Last change
on this file since 103 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.1 KB
|
Line | |
---|
1 | #ifdef VHDL |
---|
2 | |
---|
3 | /* |
---|
4 | * $Id: Vhdl_get_header.cpp 98 2008-12-31 10:18:08Z rosiere $ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | #include "Behavioural/include/Version.h" |
---|
12 | #include <time.h> |
---|
13 | #include <sstream> |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | |
---|
18 | #undef FUNCTION |
---|
19 | #define FUNCTION "Vhdl::get_header" |
---|
20 | std::string Vhdl::get_header(uint32_t depth, |
---|
21 | std::string filename) |
---|
22 | { |
---|
23 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
24 | |
---|
25 | std::string text; |
---|
26 | |
---|
27 | time_t current_time; |
---|
28 | time (¤t_time); |
---|
29 | |
---|
30 | text += "-------------------------------------------------------------------------------\n"; |
---|
31 | text += "-- "+toString(_("File : ")) + filename +"\n"; |
---|
32 | text += "-- "+toString(_("Date : ")) + ctime (¤t_time ); |
---|
33 | text += "-- "+toString(_("Version : ")) + MORPHEO_HEADER +"\n"; |
---|
34 | text += "-- "+toString(_("Comment : ")) + _("it's a autogenerated file, don't modify") +"\n"; |
---|
35 | text += "-------------------------------------------------------------------------------\n"; |
---|
36 | |
---|
37 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
38 | |
---|
39 | return text; |
---|
40 | }; |
---|
41 | |
---|
42 | }; // end namespace behavioural |
---|
43 | }; // end namespace morpheo |
---|
44 | |
---|
45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.