source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/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.8 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Parameters.h"
9#include <sstream>
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace multi_execute_unit {
17namespace execute_unit {
18namespace load_store_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Load_store_unit::msg_error"
23  Parameters_test Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
26   
27    Parameters_test test("Load_store_unit");
28
29    switch (_speculative_load)
30      {
31      case SPECULATIVE_LOAD_COMMIT :
32        {
33          if (not (_nb_bypass_memory == 0))
34            test.error("Bypass memory is not supported. Please wait a next revision.");
35 
36          break;
37        }
38      case NO_SPECULATIVE_LOAD     :
39      case SPECULATIVE_LOAD_ACCESS :
40      // case SPECULATIVE_LOAD_BYPASS :
41      default                      :
42        {
43          if (not (_nb_bypass_memory == 0))
44            test.error("In the load scheme '"+toString(_speculative_load)+"', they have none bypass.");
45
46          test.error("Speculative load scheme '"+toString(_speculative_load)+"' is not supported. Please wait a next revision.");
47          break;
48        }
49      }
50
51    if (not (_size_store_queue >= 2))
52      test.error("Store queue must have at less two slot.");
53
54    if (not (_nb_bypass_memory <= _size_load_queue))
55      test.error("Bypass number must be less than load_queue's size.");
56
57    log_printf(FUNC,Load_store_unit,FUNCTION,"End");
58
59    return test;
60
61  };
62
63}; // end namespace load_store_unit
64}; // end namespace execute_unit
65}; // end namespace multi_execute_unit
66}; // end namespace execute_loop
67}; // end namespace multi_execute_loop
68}; // end namespace core
69
70}; // end namespace behavioural
71}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.