coherent_xbar.cc (12823:ba630bc7a36d) | coherent_xbar.cc (13808:0a44fbc3a853) |
---|---|
1/* 2 * Copyright (c) 2011-2018 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 --- 57 unchanged lines hidden (view full) --- 66 // vector ports, and the presence of the default port, the ports 67 // are enumerated starting from zero 68 for (int i = 0; i < p->port_master_connection_count; ++i) { 69 std::string portName = csprintf("%s.master[%d]", name(), i); 70 MasterPort* bp = new CoherentXBarMasterPort(portName, *this, i); 71 masterPorts.push_back(bp); 72 reqLayers.push_back(new ReqLayer(*bp, *this, 73 csprintf(".reqLayer%d", i))); | 1/* 2 * Copyright (c) 2011-2018 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 --- 57 unchanged lines hidden (view full) --- 66 // vector ports, and the presence of the default port, the ports 67 // are enumerated starting from zero 68 for (int i = 0; i < p->port_master_connection_count; ++i) { 69 std::string portName = csprintf("%s.master[%d]", name(), i); 70 MasterPort* bp = new CoherentXBarMasterPort(portName, *this, i); 71 masterPorts.push_back(bp); 72 reqLayers.push_back(new ReqLayer(*bp, *this, 73 csprintf(".reqLayer%d", i))); |
74 snoopLayers.push_back(new SnoopRespLayer(*bp, *this, 75 csprintf(".snoopLayer%d", i))); | 74 snoopLayers.push_back( 75 new SnoopRespLayer(*bp, *this, csprintf(".snoopLayer%d", i))); |
76 } 77 78 // see if we have a default slave device connected and if so add 79 // our corresponding master port 80 if (p->port_default_connection_count) { 81 defaultPortID = masterPorts.size(); 82 std::string portName = name() + ".default"; 83 MasterPort* bp = new CoherentXBarMasterPort(portName, *this, | 76 } 77 78 // see if we have a default slave device connected and if so add 79 // our corresponding master port 80 if (p->port_default_connection_count) { 81 defaultPortID = masterPorts.size(); 82 std::string portName = name() + ".default"; 83 MasterPort* bp = new CoherentXBarMasterPort(portName, *this, |
84 defaultPortID); | 84 defaultPortID); |
85 masterPorts.push_back(bp); 86 reqLayers.push_back(new ReqLayer(*bp, *this, csprintf(".reqLayer%d", | 85 masterPorts.push_back(bp); 86 reqLayers.push_back(new ReqLayer(*bp, *this, csprintf(".reqLayer%d", |
87 defaultPortID))); | 87 defaultPortID))); |
88 snoopLayers.push_back(new SnoopRespLayer(*bp, *this, 89 csprintf(".snoopLayer%d", 90 defaultPortID))); 91 } 92 93 // create the slave ports, once again starting at zero 94 for (int i = 0; i < p->port_slave_connection_count; ++i) { 95 std::string portName = csprintf("%s.slave[%d]", name(), i); --- 1038 unchanged lines hidden --- | 88 snoopLayers.push_back(new SnoopRespLayer(*bp, *this, 89 csprintf(".snoopLayer%d", 90 defaultPortID))); 91 } 92 93 // create the slave ports, once again starting at zero 94 for (int i = 0; i < p->port_slave_connection_count; ++i) { 95 std::string portName = csprintf("%s.slave[%d]", name(), i); --- 1038 unchanged lines hidden --- |