Changeset 435 for trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster
- Timestamp:
- Jul 12, 2013, 12:35:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_xbar/tsar_xbar_cluster/caba/source/src/tsar_xbar_cluster.cpp
r428 r435 93 93 // Components definition 94 94 ///////////////////////////////////////////////////////////////////////////// 95 std::cout << " - building proc_" << x_id << "_" << y_id << "-*" << std::endl;96 95 97 96 for (size_t p = 0; p < nb_procs; p++) … … 123 122 124 123 std::ostringstream swip; 125 swip << "wi_proc_" << x_id << "_" << y_id << p;124 swip << "wi_proc_" << x_id << "_" << y_id << "_" << p; 126 125 wi_proc[p] = new VciDspinInitiatorWrapper<vci_param_int, 127 126 dspin_cmd_width, … … 132 131 133 132 ///////////////////////////////////////////////////////////////////////////// 134 std::cout << " - building memc_" << x_id << "_" << y_id << std::endl;135 136 133 std::ostringstream smemc; 137 134 smemc << "memc_" << x_id << "_" << y_id; … … 161 158 162 159 ///////////////////////////////////////////////////////////////////////////// 163 std::cout << " - building xram_" << x_id << "_" << y_id << std::endl;164 165 160 std::ostringstream sxram; 166 161 sxram << "xram_" << x_id << "_" << y_id; … … 173 168 174 169 ///////////////////////////////////////////////////////////////////////////// 175 std::cout << " - building xicu_" << x_id << "_" << y_id << std::endl;176 177 170 std::ostringstream sxicu; 178 171 sxicu << "xicu_" << x_id << "_" << y_id; … … 193 186 194 187 ///////////////////////////////////////////////////////////////////////////// 195 std::cout << " - building mdma_" << x_id << "_" << y_id << std::endl;196 197 188 std::ostringstream smdma; 198 189 smdma << "mdma_" << x_id << "_" << y_id; … … 218 209 219 210 ///////////////////////////////////////////////////////////////////////////// 220 std::cout << " - building xbar_cmd_d_" << x_id << "_" << y_id << std::endl;221 222 211 size_t nb_direct_initiators = nb_procs + 1; 223 212 size_t nb_direct_targets = 3; … … 234 223 x_width, y_width, l_width, 235 224 nb_direct_initiators, // number of local of sources 236 nb_direct_targets, // number of local dests 237 2, 2, // fifo depths 238 true, // use local routing table 239 false ); // no broacast 240 241 ///////////////////////////////////////////////////////////////////////////// 242 std::cout << " - building xbar_rsp_d_" << x_id << "_" << y_id << std::endl; 243 225 nb_direct_targets, // number of local dests 226 2, 2, // fifo depths 227 true, // CMD 228 true, // use local routing table 229 false ); // no broadcast 230 231 ///////////////////////////////////////////////////////////////////////////// 244 232 xbar_rsp_d = new DspinLocalCrossbar<dspin_rsp_width>( 245 233 "xbar_rsp_d", … … 249 237 nb_direct_targets, // number of local sources 250 238 nb_direct_initiators, // number of local dests 251 2, 2, // fifo depths 252 false, // don't use local routing table 253 false ); // no broacast 254 255 ///////////////////////////////////////////////////////////////////////////// 256 std::cout << " - building xbar_m2p_c" << x_id << "_" << y_id << std::endl; 257 239 2, 2, // fifo depths 240 false, // RSP 241 false, // don't use local routing table 242 false ); // no broadcast 243 244 ///////////////////////////////////////////////////////////////////////////// 258 245 xbar_m2p_c = new DspinLocalCrossbar<dspin_cmd_width>( 259 246 "xbar_m2p_c", … … 262 249 x_width, y_width, l_width, 263 250 1, // number of local sources 264 nb_procs, // number of local targets 251 nb_procs, // number of local targets 265 252 2, 2, // fifo depths 253 true, // CMD 266 254 false, // don't use local routing table 267 true ); // broacast 268 269 ///////////////////////////////////////////////////////////////////////////// 270 std::cout << " - building xbar_p2m_c_" << x_id << "_" << y_id << std::endl; 271 255 true ); // broadcast 256 257 ///////////////////////////////////////////////////////////////////////////// 272 258 xbar_p2m_c = new DspinLocalCrossbar<dspin_rsp_width>( 273 259 "xbar_p2m_c", … … 278 264 1, // number of local dests 279 265 2, 2, // fifo depths 266 false, // RSP 280 267 false, // don't use local routing table 281 false ); // no broacast 282 283 ///////////////////////////////////////////////////////////////////////////// 284 std::cout << " - building router_cmd_" << x_id << "_" << y_id << std::endl; 285 268 false ); // no broadcast 269 270 ///////////////////////////////////////////////////////////////////////////// 286 271 router_cmd = new VirtualDspinRouter<dspin_cmd_width>( 287 272 "router_cmd", … … 291 276 292 277 ///////////////////////////////////////////////////////////////////////////// 293 std::cout << " - building router_rsp_" << x_id << "_" << y_id << std::endl;294 295 278 router_rsp = new VirtualDspinRouter<dspin_rsp_width>( 296 279 "router_rsp", … … 303 286 { 304 287 ///////////////////////////////////////////// 305 std::cout << " - building brom" << std::endl; 306 307 brom = new VciSimpleRam<vci_param_int>( 288 brom = new VciSimpleRom<vci_param_int>( 308 289 "brom", 309 290 IntTab(cluster_id, tgtid_brom), … … 318 299 319 300 ///////////////////////////////////////////// 320 std::cout << " - building fbuf" << std::endl;321 322 301 fbuf = new VciFrameBuffer<vci_param_int>( 323 302 "fbuf", … … 333 312 334 313 ///////////////////////////////////////////// 335 std::cout << " - building bdev" << std::endl;336 337 314 bdev = new VciBlockDeviceTsar<vci_param_int>( 338 315 "bdev", … … 357 334 358 335 ///////////////////////////////////////////// 359 std::cout << " - building mnic" << std::endl;360 361 336 mnic = new VciMultiNic<vci_param_int>( 362 337 "mnic", … … 376 351 377 352 ///////////////////////////////////////////// 378 std::cout << " - building mtty" << std::endl;379 380 353 std::vector<std::string> vect_names; 381 354 for( size_t tid = 0 ; tid < (nb_ttys) ; tid++ ) … … 397 370 x_width + y_width + l_width); 398 371 } 399 400 std::cout << std::endl;401 372 402 373 ////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.