noncoherent_xbar.cc (10888:85a001f2193b) | noncoherent_xbar.cc (10912:b99a6662d7c2) |
---|---|
1/* 2 * Copyright (c) 2011-2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 299 unchanged lines hidden (view full) --- 308 309 // determine the destination port 310 PortID dest_id = findPort(pkt->getAddr()); 311 312 // forward the request to the appropriate destination 313 masterPorts[dest_id]->sendFunctional(pkt); 314} 315 | 1/* 2 * Copyright (c) 2011-2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 299 unchanged lines hidden (view full) --- 308 309 // determine the destination port 310 PortID dest_id = findPort(pkt->getAddr()); 311 312 // forward the request to the appropriate destination 313 masterPorts[dest_id]->sendFunctional(pkt); 314} 315 |
316unsigned int 317NoncoherentXBar::drain(DrainManager *dm) 318{ 319 // sum up the individual layers 320 unsigned int total = 0; 321 for (auto l: reqLayers) 322 total += l->drain(dm); 323 for (auto l: respLayers) 324 total += l->drain(dm); 325 return total; 326} 327 | |
328NoncoherentXBar* 329NoncoherentXBarParams::create() 330{ 331 return new NoncoherentXBar(this); 332} 333 334void 335NoncoherentXBar::regStats() 336{ 337 // register the stats of the base class and our layers 338 BaseXBar::regStats(); 339 for (auto l: reqLayers) 340 l->regStats(); 341 for (auto l: respLayers) 342 l->regStats(); 343} | 316NoncoherentXBar* 317NoncoherentXBarParams::create() 318{ 319 return new NoncoherentXBar(this); 320} 321 322void 323NoncoherentXBar::regStats() 324{ 325 // register the stats of the base class and our layers 326 BaseXBar::regStats(); 327 for (auto l: reqLayers) 328 l->regStats(); 329 for (auto l: respLayers) 330 l->regStats(); 331} |