source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Parameters_msg_error.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: 1.7 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Types.h"
9#include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace decod_unit {
18namespace decod {
19
20
21#undef  FUNCTION
22#define FUNCTION "Decod::msg_error"
23  std::string Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Decod,FUNCTION,"Begin");
26
27    std::string msg = "";
28
29    if (_nb_inst_decod == 0)
30      msg += "  - nb_inst_decod must be > 0.\n";
31
32    if ((_size_general_data != 32) and
33        (_size_general_data != 64))
34      msg += "  - size_general_data must be equal at 32 or 64 bits.\n";
35
36    if ((_nb_branch_speculated == 0) or
37        (_nb_branch_speculated > _nb_context))
38      msg += "  - nb_branch_speculated must be in [1:nb_context].\n";
39
40    if ((_nb_context_select == 0) or
41        (_nb_context_select > _nb_context))
42      msg += "  - nb_context_select must be in [1:nb_context].\n";
43
44    if ((_priority != PRIORITY_ROUND_ROBIN))
45      msg += "  - Unsupported priority scheme. Supported scheme are : "+toString(PRIORITY_ROUND_ROBIN)+".\n";
46   
47    if ((_load_balancing != LOAD_BALANCING_MAXIMUM_FOR_PRIORITY))
48      msg += "  - Unsupported load_balancing scheme. Supported scheme are : "+toString(LOAD_BALANCING_MAXIMUM_FOR_PRIORITY)+".\n";
49
50    return msg;
51
52    log_printf(FUNC,Decod,FUNCTION,"End");
53  };
54
55}; // end namespace decod
56}; // end namespace decod_unit
57}; // end namespace front_end
58}; // end namespace multi_front_end
59}; // end namespace core
60
61}; // end namespace behavioural
62}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.