bridge.cc (9235:5aa4896ed55a) | bridge.cc (9294:8fb03b13de02) |
---|---|
1/* 2 * Copyright (c) 2011-2012 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 --- 69 unchanged lines hidden (view full) --- 78 : MemObject(p), 79 slavePort(p->name + ".slave", *this, masterPort, 80 ticksToCycles(p->delay), p->resp_size, p->ranges), 81 masterPort(p->name + ".master", *this, slavePort, 82 ticksToCycles(p->delay), p->req_size) 83{ 84} 85 | 1/* 2 * Copyright (c) 2011-2012 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 --- 69 unchanged lines hidden (view full) --- 78 : MemObject(p), 79 slavePort(p->name + ".slave", *this, masterPort, 80 ticksToCycles(p->delay), p->resp_size, p->ranges), 81 masterPort(p->name + ".master", *this, slavePort, 82 ticksToCycles(p->delay), p->req_size) 83{ 84} 85 |
86MasterPort& 87Bridge::getMasterPort(const std::string &if_name, int idx) | 86BaseMasterPort& 87Bridge::getMasterPort(const std::string &if_name, PortID idx) |
88{ 89 if (if_name == "master") 90 return masterPort; 91 else 92 // pass it along to our super class 93 return MemObject::getMasterPort(if_name, idx); 94} 95 | 88{ 89 if (if_name == "master") 90 return masterPort; 91 else 92 // pass it along to our super class 93 return MemObject::getMasterPort(if_name, idx); 94} 95 |
96SlavePort& 97Bridge::getSlavePort(const std::string &if_name, int idx) | 96BaseSlavePort& 97Bridge::getSlavePort(const std::string &if_name, PortID idx) |
98{ 99 if (if_name == "slave") 100 return slavePort; 101 else 102 // pass it along to our super class 103 return MemObject::getSlavePort(if_name, idx); 104} 105 --- 307 unchanged lines hidden --- | 98{ 99 if (if_name == "slave") 100 return slavePort; 101 else 102 // pass it along to our super class 103 return MemObject::getSlavePort(if_name, idx); 104} 105 --- 307 unchanged lines hidden --- |