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

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_allocation.cpp

    r95 r112  
    22 * $Id$
    33 *
    4  * [ Description ]
     4 * [ Description ]
    55 *
    66 */
     
    2828    _interfaces = entity->set_interfaces();
    2929
    30     // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     30    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3131    {
    3232      Interface_fifo * interface = _interfaces->set_interface(""
     
    4040    }
    4141
    42     // ~~~~~[ Interface : "access" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     42    // ~~~~~[ Interface : "access" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    4343    {
    44       ALLOC1_INTERFACE("access",IN,WEST, "Access", _param->_nb_access);
     44      ALLOC1_INTERFACE_BEGIN("access",IN,WEST, "Access", _param->_nb_access);
    4545
    4646      ALLOC1_VALACK_IN ( in_ACCESS_VAL    ,VAL);
     
    5050      ALLOC1_SIGNAL_IN ( in_ACCESS_ENTITY ,"entity" ,Tentity_t ,log2(_param->_nb_entity   ));
    5151      ALLOC1_SIGNAL_OUT(out_ACCESS_VICTIM ,"victim" ,Tentity_t ,log2(_param->_nb_entity   ));
     52
     53      ALLOC1_INTERFACE_END(_param->_nb_access);
    5254    }
    5355
    5456    if (usage_is_set(_usage,USE_SYSTEMC))
    5557      {
    56     // -----[ Register ]---------------------------------------------------
    57     reg_TABLE = new entry_t *  [_param->_size_table];
    58 
    59     for (uint32_t i=0; i<_param->_size_table; i++)
    60       reg_TABLE [i] = new entry_t (_param->_nb_entity);
    61    
    62     // -----[ Internal ]---------------------------------------------------
    63     internal_ACCESS_ACK    = new Tcontrol_t [_param->_nb_access];
    64     internal_ACCESS_VICTIM = new Tentity_t  [_param->_nb_access];
     58        // -----[ Register ]---------------------------------------------------
     59        reg_TABLE = new entry_t *  [_param->_size_table];
     60       
     61        for (uint32_t i=0; i<_param->_size_table; i++)
     62          reg_TABLE [i] = new entry_t (_param->_nb_entity);
     63       
     64        // -----[ Internal ]---------------------------------------------------
     65        ALLOC1(internal_ACCESS_ACK   ,Tcontrol_t,_param->_nb_access);
     66        ALLOC1(internal_ACCESS_VICTIM,Tentity_t ,_param->_nb_access);
    6567      }
    6668
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_deallocation.cpp

    r88 r112  
    77
    88#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h"
     9#include "Behavioural/include/Allocation.h"
    910
    1011namespace morpheo                    {
     
    2021    delete     in_CLOCK;
    2122    delete     in_NRESET;
    22     // -----[ Interface access ]-------------------------------------------
    23     delete []  in_ACCESS_VAL    ;
    24     delete [] out_ACCESS_ACK    ;
    25     if (_param->_size_address>1)
    26     delete []  in_ACCESS_ADDRESS;
    27     delete []  in_ACCESS_HIT    ;
    28     delete []  in_ACCESS_ENTITY ;
    29     delete [] out_ACCESS_VICTIM ;
    30    
    31     // -----[ Register ]---------------------------------------------------
    32     delete [] reg_TABLE;
    3323
    34     // -----[ Internal ]---------------------------------------------------
    35     delete [] internal_ACCESS_ACK   ;
    36     delete [] internal_ACCESS_VICTIM;
     24    DELETE1_SIGNAL( in_ACCESS_VAL    ,_param->_nb_access,1);
     25    DELETE1_SIGNAL(out_ACCESS_ACK    ,_param->_nb_access,1);
     26    DELETE1_SIGNAL( in_ACCESS_HIT    ,_param->_nb_access,1);
     27    DELETE1_SIGNAL( in_ACCESS_ADDRESS,_param->_nb_access,log2(_param->_size_address));
     28    DELETE1_SIGNAL( in_ACCESS_ENTITY ,_param->_nb_access,log2(_param->_nb_entity   ));
     29    DELETE1_SIGNAL(out_ACCESS_VICTIM ,_param->_nb_access,log2(_param->_nb_entity   ));
     30
     31    DELETE1(reg_TABLE             ,_param->_size_table);
     32    DELETE1(internal_ACCESS_ACK   ,_param->_nb_access);
     33    DELETE1(internal_ACCESS_VICTIM,_param->_nb_access);
    3734      }
    3835
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/src/Victim_allocation.cpp

    r82 r112  
    3131    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3232    {
    33       __ALLOC_SIGNAL(in_CLOCK ,"in_CLOCK" ,SC_CLOCK          );
    34       __ALLOC_SIGNAL(in_NRESET,"in_NRESET",SC_IN (Tcontrol_t));
     33      __ALLOC0_SIGNAL(in_CLOCK ,"in_CLOCK" ,SC_CLOCK          );
     34      __ALLOC0_SIGNAL(in_NRESET,"in_NRESET",SC_IN (Tcontrol_t));
    3535    }
    3636
    3737    // ~~~~~[ Interface : "Access" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    3838    {
    39       __ALLOC1_INTERFACE("ACCESS",_param->_nb_access);
     39      __ALLOC1_INTERFACE_BEGIN("ACCESS",_param->_nb_access);
    4040
    4141      __ALLOC1_SIGNAL_IN ( in_ACCESS_VAL    ,"VAL"    ,Tcontrol_t);
     
    4646      __ALLOC1_SIGNAL_IN ( in_ACCESS_ENTITY ,"ENTITY" ,Tentity_t );
    4747      __ALLOC1_SIGNAL_OUT(out_ACCESS_VICTIM ,"VICTIM" ,Tentity_t );
     48
     49      __ALLOC1_INTERFACE_END(_param->_nb_access);
    4850    }
    4951
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/src/Victim_deallocation.cpp

    r88 r112  
    77
    88#include "Behavioural/Generic/Victim/include/Victim.h"
     9#include "Behavioural/include/Allocation.h"
    910
    1011namespace morpheo                    {
Note: See TracChangeset for help on using the changeset viewer.