Ignore:
File:
1 edited

Legend:

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

    r29 r15  
    1515namespace select_priority_fixed {
    1616
     17
    1718  void Select_Priority_Fixed::allocation (void)
    1819  {
     
    2122    log_printf(FUNC,Select_Priority_Fixed,"allocation","Begin");
    2223
    23     interfaces = new Interfaces;
    24 
    25     // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    26     Interface interface_ ("", IN, WEST);
    27    
    28     in_CLOCK        = interface_.set_signal_clk              ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO);
    29     in_NRESET       = interface_.set_signal_in  <Tcontrol_t> ("nreset",1);
     24     in_CLOCK        = new SC_CLOCK           ("in_CLOCK ");
     25     in_NRESET       = new SC_IN (Tcontrol_t) ("in_NRESET");
    3026
    3127     in_VAL          = new SC_IN (Tcontrol_t)           * [_param._nb_entity];
     
    3531    for (uint32_t i=0; i<_param._nb_entity; i++)
    3632      {
    37          in_VAL [i]    = interface_.set_signal_in  <Tcontrol_t> ("val_"+toString(i),1);
     33        rename = " in_VAL_"+toString(i);
     34         in_VAL [i]      = new SC_IN (Tcontrol_t) (rename.c_str());
     35
    3836        if (_param._encoding_one_hot)
    39         out_ACK [i]    = interface_.set_signal_out <Tcontrol_t> ("ack_"+toString(i),1);
     37          {
     38        rename = "out_ACK_"+toString(i);
     39        out_ACK [i]      = new SC_OUT(Tcontrol_t) (rename.c_str());
     40          }
    4041      }
    4142
    4243    if (_param._encoding_compact)
    4344      {
    44         out_ENTITY     = interface_.set_signal_out <Tentity_t > ("entity"    , _param._size_entity);
    45         out_ENTITY_ACK = interface_.set_signal_out <Tcontrol_t> ("entity_ack", 1);
     45        out_ENTITY_ACK   = new SC_OUT(Tcontrol_t)           ("out_entity_ack");
     46        out_ENTITY       = new SC_OUT(Tentity_t)            ("out_entity");
    4647      }
    47 
    4848    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    4949
     
    5454}; // end namespace select
    5555}; // end namespace generic
     56
    5657}; // end namespace behavioural
    5758}; // end namespace morpheo             
Note: See TracChangeset for help on using the changeset viewer.