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
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/include
Files:
1 added
10 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      }
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Component.h

    r81 r82  
    55 * $Id$
    66 *
    7  * [ Description ]
     7 * [ Description ]
    88 *
    99 */
     
    6565#define INSTANCE_ALL          0x7
    6666
    67   typedef struct
    68   {
    69 //public : Component * _component;
    70   public : Entity    * _entity   ;
    71   public : Tinstance_t _instance ;
    72   } Tcomponent_t;   
    73  
    7467  class Component
    7568  {
    76     // -----[ fields ]----------------------------------------------------
     69    typedef struct
     70    {
     71    public : Component * _component;
     72    public : Entity    * _entity   ;
     73    public : Tinstance_t _instance ;
     74    } Tcomponent_t;   
     75 
     76    // -----[ fields ]----------------------------------------------------
    7777  private   : const Tusage_t             _usage;
    7878  private   : Entity                   * _entity        ;
    7979  private   : std::list<Tcomponent_t*> * _list_component;
    8080
    81     // -----[ methods ]---------------------------------------------------
    82   public    :                       Component         (Tusage_t usage=USE_ALL);
     81    // -----[ methods ]---------------------------------------------------
     82  public    :                       Component         (Tusage_t usage);
    8383  public    :                       Component         (const Component & component);
    8484  public    :                       ~Component        ();
     85
     86  public    : std::string           get_name          (void);
    8587
    8688  public    : Entity *              set_entity        (std::string        name   
     
    124126  private   : bool                  test_map          (uint32_t depth, bool recursive);
    125127
     128//   public    : bool                  test_equi         (bool recursive=true);
     129//   private   : bool                  test_equi         (uint32_t depth, bool recursive);
     130
    126131#ifdef POSITION
    127132  public    : void                  interface_map     (std::string component_src ,
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h

    r81 r82  
    4343#  define         DEBUG_Decod_unit                                  false
    4444#  define           DEBUG_Decod                                     false
     45#  define           DEBUG_Decod_queue                               true
    4546#  define         DEBUG_Ifetch_unit                                 false
    4647#  define           DEBUG_Address_management                        false
    4748#  define           DEBUG_Ifetch_queue                              false
    4849#  define           DEBUG_Ifetch_unit_Glue                          false
    49 #  define         DEBUG_Prediction_unit                             false
     50#  define         DEBUG_Prediction_unit                             true
    5051#  define           DEBUG_Branch_Target_Buffer                      false
    5152#  define             DEBUG_Branch_Target_Buffer_Glue               false
     
    5556#  define             DEBUG_Meta_Predictor                          false
    5657#  define               DEBUG_Meta_Predictor_Glue                   false
    57 #  define                 DEBUG_Two_Level_Branch_Predictor          false
    58 #  define                   DEBUG_Two_Level_Branch_Predictor_Glue   false
    59 #  define                   DEBUG_Branch_History_Table              false
    60 #  define                   DEBUG_Pattern_History_Table             false
    61 #  define           DEBUG_Prediction_unit_Glue                      true
    62 #  define           DEBUG_Return_Address_Stack                      true
     58#  define               DEBUG_Two_Level_Branch_Predictor            false
     59#  define                 DEBUG_Two_Level_Branch_Predictor_Glue     false
     60#  define                 DEBUG_Branch_History_Table                false
     61#  define                 DEBUG_Pattern_History_Table               false
     62#  define           DEBUG_Prediction_unit_Glue                      false
     63#  define           DEBUG_Return_Address_Stack                      false
    6364#  define           DEBUG_Update_Prediction_Table                   true
    6465#  define     DEBUG_Multi_OOO_Engine                                false
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Entity.h

    r81 r82  
    2626  {
    2727    // -----[ fields ]----------------------------------------------------
    28   private   : const std::string          _name         ;
    29   private   : const std::string          _type         ;
     28  private   : const std::string     _name         ;
     29  private   : const std::string     _type         ;
    3030#ifdef POSITION
    3131  private   : const schema_t        _schema       ;
     
    3636
    3737#ifdef POSITION
    38   private   : std::string                _comment      ;
     38  private   : std::string           _comment      ;
    3939
    4040  private   :       bool            _is_map       ;
     
    5151                                                       ,schema_t      schema
    5252#endif
    53                                                         ,Tusage_t       usage=USE_ALL
     53                                                        ,Tusage_t       usage
    5454                                                        );
    5555  public    :                        Entity           (const Entity & entity);
    5656  public    :                       ~Entity           ();
    5757
    58   public    : std::string                get_name          (void);
    59   public    : std::string                get_type          (void);
     58  public    : std::string           get_name          (void);
     59  public    : std::string           get_type          (void);
    6060
    6161#ifdef POSITION
    6262  public    : void                  set_comment       (std::string comment);
    63   private   : std::string                get_comment       (void          );
     63  private   : std::string           get_comment       (void          );
    6464#endif
    6565  public    : Interfaces *          set_interfaces    (void);
    66   private   : std::string                get_interfaces    (void);
     66  private   : std::string           get_interfaces    (void);
    6767  public    : Interfaces *          get_interfaces_list(void);
    6868
     
    7878#endif
    7979
    80   public    : bool                  test_map          (uint32_t depth,bool top_level);
     80  public    : bool                  test_map          (uint32_t depth,bool top_level, bool is_behavioural);
     81//   public    : bool                  test_equi         (uint32_t depth);
    8182
    8283#ifdef POSITION
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interface.h

    r81 r82  
    6363                                                          ,localisation_t localisation
    6464#endif
    65                                                           ,Tusage_t       usage=USE_ALL
     65                                                          ,Tusage_t       usage
    6666                                                          );
    6767
     
    220220                                                          std::string             counter_name  ,
    221221                                                          std::string             reset_name    );
    222   public    : std::string                testbench_test       (Vhdl           * & vhdl        ,
     222  public    : std::string           testbench_test       (Vhdl           * & vhdl        ,
    223223                                                          std::string             counter_name,
    224224                                                          std::string             reset_name);
    225   public    : std::string                testbench_test_ok    (Vhdl           * & vhdl        );
    226   protected : std::string                testbench_test_name   (Vhdl           * & vhdl);
    227   protected : std::string                testbench_test_ok_name(Vhdl           * & vhdl);
    228   protected : std::string                testbench_test_transaction_name(Vhdl           * & vhdl);
    229 #endif
    230 
    231   public    : bool                  test_map             (uint32_t depth, bool top_level);
     225  public    : std::string           testbench_test_ok    (Vhdl           * & vhdl        );
     226  protected : std::string           testbench_test_name   (Vhdl           * & vhdl);
     227  protected : std::string           testbench_test_ok_name(Vhdl           * & vhdl);
     228  protected : std::string           testbench_test_transaction_name(Vhdl           * & vhdl);
     229#endif
     230
     231  public    : bool                  test_map             (uint32_t depth, bool top_level, bool is_behavioural);
     232//   public    : bool                  test_equi            (uint32_t depth);
    232233
    233234#ifdef POSITION
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interface_fifo.h

    r81 r82  
    4545                                                          ,localisation_t localisation
    4646#endif
    47                                                           ,Tusage_t       usage=USE_ALL
     47                                                          ,Tusage_t       usage
    4848                                                          );
    4949   
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interfaces.h

    r81 r82  
    3333    // -----[ methods ]---------------------------------------------------
    3434  public    :                       Interfaces            (std::string name,
    35                                                            Tusage_t usage=USE_ALL);
     35                                                           Tusage_t usage);
    3636  public    :                       Interfaces            (const Interfaces & interfaces);
    3737  public    :                       ~Interfaces           ();
     
    8080#endif
    8181
    82   public    : bool                  test_map              (uint32_t depth, bool top_level);
     82  public    : bool                  test_map              (uint32_t depth, bool top_level, bool is_behavioural);
     83//   public    : bool                  test_equi             (uint32_t depth);
    8384
    8485  public    : friend std::ostream&       operator<<            (std::ostream& output_stream,
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Parameters.h

    r81 r82  
    4444
    4545  public    : bool        have_error  (void)            { return (_error.length() != 0);};
    46   public    : void        error       (std::string str) { _error       += "[   ERROR   ] <" + _component + "> " + str + "\n";}
    47   public    : void        warning     (std::string str) { _warning     += "[  WARNING  ] <" + _component + "> " + str + "\n";}
    48   public    : void        information (std::string str) { _information += "[INFORMATION] <" + _component + "> " + str + "\n";}
     46  public    : void        error       (std::string str) { _error       += MSG_ERROR      ; _error       += " <" + _component + "> " + str + "\n";}
     47  public    : void        warning     (std::string str) { _warning     += MSG_WARNING    ; _warning     += " <" + _component + "> " + str + "\n";}
     48  public    : void        information (std::string str) { _information += MSG_INFORMATION; _information += " <" + _component + "> " + str + "\n";}
    4949  public    : std::string print       (void)            { return _error + _warning + _information;};
    5050  };
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Signal.h

    r81 r82  
    7979  public    :                   ~Signal         ();
    8080
    81   public    : std::string            get_name                (void);
     81  public    : std::string       get_name                (void);
    8282  public    : uint32_t          get_size                (void);
    8383  public    : void              set_size                (uint32_t size);
     
    9292  public    : bool              presence_testbench      (void);
    9393
    94   public    : bool              test_map                (uint32_t depth, bool top_level);
     94  public    : bool              test_map                (uint32_t depth, bool top_level, bool is_behavioural);
     95//   public    : bool              test_equi               (uint32_t depth);
    9596
    9697  public    : void              link                    (Signal * signal_dest,
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h

    r81 r82  
    44#include "Common/include/ToString.h"
    55
    6 // Identification : MORPHEO_MAJOR_VERSION.MORPHEO_MINOR_VERSION.MORPHEO_REVISION
    7 // Revision       : svn variable
    8 
    96#define MORPHEO_MAJOR_VERSION 0
    107#define MORPHEO_MINOR_VERSION 2
    11 #define MORPHEO_REVISION      0
    12 //$Revision$
     8#define MORPHEO_REVISION      82
     9
     10// Identification : MORPHEO_MAJOR_VERSION.MORPHEO_MINOR_VERSION.MORPHEO_REVISION
    1311
    1412#define MORPHEO_VERSION       morpheo::toString(MORPHEO_MAJOR_VERSION)+"."+morpheo::toString(MORPHEO_MINOR_VERSION)+"."+morpheo::toString(MORPHEO_REVISION)
Note: See TracChangeset for help on using the changeset viewer.