Last change
on this file since 78 was
78,
checked in by rosiere, 16 years ago
|
Add :
- Execute_loop (must be test systemC)
- Prediction
- Direction : predifined scheme
- Branch Target Buffer
- iFetch_unit
- ifetch_queue
- pc management
- Decod_unit
- coming soon : support for custom operation
- Rename_unit
- RAT
- Free_list
- Dependence RAW check
- Load store unit pointer
- New Environnement (hierarchy_memory will remove in a next version)
Modif :
- Manage Custom Operation
- All component in execute_loop to use the new statistics management
Not Finish :
- Return Address Stack
- Environnement
|
File size:
854 bytes
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/XML.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[43] | 13 | #undef FUNCTION |
---|
| 14 | #define FUNCTION "XML::get_body" |
---|
[71] | 15 | std::string XML::get_body (void) |
---|
[2] | 16 | { |
---|
[43] | 17 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 18 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[2] | 19 | return _body; |
---|
| 20 | }; |
---|
| 21 | |
---|
[71] | 22 | std::string XML::get_body (uint32_t depth) |
---|
[3] | 23 | { |
---|
[43] | 24 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 25 | |
---|
[71] | 26 | std::string body = _body; |
---|
| 27 | std::string tabulation = indent(depth); |
---|
[3] | 28 | |
---|
[78] | 29 | body.insert(0,tabulation); |
---|
[3] | 30 | for (size_t pos=body.find('\n',0); pos<body.length()-1; pos=body.find('\n',++pos)) |
---|
| 31 | body.insert(++pos,tabulation); |
---|
| 32 | |
---|
[43] | 33 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[3] | 34 | return body; |
---|
| 35 | }; |
---|
| 36 | |
---|
[2] | 37 | }; // end namespace behavioural |
---|
| 38 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.