Last change
on this file since 144 was
112,
checked in by rosiere, 15 years ago
|
1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Rev | Line | |
---|
[112] | 1 | /* |
---|
| 2 | * $Id: Parameters_print.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Divider/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace divider { |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Divider::print" |
---|
| 19 | std::string Parameters::print (uint32_t depth) |
---|
| 20 | { |
---|
| 21 | log_begin(Divider,FUNCTION); |
---|
| 22 | |
---|
| 23 | XML xml ("divider"); |
---|
| 24 | |
---|
| 25 | xml.balise_open("divider"); |
---|
| 26 | // xml.singleton_begin(""); xml.attribut("value",toString(_)); xml.singleton_end(); |
---|
| 27 | xml.balise_close(); |
---|
| 28 | |
---|
| 29 | log_end(Divider,FUNCTION); |
---|
| 30 | |
---|
| 31 | return xml.get_body(depth); |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | #undef FUNCTION |
---|
| 35 | #define FUNCTION "Divider::operator<<" |
---|
| 36 | std::ostream& operator<< (std::ostream& output_stream , |
---|
| 37 | morpheo::behavioural::generic::divider::Parameters & x) |
---|
| 38 | { |
---|
| 39 | log_begin(Divider,FUNCTION); |
---|
| 40 | |
---|
| 41 | output_stream << x.print(0); |
---|
| 42 | |
---|
| 43 | log_end(Divider,FUNCTION); |
---|
| 44 | |
---|
| 45 | return output_stream; |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace divider |
---|
| 49 | }; // end namespace generic |
---|
| 50 | |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.