Ignore:
Timestamp:
Dec 6, 2007, 11:03:00 AM (17 years ago)
Author:
rosiere
Message:
  • un pas de plus vers la compatibilite avec systemC
  • modification de l'interface de read_queue : context_id devient context_id, front_end_id et ooo_engine_id
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/SelfTest/src/main.cpp

    r55 r66  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/SelfTest/include/test.h"
    99
    10 #define NB_PARAMS 0
     10#define NB_PARAMS 13
    1111
    1212void usage (int argc, char * argv[])
     
    1616       << " - size_queue          (unsigned int)" << endl
    1717       << " - nb_context          (unsigned int)" << endl
     18       << " - nb_front_end        (unsigned int)" << endl
     19       << " - nb_ooo_engine       (unsigned int)" << endl
    1820       << " - nb_packet           (unsigned int)" << endl
    1921       << " - size_general_data   (unsigned int)" << endl
     
    4042#endif
    4143{
    42   if (argc < 2+NB_PARAMS)
     44  if (argc != 2+NB_PARAMS)
    4345    usage (argc, argv);
    4446
    45   const string   name                = argv[1];
    46   const uint32_t size_queue          = atoi(argv[ 2]);
    47   const uint32_t nb_context          = atoi(argv[ 3]);
    48   const uint32_t nb_packet           = atoi(argv[ 4]);
    49   const uint32_t size_general_data   = atoi(argv[ 5]);
    50   const uint32_t size_special_data   = atoi(argv[ 6]);
    51   const uint32_t nb_general_register = atoi(argv[ 7]);
    52   const uint32_t nb_special_register = atoi(argv[ 8]);
    53   const uint32_t nb_operation        = atoi(argv[ 9]);
    54   const uint32_t nb_type             = atoi(argv[10]);
    55   const uint32_t nb_gpr_write        = atoi(argv[11]);
    56   const uint32_t nb_spr_write        = atoi(argv[12]);
     47  uint32_t x=1;
     48  const string   name                =      argv[x++];
     49  const uint32_t size_queue          = atoi(argv[x++]);
     50  const uint32_t nb_context          = atoi(argv[x++]);
     51  const uint32_t nb_front_end        = atoi(argv[x++]);
     52  const uint32_t nb_ooo_engine       = atoi(argv[x++]);
     53  const uint32_t nb_packet           = atoi(argv[x++]);
     54  const uint32_t size_general_data   = atoi(argv[x++]);
     55  const uint32_t size_special_data   = atoi(argv[x++]);
     56  const uint32_t nb_general_register = atoi(argv[x++]);
     57  const uint32_t nb_special_register = atoi(argv[x++]);
     58  const uint32_t nb_operation        = atoi(argv[x++]);
     59  const uint32_t nb_type             = atoi(argv[x++]);
     60  const uint32_t nb_gpr_write        = atoi(argv[x++]);
     61  const uint32_t nb_spr_write        = atoi(argv[x++]);
    5762
    5863  try
     
    6166        ( size_queue   
    6267         ,nb_context         
     68         ,nb_front_end       
     69         ,nb_ooo_engine
    6370         ,nb_packet         
    6471         ,size_general_data 
Note: See TracChangeset for help on using the changeset viewer.