Ignore:
Timestamp:
Mar 18, 2009, 11:36:26 PM (15 years ago)
Author:
rosiere
Message:

1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_allocation.cpp

    r88 r112  
    77
    88#include "Behavioural/Generic/Counter/include/Counter.h"
     9#include "Behavioural/include/Allocation.h"
    910
    1011namespace morpheo                    {
     
    3435                                                         , IN 
    3536                                                         , SOUTH
    36                                                          , "Generalist interface"
     37                                                         , _("Generalist interface")
    3738#endif
    3839                                                         );
     
    4344
    4445    // ~~~~~[ Interface : "counter" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    45      {
    46         in_COUNTER_DATA  = new SC_IN (Tdata_t)    * [_param._nb_port];
    47         in_COUNTER_ADDSUB= new SC_IN (Tcontrol_t) * [_param._nb_port];
    48        out_COUNTER_DATA  = new SC_OUT(Tdata_t)    * [_param._nb_port];
    49        
    50        for (uint32_t i=0; i<_param._nb_port; i++)
    51          {
    52            Interface_fifo * interface = _interfaces->set_interface("counter_"+toString(i)
    53 #ifdef POSITION
    54                                                                    , IN 
    55                                                                    , SOUTH
    56                                                                    , "Counter interface"
    57 #endif
    58                                                                    );
     46    {
     47      ALLOC1_INTERFACE_BEGIN("counter", IN, SOUTH, _("Counter interface"), _param._nb_port);
    5948           
    60             in_COUNTER_DATA   [i] = interface->set_signal_in  <Tdata_t   > ("data"  , _param._size_data);
    61             in_COUNTER_ADDSUB [i] = interface->set_signal_in  <Tcontrol_t> ("addsub", 1                );
    62            out_COUNTER_DATA   [i] = interface->set_signal_out <Tdata_t   > ("data"  , _param._size_data);
    63          }
    64      }
     49      ALLOC1_SIGNAL_IN ( in_COUNTER_DATA  ,"data"  ,Tdata_t   ,_param._size_data);
     50      ALLOC1_SIGNAL_IN ( in_COUNTER_ADDSUB,"addsub",Tcontrol_t,1                );
     51      ALLOC1_SIGNAL_OUT(out_COUNTER_DATA  ,"data"  ,Tdata_t   ,_param._size_data);
    6552
     53      ALLOC1_INTERFACE_END(_param._nb_port);
     54    }
     55   
    6656#ifdef POSITION
    6757     if (usage_is_set(_usage,USE_POSITION))
Note: See TracChangeset for help on using the changeset viewer.