Ignore:
Timestamp:
Feb 16, 2011, 1:42:13 PM (13 years ago)
Author:
simerabe
Message:

replacing old ring versions with new one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/caba-ring-ccxcachev4_memcachev4-mips32el/top.cpp

    r134 r137  
    1414#include "vci_multi_tty.h"
    1515#include "vci_xicu.h"
    16 #include "vci_simple_ring_network_2.h"
    17 #include "vci_vgmn.h"
     16#include "vci_simple_ring_fast.h"
    1817#include "vci_mem_cache_v4.h"
    1918#include "vci_cc_xcache_wrapper_v4.h"
     
    3231#  define PARAM_VCI                         4,8,32,1,1,1,8,4,4,1
    3332
    34 #  define USE_OLD_XCACHE                    1
    35 #  define USE_VGMN                          1
    3633#  define NB_PROC_MIN                       1
    3734#  define NB_PROC_MAX                       15
    3835//                                          min_latency, fifo_depth
    39 #  define PARAM_VGMN_P                      1          , 8
    40 #  define PARAM_VGMN_C                      1          , 8
    41 #  define PARAM_VGMN_X                      2          , 8
    42 //                                          wrapper_fifo_depth
    4336#  define PARAM_RING_P                      2
    4437#  define PARAM_RING_C                      2
     
    6154{
    6255  std::cout << funcname << " [nb_cycle [file [soft]]] " << std::endl;
    63   std::cout << " * nb_cycle : number of simulated cycle, if 0 then no stop condition. (default : " << NCYCLES_DEFAULT << " cycle(s))" << endl;
    64   std::cout << " * file     : Configuration file : nb_proc, iways, isets, iwords, dways, dsets, dwords, wnwords, wnlines, wtimeout, memc_nways, memc_nsets, memc_words, memc_heap_size. (default : " << FILE_DEFAULT << " cycle(s))" << endl;
    65   std::cout << " * soft     : software executed by this platforms. (default : \"" << SOFT_DEFAULT << "\")" << endl;
     56  std::cout << " * nb_cycle : number of simulated cycle, if 0 then no stop condition. (default : " << NCYCLES_DEFAULT << " cycle(s))" << std::endl;
     57  std::cout << " * file     : Configuration file : nb_proc, iways, isets, iwords, dways, dsets, dwords, wnwords, wnlines, wtimeout, memc_nways, memc_nsets, memc_words, memc_heap_size. (default : " << FILE_DEFAULT << " cycle(s))" << std::endl;
     58  std::cout << " * soft     : software executed by this platforms. (default : \"" << SOFT_DEFAULT << "\")" << std::endl;
    6659
    6760  exit(1);
     
    256249
    257250            proc[i] = new soclib::caba::VciCcXCacheWrapperV4<vci_param, proc_iss > (str.str().c_str(), i, maptabp, maptabc, IntTab(i),IntTab(i),IntTab(i)
    258 #if USE_OLD_XCACHE
    259                                                                                     ,iways, isets, iwords
    260                                                                                     ,dways, dsets, dwords
    261 #else
    262251                                                                                    ,iways, isets, iwords
    263252                                                                                    ,dways, dsets, dwords
    264253                                                                                    ,wnwords, wnlines, wtimeout
    265 #endif
    266254                                                                                    );
    267255
     
    307295        // interconnect_x : memc       | xram
    308296
    309 #if USE_VGMN
    310         soclib::caba::VciVgmn<vci_param>
    311         interconnect_p("interconnect_p",maptabp, nb_proc  , 5        , PARAM_VGMN_P);
    312 
    313         soclib::caba::VciVgmn<vci_param>
    314         interconnect_c("interconnect_c",maptabc, nb_proc+1, nb_proc+1, PARAM_VGMN_C);
    315 
    316         soclib::caba::VciVgmn<vci_param>
    317         interconnect_x("interconnect_x",maptabx, 1        , 1        , PARAM_VGMN_X);
    318 #else
    319         soclib::caba::VciSimpleRingNetwork2<vci_param,37,33>
     297        soclib::caba::VciSimpleRingFast<vci_param,40,33>
    320298        interconnect_p("interconnect_p",maptabp, IntTab(), PARAM_RING_P,nb_proc  , 5        );
    321299
    322         soclib::caba::VciSimpleRingNetwork2<vci_param,37,33>
     300        soclib::caba::VciSimpleRingFast<vci_param,40,33>
    323301        interconnect_c("interconnect_c",maptabc, IntTab(), PARAM_RING_C,nb_proc+1, nb_proc+1);
    324302
    325         soclib::caba::VciSimpleRingNetwork2<vci_param,37,33>
     303        soclib::caba::VciSimpleRingFast<vci_param,40,33>
    326304        interconnect_x("interconnect_x",maptabx, IntTab(), PARAM_RING_X,1        , 1        );
    327 #endif
    328305
    329306        // Net-List
Note: See TracChangeset for help on using the changeset viewer.