public class NOCSlave extends NOCClient implements Serializable
| Constructor and Description |
|---|
NOCSlave()
Creates an empty NOC slave client.
|
NOCSlave(org.json.JSONObject json)
Creates a NOC slave client from a JSON client description.
|
NOCSlave(NOCSlave ns)
Creates a copy of an existing NOC slave client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPort(String port)
Adds a logical port to this slave client.
|
void |
addSysAddress(String base,
String size)
Adds a system address range to this slave client.
|
NOCConnection |
getConnectionFrom(String masterName)
Gets the corresponding connection based on master client name.
|
int |
getInterleaveSize()
Gets the interleave size in bytes.
|
TreeMap<String,String> |
getMemParams()
Gets the memory parameters for this slave client.
|
int |
getPortDestID(String portName)
Gets the destination ID for a logical port.
|
Map<String,Integer> |
getPortDestIDMap()
Gets the map of logical ports to destination IDs.
|
List<String> |
getPorts()
Gets the ports on this slave client.
|
List<Pair<String,String>> |
getSysAddresses()
Gets the system address ranges for this slave client.
|
void |
removePort(String port)
Removes a logical port from this slave client.
|
void |
removeSysAddress(String base)
Removes a system address range from this slave client by base address.
|
void |
setInterleaveSize(int bytes)
Sets the interleave size in bytes.
|
void |
setMemParams(TreeMap<String,String> memParams)
Sets the memory parameters for this slave client.
|
void |
setPortDestID(String portName,
int destID)
Sets the destination ID for a logical port.
|
void |
setPortDestIDMap(Map<String,Integer> portDestIDs)
Sets the map of logical ports to destination IDs.
|
void |
setPorts(ArrayList<String> ports)
Sets the logical ports on this slave client.
|
org.json.JSONObject |
toJSONObject()
Converts this slave client to its JSON representation.
|
addConnection, addExternalConnection, checkUnsupportedFields, getAxiDataWidth, getComponentType, getConnections, getDestID, getExternalConnections, getLocation, getName, getProtocol, getSimMetaData, hasParityAddr, hasParityData, isDDRC, isFabricClient, isVirtual, removeConnection, setAxiDataWidth, setComponentType, setDestID, setLocation, setName, setParityAddr, setParityData, setProtocol, setVirtual, toStringpublic NOCSlave()
public NOCSlave(NOCSlave ns)
ns - The NOC slave client to copy.public NOCSlave(org.json.JSONObject json)
json - The JSON client description.public TreeMap<String,String> getMemParams()
public void setMemParams(TreeMap<String,String> memParams)
memParams - The memory parameters to set.public List<String> getPorts()
public void setPorts(ArrayList<String> ports)
ports - The logical ports to set.public void addPort(String port)
port - The logical port to add.public void removePort(String port)
port - The logical port to remove.public List<Pair<String,String>> getSysAddresses()
public void addSysAddress(String base,
String size)
base - The base address for the range.size - The size of the range.public void removeSysAddress(String base)
base - The base address of the range to remove.public Map<String,Integer> getPortDestIDMap()
public int getPortDestID(String portName)
portName - The logical port name.public void setPortDestIDMap(Map<String,Integer> portDestIDs)
portDestIDs - The map of logical ports to destination IDs.public void setPortDestID(String portName,
int destID)
portName - The logical port name.destID - The destination ID to set.public int getInterleaveSize()
public void setInterleaveSize(int bytes)
bytes - The interleave size in bytes.public org.json.JSONObject toJSONObject()
toJSONObject in class NOCClientpublic NOCConnection getConnectionFrom(String masterName)
masterName - The name of the master client that connects to this slave.