source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Parameters_msg_error.cpp @ 72

Last change on this file since 72 was 72, checked in by rosiere, 16 years ago
  • SystemC de l'unite fonctionnelle.
  • gestion des groupes / instructions custom
File size: 1.5 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/Multi_Execute_unit/Execute_unit/Functionnal_unit/include/Parameters.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace core {
15namespace multi_execute_loop {
16namespace execute_loop {
17namespace multi_execute_unit {
18namespace execute_unit {
19namespace functionnal_unit {
20
21
22#undef  FUNCTION
23#define FUNCTION "Functionnal_unit::msg_error"
24  std::string Parameters::msg_error(void)
25  {
26    log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin");
27
28    std::string msg = "";
29
30    for (uint32_t i=0; i<MAX_OPERATION; i++)
31      if (_timing->_delay != _timing->_latence)
32        msg = "  - For the operation '"+toString(i)+"', the delay and the latence must be equal.";
33
34    if (_have_groupe_MAC and ((_timing[OPERATION_ALU_L_MAC  ]._latence == 0) or
35                              (_timing[OPERATION_ALU_L_MACRC]._latence == 0) or
36                              (_timing[OPERATION_ALU_L_MSB  ]._latence == 0)))
37      msg = "  - The functionnal unit implement a MAC unit, the latence to operation OPERATION_ALU_L_MAC, OPERATION_ALU_L_MACRC and OPERATION_ALU_L_MSB must be higher than 0.";
38
39    return msg;
40
41    log_printf(FUNC,Functionnal_unit,FUNCTION,"End");
42  };
43
44}; // end namespace functionnal_unit
45}; // end namespace execute_unit
46}; // end namespace multi_execute_unit
47}; // end namespace execute_loop
48}; // end namespace multi_execute_loop
49}; // end namespace core
50}; // end namespace behavioural
51}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.