Ignore:
Timestamp:
Jul 16, 2015, 3:17:49 PM (9 years ago)
Author:
cfuguet
Message:

reconf: update the reconfiguration/tsar_generic_iob to comply with new
constructor parameters of the NIC and CHBUF_DMA peripherals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/top.cpp

    r1001 r1007  
    151151#define almos_archinfo_pathname   "arch-info.bin@0xBFC08000:D"
    152152
    153 ///////////////////////////////////////////////////
     153///////////////////////////////////////////////////////////
    154154//               Parallelisation
    155 ///////////////////////////////////////////////////
    156 #define USE_OPENMP _OPENMP
    157 
    158 #if USE_OPENMP
     155//
     156// The _OPENMP flag is defined automatically by the
     157// compilation environment when compiling with the OpenMP
     158// support
     159///////////////////////////////////////////////////////////
     160#if _OPENMP
    159161#include <omp.h>
    160162#endif
     
    512514   std::cout << std::endl;
    513515
    514 #if USE_OPENMP
     516#if _OPENMP
    515517   omp_set_dynamic(false);
    516518   omp_set_num_threads(threads_nr);
     
    990992                                          maptab_iox,
    991993                                          NB_NIC_CHANNELS,
    992                                           0,                // mac_4 address
    993                                           0,                // mac_2 address
    994                                           nicMode );
     994                                          0,           // mac_4 address
     995                                          0,           // mac_2 address
     996                                          nicMode,
     997                                          12 );        // Inter Frame Gap
    995998
    996999   // Chained Buffer DMA controller
     
    10011004                                          IntTab(0, IOX_CDMA_TGT_ID),
    10021005                                          64,          // burst size (bytes)
    1003                                           2*NB_NIC_CHANNELS );
     1006                                          NB_CMA_CHANNELS,
     1007                                          4 );         // # pipelined burst
    10041008#else
    10051009   VciTargetError<vci_param_ext> merror_nic( "merror_nic",
     
    10771081   TsarCluster* clusters[X_SIZE][Y_SIZE];
    10781082
    1079 #if USE_OPENMP
     1083#if _OPENMP
    10801084#pragma omp parallel
    10811085    {
     
    10871091            size_t y = i % Y_SIZE;
    10881092
    1089 #if USE_OPENMP
     1093#if _OPENMP
    10901094#pragma omp critical
    10911095            {
     
    11701174            );
    11711175
    1172 #if USE_OPENMP
     1176#if _OPENMP
    11731177            } // end critical
    11741178#endif
    11751179        } // end for
    1176 #if USE_OPENMP
     1180#if _OPENMP
    11771181    }
    11781182#endif
Note: See TracChangeset for help on using the changeset viewer.