Last change
on this file since 140 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[31] | 1 | #ifdef POSITION |
---|
| 2 | |
---|
| 3 | #ifndef morpheo_behavioural_Schema_h |
---|
| 4 | #define morpheo_behavioural_Schema_h |
---|
| 5 | |
---|
[44] | 6 | #include "Common/include/ToString.h" |
---|
[31] | 7 | |
---|
| 8 | namespace morpheo { |
---|
| 9 | namespace behavioural { |
---|
| 10 | |
---|
| 11 | typedef enum { MIXTE , |
---|
| 12 | COMBINATORY, |
---|
| 13 | FIFO , |
---|
| 14 | REGISTER , |
---|
| 15 | SHIFTER , |
---|
| 16 | ADDER } schema_t; |
---|
| 17 | |
---|
| 18 | }; // end namespace behavioural |
---|
| 19 | |
---|
| 20 | template<> inline std::string toString<morpheo::behavioural::schema_t>(const morpheo::behavioural::schema_t& x) |
---|
| 21 | { |
---|
| 22 | switch (x) |
---|
| 23 | { |
---|
| 24 | case morpheo::behavioural::MIXTE : return "Mixte" ; break; |
---|
| 25 | case morpheo::behavioural::COMBINATORY : return "Combinatory"; break; |
---|
| 26 | case morpheo::behavioural::FIFO : return "FIFO" ; break; |
---|
| 27 | case morpheo::behavioural::REGISTER : return "Register" ; break; |
---|
| 28 | case morpheo::behavioural::SHIFTER : return "Shifter" ; break; |
---|
| 29 | case morpheo::behavioural::ADDER : return "Adder" ; break; |
---|
| 30 | default : return "" ; break; |
---|
| 31 | } |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | }; // end namespace morpheo |
---|
| 35 | |
---|
| 36 | #endif |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.