source: trunk/IPs/systemC/processor/Morpheo/Common/src/Debug.cpp @ 78

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: 479 bytes
Line 
1#include "Common/include/Debug.h"
2
3static uint32_t _debug_depth = 0;
4
5
6std::string debug_tab (void)
7{
8  return std::string(_debug_depth,'\t');
9}
10
11void debug_function_begin (std::string component, std::string function)
12{
13  _debug_depth ++;
14
15  log_printf(FUNC,true,function.c_str(),"%sBegin",debug_tab().c_str());
16}
17
18void debug_function_end (std::string component, std::string function)
19{
20  log_printf(FUNC,true,function.c_str(),"%sEnd",debug_tab().c_str());
21
22  _debug_depth --;
23}
Note: See TracBrowser for help on using the repository browser.