source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_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.7 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Types.h"
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_execute_loop {
16namespace execute_loop {
17namespace network {
18namespace execution_unit_to_write_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Execution_unit_to_Write_unit::msg_error"
23  Parameters_test Parameters::msg_error(void)
24  {
25    log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"Begin");
26
27    Parameters_test test("Execution_unit_to_Write_unit");
28
29    for (uint32_t i=0; i<_nb_execute_unit; i++)
30      {
31        uint32_t j;
32        for (j=0; j<_nb_write_unit; j++)
33          if (_table_routing [i][j] == true)
34            break;
35
36        if (j == _nb_write_unit)
37          test.error("The execute_unit ["+toString(i)+"] is link with none write_unit.");
38      }   
39
40    for (uint32_t i=0; i<_nb_write_unit; i++)
41      {
42        uint32_t j;
43        for (j=0; j<_nb_thread; j++)
44          if (_table_thread [i][j] == true)
45            break;
46
47        if (j == _nb_thread)
48          test.error("The write_unit ["+toString(i)+"] have none source's thread.");
49      }   
50
51    if ( (_priority != PRIORITY_STATIC     ) and
52         (_priority != PRIORITY_ROUND_ROBIN))
53      test.error("Unsupported priority scheme. It must be Static or Round Robin.");
54
55    log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"End");
56
57    return test;
58  };
59
60}; // end namespace execution_unit_to_write_unit
61}; // end namespace network
62}; // end namespace execute_loop
63}; // end namespace multi_execute_loop
64}; // end namespace core
65
66}; // end namespace behavioural
67}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.