source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/src/Parameters_msg_error.cpp @ 145

Last change on this file since 145 was 136, checked in by rosiere, 15 years ago

1) Add new algo in ifetch queue
2) Add Cancel bit
3) new config

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1/*
2 * $Id: Parameters_msg_error.cpp 136 2009-10-20 18:52:15Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Types.h"
9#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace ifetch_unit {
18namespace ifetch_queue {
19
20#undef  FUNCTION
21#define FUNCTION "Ifetch_queue::msg_error"
22  Parameters_test Parameters::msg_error(void)
23  {
24    log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin");
25
26    Parameters_test test ("Ifetch_queue");
27
28    if (not is_multiple (_nb_instruction_in_queue,_nb_instruction))
29      test.error(_("Size of ifetch queue must be a multiple of nb_instruction.\n"));
30
31    switch (_queue_scheme)
32      {
33      case IFETCH_QUEUE_SCHEME_NO_ASSOC :
34      case IFETCH_QUEUE_SCHEME_FULL_ASSOC :
35        {
36          break;
37        }
38      default :
39        {
40          test.error(toString(_("Ifetch queue scheme '%s' is not supported. Please wait a next revision.\n"),toString(_queue_scheme).c_str()));
41          break;
42        }
43      }
44
45    if (_size_queue == 1)
46      test.warning(_("To best perfomance, size_queue must be > 1.\n"));
47   
48    log_printf(FUNC,Ifetch_queue,FUNCTION,"End");
49
50    return test;
51  };
52
53}; // end namespace ifetch_queue
54}; // end namespace ifetch_unit
55}; // end namespace front_end
56}; // end namespace multi_front_end
57}; // end namespace core
58
59}; // end namespace behavioural
60}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.