Ignore:
Timestamp:
May 1, 2008, 6:48:45 PM (16 years ago)
Author:
rosiere
Message:
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Allocation.h

    r81 r82  
    11#ifndef morpheo_behavioural_Allocation_h
    22#define morpheo_behavioural_Allocation_h
     3
     4/*
     5 * $Id$
     6 *
     7 * [ Description ]
     8 *
     9 */
    310
    411#include "Common/include/Debug.h"
     
    4653    {                                                                   \
    4754      sig = interface->set_signal_in <type> (name, size);               \
    48     }                                                                   
     55    }                                                                   \
     56  else                                                                  \
     57    {                                                                   \
     58      log_printf(INFO,true,FUNCTION,_("%s %s.%s.%s : size is nul."),MSG_INFORMATION,_component->get_name().c_str(),interface->get_name().c_str(),name); \
     59    }
     60 
    4961#define ALLOC_SIGNAL_OUT( sig, name, type, size)                        \
    5062  if (size > 0)                                                         \
    5163    {                                                                   \
    5264      sig = interface->set_signal_out<type> (name, size);               \
     65    }                                                                   \
     66  else                                                                  \
     67    {                                                                   \
     68      log_printf(INFO,true,FUNCTION,_("%s %s.%s.%s : size is nul."),MSG_INFORMATION,_component->get_name().c_str(),interface->get_name().c_str(),name); \
    5369    }
    5470
     
    6379
    6480#define INSTANCE_SC_SIGNAL(component, sig)      \
    65   (*(component->sig)) (*(sig));
    66 
    67 #define DELETE_SC_SIGNAL( sig)                                          \
    68   delete sig;
     81  {                                             \
     82    TEST_PTR(component->sig);                   \
     83    TEST_PTR(sig);                              \
     84    (*(component->sig)) (*(sig));               \
     85  }
     86
     87#define DELETE_SC_SIGNAL( sig)                  \
     88  {                                             \
     89    delete sig;                                 \
     90  }
    6991
    7092// ----------------------------------------------------------------------
     
    166188            sig [alloc_signal_it1] = interface[alloc_signal_it1]->set_signal_in <type> (name, size); \
    167189          }                                                             \
     190        else                                                            \
     191          {                                                             \
     192            log_printf(INFO,true,FUNCTION,_("%s %s.%s.%s : size is nul."),MSG_INFORMATION,_component->get_name().c_str(),interface[alloc_signal_it1]->get_name().c_str(),name); \
     193          }                                                             \
    168194      }                                                                 \
    169195  }
     
    177203          {                                                             \
    178204            sig [alloc_signal_it1] = interface[alloc_signal_it1]->set_signal_out<type> (name, size); \
     205          }                                                             \
     206        else                                                            \
     207          {                                                             \
     208            log_printf(INFO,true,FUNCTION,_("%s %s.%s.%s : size is nul."),MSG_INFORMATION,_component->get_name().c_str(),interface[alloc_signal_it1]->get_name().c_str(),name); \
    179209          }                                                             \
    180210      }                                                                 \
     
    208238  for (uint32_t alloc_signal_it1=0; alloc_signal_it1<it1; alloc_signal_it1++) \
    209239    {                                                                   \
     240      TEST_PTR(component->sig [alloc_signal_it1]);                      \
     241      TEST_PTR(sig            [alloc_signal_it1]);                      \
    210242      (*(component->sig[alloc_signal_it1])) (*(sig[alloc_signal_it1])); \
    211243    }
     
    330362                sig [alloc_signal_it1][alloc_signal_it2] = interface[alloc_signal_it1][alloc_signal_it2]->set_signal_in <type> (name, size); \
    331363              }                                                         \
     364            else                                                        \
     365              {                                                         \
     366                log_printf(INFO,true,FUNCTION,_("%s %s.%s.%s : size is nul."),MSG_INFORMATION,_component->get_name().c_str(),interface[alloc_signal_it1][alloc_signal_it2]->get_name().c_str(),name); \
     367              }                                                         \
    332368          }                                                             \
    333369      }                                                                 \
     
    345381              {                                                         \
    346382                sig [alloc_signal_it1][alloc_signal_it2] = interface[alloc_signal_it1][alloc_signal_it2]->set_signal_out <type> (name, size); \
     383              }                                                         \
     384            else                                                        \
     385              {                                                         \
     386                log_printf(INFO,true,FUNCTION,_("%s %s.%s.%s : size is nul."),MSG_INFORMATION,_component->get_name().c_str(),interface[alloc_signal_it1][alloc_signal_it2]->get_name().c_str(),name); \
    347387              }                                                         \
    348388          }                                                             \
     
    393433    for (uint32_t alloc_signal_it2=0; alloc_signal_it2<it2; alloc_signal_it2++) \
    394434      {                                                                 \
     435        TEST_PTR(component->sig [alloc_signal_it1][alloc_signal_it2]);  \
     436        TEST_PTR(sig            [alloc_signal_it1][alloc_signal_it2]);  \
    395437        (*(component->sig[alloc_signal_it1][alloc_signal_it2])) (*(sig[alloc_signal_it1][alloc_signal_it2])); \
    396438      }
Note: See TracChangeset for help on using the changeset viewer.