Last change
on this file since 125 was
94,
checked in by rosiere, 16 years ago
|
Update document on Vhdl generation.
|
-
Property svn:keywords set to
Id
|
File size:
834 bytes
|
Line | |
---|
1 | #ifdef VHDL |
---|
2 | |
---|
3 | /* |
---|
4 | * $Id: Vhdl_set_comment.cpp 94 2008-12-15 11:04:03Z rosiere $ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | #include "Common/include/Tabulation.h" |
---|
12 | #include <sstream> |
---|
13 | |
---|
14 | namespace morpheo { |
---|
15 | namespace behavioural { |
---|
16 | |
---|
17 | #undef FUNCTION |
---|
18 | #define FUNCTION "Vhdl::set_comment" |
---|
19 | void Vhdl::set_comment (std::string text) |
---|
20 | { |
---|
21 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
22 | set_comment(0, text); |
---|
23 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
24 | }; |
---|
25 | |
---|
26 | #undef FUNCTION |
---|
27 | #define FUNCTION "Vhdl::set_comment" |
---|
28 | void Vhdl::set_comment (uint32_t depth, |
---|
29 | std::string text) |
---|
30 | { |
---|
31 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
32 | set_body(depth,"-- "+text); |
---|
33 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
34 | }; |
---|
35 | |
---|
36 | |
---|
37 | }; // end namespace behavioural |
---|
38 | }; // end namespace morpheo |
---|
39 | |
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.