Changeset 167 for trunk


Ignore:
Timestamp:
May 11, 2011, 6:53:01 PM (13 years ago)
Author:
kane
Message:

delete all timeout reference (multi write buffer)

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_cc_xcache_wrapper_v4/caba/source/include/vci_cc_xcache_wrapper_v4.h

    r165 r167  
    119119    typedef uint32_t            be_t;
    120120    typedef typename vci_param::fast_addr_t vci_addr_t;
    121     typedef  enum
    122         {
    123             WRITE_THROUGH,
    124             RELEASE_WRITE_THROUGH
    125         } write_policy_t;
    126121   
    127122    enum dcache_fsm_state_e {
     
    243238    const uint32_t       m_icache_words_shift;
    244239    const size_t         m_icache_yzmask;
    245     const write_policy_t m_write_policy;
    246240    const size_t         m_cache_words; // max between m_dcache_words and m_icache_words
    247241
     
    461455                       size_t dcache_words,
    462456                       size_t wbuf_nwords,
    463                        size_t wbuf_nlines,
    464                        size_t wbuf_timeout,
    465                        write_policy_t write_policy=WRITE_THROUGH
     457                       size_t wbuf_nlines
    466458                         );
    467459
  • trunk/modules/vci_cc_xcache_wrapper_v4/caba/source/src/vci_cc_xcache_wrapper_v4.cpp

    r166 r167  
    196196                                     size_t dcache_words,
    197197                                     size_t wbuf_nwords,
    198                                      size_t wbuf_nlines,
    199                                      size_t wbuf_timeout,
    200                                      write_policy_t write_policy
     198                                     size_t wbuf_nlines
    201199                                     )
    202200               :
     
    230228               m_icache_words_shift(uint32_log2(icache_words)+uint32_log2(sizeof(data_t))),
    231229               m_icache_yzmask((~0)<<m_icache_words_shift),
    232                m_write_policy(write_policy),
    233230               m_cache_words((dcache_words)?dcache_words:icache_words),
    234231
     
    466463      size_t _wbuf_nwords  = wbuf_nwords ;
    467464      size_t _wbuf_nlines  = wbuf_nlines /m_nb_dcache;
    468       size_t _wbuf_timeout = wbuf_timeout;
    469465
    470466      r_icache = new GenericCache<vci_addr_t>  * [m_nb_icache];
     
    479475        {
    480476          r_dcache [num_cache] = new GenericCache<vci_addr_t>  ("dcache", _dcache_ways, _dcache_sets, _dcache_words);
    481           r_wbuf   [num_cache] = new MultiWriteBuffer<addr_40> ("r_wbuf", _wbuf_nwords, _wbuf_nlines, _wbuf_timeout, _dcache_words);
     477          r_wbuf   [num_cache] = new MultiWriteBuffer<addr_40> ("r_wbuf", _wbuf_nwords, _wbuf_nlines, _dcache_words);
    482478        }
    483479
     
    575571            << _wbuf_nlines  << " "        // nb_lines     
    576572            << _wbuf_nwords  << " "        // nb_words     
    577             << _wbuf_timeout << " "        // timeout       
    578573            << m_nb_cpu      << " "        // nb_cpu       
    579574            << 32            << " "        // size_data     
     
    32873282              ASSERT(p_vci_ini_c.reop and (p_vci_ini_c.rtrdid.read() == TYPE_DATA_CLEANUP),
    32883283                     "illegal response packet received for a cleanup transaction");
    3289               ASSERT(p_vci_ini_c.rerror.read()&1 == vci_param::ERR_NORMAL,
     3284              ASSERT((p_vci_ini_c.rerror.read()&1) == vci_param::ERR_NORMAL,
    32903285                     "error signaled in a cleanup response" );
    32913286              ASSERT(p_vci_ini_c.rpktid.read() == (sc_dt::sc_uint<vci_param::P>)r_cleanup_num_cache,
     
    33063301              ASSERT(p_vci_ini_c.reop and (p_vci_ini_c.rtrdid.read() == TYPE_INS_CLEANUP),
    33073302                     "illegal response packet received for a cleanup transaction");
    3308               ASSERT(p_vci_ini_c.rerror.read()&1 == vci_param::ERR_NORMAL,
     3303              ASSERT((p_vci_ini_c.rerror.read()&1) == vci_param::ERR_NORMAL,
    33093304                     "error signaled in a cleanup response" );
    33103305                   
  • trunk/platforms/caba-ring-ccxcachev4_memcachev4-mips32el/configuration/default.cfg

    r166 r167  
    334 64 16
    444 64 16
    5 4 8 16
     54 8
    6616 256 16 4096
  • trunk/platforms/caba-ring-ccxcachev4_memcachev4-mips32el/configuration/gen_config.sh

    r140 r167  
    1919#wnwords=(        "1" "16"   "*2" "4");
    2020#wnlines=(        "1" "8"    "*2" "8");
    21 #wtimeout=(       "1" "1024" "*4" "16");
    2221
    2322wnwords=(        "4"  "4"  "*2" "4");
    2423wnlines=(        "8"  "8"  "*2" "8");
    25 wtimeout=(       "16" "16" "*4" "16");
    2624
    2725archi_default="1";
     
    3028function gen_file ()
    3129{
    32         filename=$(printf "archi_%s-x%.2d_%.2d_%.2d-wbuf_%.2d_%.2d_%.4d.cfg" ${archi_name[${4}]} ${1} ${2} ${3} ${5} ${6} ${7});
     30        filename=$(printf "archi_%s-x%.2d_%.2d_%.2d-wbuf_%.2d_%.2d_%.4d.cfg" ${archi_name[${4}]} ${1} ${2} ${3} ${5} ${6});
    3331
    3432        echo ${filename};
     
    3836        echo "${iways[${4}]} ${isets[${4}]} ${iwords[${4}]}" >> ${filename};
    3937        echo "${dways[${4}]} ${dsets[${4}]} ${dwords[${4}]}" >> ${filename};
    40         echo "${5} ${6} ${7}" >> ${filename};
     38        echo "${5} ${6}" >> ${filename};
    4139        echo "${memc_nways[${4}]} ${memc_nsets[${4}]} ${memc_words[${4}]} ${memc_heap_size[${4}]}" >> ${filename};
    4240}
     
    5351        echo "${iways[${archi}]} ${isets[${archi}]} ${iwords[${archi}]}" >> ${filename};
    5452        echo "${dways[${archi}]} ${dsets[${archi}]} ${dwords[${archi}]}" >> ${filename};
    55         echo "${wnwords[3]} ${wnlines[3]} ${wtimeout[3]}" >> ${filename};
     53        echo "${wnwords[3]} ${wnlines[3]}" >> ${filename};
    5654        echo "${memc_nways[${archi}]} ${memc_nsets[${archi}]} ${memc_words[${archi}]} ${memc_heap_size[${archi}]}" >> ${filename};
    5755}
     
    8179                        num_lines=${wnlines[0]};
    8280                        while test ${num_lines} -le ${wnlines[1]}; do
    83                             num_timeout=${wtimeout[0]};
    84                             while test ${num_timeout} -le ${wtimeout[1]}; do
    85                                
    86                                 gen_file ${num_proc} ${num_cpu_by_cache} ${num_cache} ${num_archi} ${num_words} ${num_lines} ${num_timeout};
    87                                
    88                                 num_timeout=$((${num_timeout} ${wtimeout[2]}));
    89                             done;
     81                           
     82                            gen_file ${num_proc} ${num_cpu_by_cache} ${num_cache} ${num_archi} ${num_words} ${num_lines};
     83
    9084                            num_lines=$((${num_lines} ${wnlines[2]}));
    9185                        done;
  • trunk/platforms/caba-ring-ccxcachev4_memcachev4-mips32el/top.cpp

    r165 r167  
    4949                                           
    5050// * Simulation                             
    51 #  define CONFIG_DEFAULT                      "configuration/default.cfg"
     51#  define CONFIG_DEFAULT                    "configuration/default.cfg"
    5252#  define NCYCLES_DEFAULT                   0
    5353#  define SOFT_DEFAULT                      "soft/bin.soft"
     
    6464  std::cout << "                    - iways, isets, iwords," << std::endl;
    6565  std::cout << "                    - dways, dsets, dwords," << std::endl;
    66   std::cout << "                    - wnwords, wnlines, wtimeout," << std::endl;
     66  std::cout << "                    - wnwords, wnlines, " << std::endl;
    6767  std::cout << "                    - memc_nways, memc_nsets, memc_words, memc_heap_size." << std::endl;
    6868  std::cout << "                  default : \"" << CONFIG_DEFAULT << "\"" << std::endl;
     
    112112        uint32_t iways, isets, iwords;
    113113        uint32_t dways, dsets, dwords;
    114         uint32_t wnwords, wnlines, wtimeout;
     114        uint32_t wnwords, wnlines;
    115115        uint32_t memc_nways, memc_nsets, memc_words, memc_heap_size;
    116116
     
    149149        if (not (inFile >> str)){std::cout << "Invalid parameters number in configuration file." << std::endl; usage(argv[0]);}
    150150        wnlines         =std::atoi(str.c_str());
    151         if (not (inFile >> str)){std::cout << "Invalid parameters number in configuration file." << std::endl; usage(argv[0]);}
    152         wtimeout        =std::atoi(str.c_str());
    153151        if (not (inFile >> str)){std::cout << "Invalid parameters number in configuration file." << std::endl; usage(argv[0]);}
    154152        memc_nways      =std::atoi(str.c_str());
     
    179177        std::cout << "    * wnwords          : " << wnwords          << std::endl;
    180178        std::cout << "    * wnlines          : " << wnlines          << std::endl;
    181         std::cout << "    * wtimeout         : " << wtimeout         << std::endl;
    182179        std::cout << "    * memc_nways       : " << memc_nways       << std::endl;
    183180        std::cout << "    * memc_nsets       : " << memc_nsets       << std::endl;
     
    296293                                                                                    ,iways*nb_cpu_by_cache, isets, iwords
    297294                                                                                    ,dways*nb_cpu_by_cache, dsets, dwords
    298                                                                                     ,wnwords, wnlines*nb_cpu_by_cache, wtimeout
     295                                                                                    ,wnwords, wnlines*nb_cpu_by_cache
    299296#endif
    300297                                                                                    );
  • trunk/platforms/tsarv4_dspin_generic_32/tsarv4_dspin_generic_32_top.cpp

    r140 r167  
    550550                    1,1,
    551551                    4,64,16,4,64,16,                    // Icache and Dcache sizes
    552                     4,8,16);
     552                    4,8);
    553553            }
    554554        }
  • trunk/platforms/tsarv4_generic_ring/tsarv4_cluster_ring/caba/source/src/tsarv4_cluster_ring.cpp

    r155 r167  
    101101                l1_d_ways,l1_d_sets,16,         // DCACHE size
    102102                16,                             // WBUF width
    103                 1,                              // WBUF depth
    104                 0);                             // WBUF timeout
     103                1                               // WBUF depth
     104                );
    105105        }
    106106
  • trunk/platforms/tsarv4_generic_xbar/tsarv4_cluster_xbar/caba/source/src/tsarv4_cluster_xbar.cpp

    r154 r167  
    101101                l1_d_ways,l1_d_sets,16,         // DCACHE size
    102102                16,                             // WBUF width
    103                 1,                              // WBUF depth
    104                 0);                             // WBUF timeout
     103                1                               // WBUF depth
     104                );
    105105        }
    106106
  • trunk/platforms/tsarv4_vgmn_generic_32/tsarv4_vgmn_generic_32_top.cpp

    r140 r167  
    541541                    1,1,
    542542                    4,64,16,4,64,16                             // Icache and Dcache sizes
    543                     ,4,8,16
     543                    ,4,8
    544544                    );
    545545        }
Note: See TracChangeset for help on using the changeset viewer.