Ignore:
Timestamp:
Jan 31, 2008, 6:46:41 PM (16 years ago)
Author:
rosiere
Message:

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/SelfTest/src/test.cpp

    r44 r75  
    3333      exit (EXIT_FAILURE);
    3434    }
     35
     36#ifdef STATISTICS
     37  morpheo::behavioural::Parameters_Statistics * param_stat = new morpheo::behavioural::Parameters_Statistics(5,50);
     38#endif
    3539  Shifter * _Shifter = new Shifter (name.c_str(),
    3640#ifdef STATISTICS
    37                                              morpheo::behavioural::Parameters_Statistics(5,50),
    38 #endif
    39                                              param);
     41                                    param_stat,
     42#endif
     43                                    param);
    4044 
    4145#ifdef SYSTEMC
     
    4852  sc_signal <Tshift_t    >                 SHIFTER_SHIFT     [param._nb_port];
    4953  sc_signal <Tdirection_t>                 SHIFTER_DIRECTION [param._nb_port];
    50   sc_signal <Ttype_t     >                 SHIFTER_TYPE      [param._nb_port];
     54  sc_signal <morpheo::behavioural::generic::shifter::Ttype_t     >                 SHIFTER_TYPE      [param._nb_port];
    5155  sc_signal <Tcarry_t    >                 SHIFTER_CARRY     [param._nb_port];
    5256  sc_signal <Tcontrol_t  >                 SHIFTER_CARRY_IN  [param._nb_port];
     
    96100
    97101  Tdirection_t   direction       ;
    98   Ttype_t        type            ;
     102  morpheo::behavioural::generic::shifter::Ttype_t        type            ;
    99103  Tcarry_t       carry           ;
    100104  const Tdata_t  data_max        = (1<<param._size_data);
     
    271275                       << hex
    272276                       << data_in[i] << op
    273                        << dec
     277                       << std::dec
    274278                       << shift      << " = "
    275                        << hex
     279                       << std::hex
    276280                       << SHIFTER_DATA_OUT [i].read()
    277281                       << " - completion : "
    278282                       << data_completion [i]
    279                        << dec ;
     283                       << std::dec ;
    280284                 
    281285                  TEST(Tdata_t,SHIFTER_DATA_OUT [i].read(),data_out[i]);
     
    298302
    299303  delete _Shifter;
     304
     305#ifdef STATISTICS
     306  delete param_stat;
     307#endif
    300308}
Note: See TracChangeset for help on using the changeset viewer.