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/Select/Select_Priority_Fixed/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp

    r88 r112  
    77
    88#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h"
     9#include "Behavioural/include/Allocation.h"
    910
    1011namespace morpheo{
     
    3536                                                            ,IN 
    3637                                                            ,WEST
    37                                                             ,"Generalist interface"
     38                                                            ,_("Generalist interface")
    3839#endif
    3940                                                            );
     
    4142     in_CLOCK        = interface->set_signal_clk              ("clock" ,1, CLOCK_VHDL_NO);
    4243     in_NRESET       = interface->set_signal_in  <Tcontrol_t> ("nreset",1, RESET_VHDL_NO);
     44     
     45     {
     46       ALLOC1_INTERFACE_BEGIN("",IN,SOUTH,_("select interface"),_param->_nb_entity);
    4347
    44      in_VAL          = new SC_IN (Tcontrol_t)           * [_param->_nb_entity];
    45     if (_param->_encoding_one_hot)
    46     out_ACK          = new SC_OUT(Tcontrol_t)           * [_param->_nb_entity];
     48       ALLOC1_SIGNAL_IN ( in_VAL       ,"val"       ,Tcontrol_t,1);
     49       if (_param->_encoding_one_hot)
     50       ALLOC1_SIGNAL_OUT(out_ACK       ,"ack"       ,Tcontrol_t,1);
    4751
    48     for (uint32_t i=0; i<_param->_nb_entity; i++)
    49       {
    50          in_VAL [i]    = interface->set_signal_in  <Tcontrol_t> ("val_"+toString(i),1);
    51         if (_param->_encoding_one_hot)
    52         out_ACK [i]    = interface->set_signal_out <Tcontrol_t> ("ack_"+toString(i),1);
    53       }
     52       ALLOC1_INTERFACE_END(_param->_nb_entity);
     53     }
    5454
    55     if (_param->_encoding_compact)
    56       {
    57         out_ENTITY     = interface->set_signal_out <Tentity_t > ("entity"    , _param->_size_entity);
    58         out_ENTITY_ACK = interface->set_signal_out <Tcontrol_t> ("entity_ack", 1);
    59       }
     55     if (_param->_encoding_compact)
     56     {
     57       ALLOC0_INTERFACE_BEGIN("",OUT,SOUTH,_("select interface"));
    6058
    61     // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
     59       ALLOC0_SIGNAL_OUT(out_ENTITY    ,"entity"    ,Tentity_t ,_param->_size_entity);
     60       ALLOC0_SIGNAL_OUT(out_ENTITY_ACK,"entity_ack",Tcontrol_t,1);
     61
     62       ALLOC0_INTERFACE_END();
     63     }
     64
     65    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    6266
    6367#ifdef POSITION
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp

    r88 r112  
    77
    88#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h"
     9#include "Behavioural/include/Allocation.h"
    910
    1011namespace morpheo                    {
     
    2425        delete     in_NRESET;
    2526       
    26         delete []  in_VAL;
    27         if (_param->_encoding_one_hot)
    28           delete [] out_ACK;
    29        
    30         if (_param->_encoding_compact)
    31           {
    32             delete    out_ENTITY;
    33             delete    out_ENTITY_ACK;
    34           }
     27        DELETE1_SIGNAL( in_VAL       ,_param->_nb_entity,1);
     28        if (_param->_encoding_one_hot)
     29        DELETE1_SIGNAL(out_ACK       ,_param->_nb_entity,1);
     30        if (_param->_encoding_compact)
     31          {
     32        DELETE0_SIGNAL(out_ENTITY    ,_param->_size_entity);
     33        DELETE0_SIGNAL(out_ENTITY_ACK,1);
     34          }
    3535      }
     36
    3637    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    3738   
Note: See TracChangeset for help on using the changeset viewer.