public class NOCClient
extends Object
implements Serializable
| Constructor and Description |
|---|
NOCClient()
Creates an empty NOC client.
|
NOCClient(org.json.JSONObject json)
Creates a NOC client from a JSON client description.
|
NOCClient(NOCClient nc)
Creates a copy of an existing NOC client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(NOCConnection np)
Adds a connection associated with this NOC client.
|
void |
addExternalConnection(String s)
Adds an external connection name for this client.
|
void |
checkUnsupportedFields(org.json.JSONObject json)
Checks whether a JSON client description contains fields that are not supported.
|
int |
getAxiDataWidth()
Gets the AXI data width for this client.
|
ComponentType |
getComponentType()
Gets the component type of this client
|
List<NOCConnection> |
getConnections()
Gets the connections associated with this NOC client
|
int |
getDestID()
Gets the destination ID for this client.
|
List<String> |
getExternalConnections()
Gets external connection names for this client.
|
String |
getLocation()
Gets the name of the location (site) of this client
|
String |
getName()
Gets the name of this client
|
ProtocolType |
getProtocol()
Gets the protocol type of this client
|
Map<String,String> |
getSimMetaData()
Gets simulation metadata for this client.
|
boolean |
hasParityAddr()
Checks whether this client has address parity.
|
boolean |
hasParityData()
Checks whether this client has data parity.
|
boolean |
isDDRC()
Checks if this client is a DDR memory client
|
boolean |
isFabricClient()
Checks if this client is located in the programmable logic fabric.
|
boolean |
isVirtual()
Checks whether this client is virtual.
|
void |
removeConnection(NOCConnection np)
Removes a connection associated with this NOC client.
|
void |
setAxiDataWidth(int axiDataWidth)
Sets the AXI data width for this client.
|
void |
setComponentType(ComponentType compType)
Sets the component type of this client.
|
void |
setDestID(int destID)
Sets the destination ID for this client.
|
void |
setLocation(String location)
Sets the location of the client
|
void |
setName(String name)
Sets the name of this client.
|
void |
setParityAddr(boolean hasParityAddr)
Sets whether this client has address parity.
|
void |
setParityData(boolean hasParityData)
Sets whether this client has data parity.
|
void |
setProtocol(ProtocolType protocol)
Sets the protocol type of this client.
|
void |
setVirtual(boolean isVirtual)
Sets whether this client is virtual.
|
org.json.JSONObject |
toJSONObject()
Converts this client to its JSON representation.
|
String |
toString()
Gets the String representation of this client
|
public NOCClient()
public NOCClient(NOCClient nc)
nc - The NOC client to copy.public NOCClient(org.json.JSONObject json)
json - The JSON client description.public void checkUnsupportedFields(org.json.JSONObject json)
json - The JSON client description to check.public org.json.JSONObject toJSONObject()
public boolean isFabricClient()
public void addConnection(NOCConnection np)
np - The connection to add.public List<NOCConnection> getConnections()
public void removeConnection(NOCConnection np)
np - The connection to remove.public void setLocation(String location)
location - The site of the client to setpublic String getLocation()
public void setDestID(int destID)
destID - The destination ID to set.public int getDestID()
public String getName()
public boolean isDDRC()
public void setName(String name)
name - The client name to set.public List<String> getExternalConnections()
public void addExternalConnection(String s)
s - The external connection name to add.public void setParityAddr(boolean hasParityAddr)
hasParityAddr - True if this client has address parity, false otherwise.public boolean hasParityAddr()
public void setParityData(boolean hasParityData)
hasParityData - True if this client has data parity, false otherwise.public boolean hasParityData()
public void setVirtual(boolean isVirtual)
isVirtual - True if this client is virtual, false otherwise.public boolean isVirtual()
public void setAxiDataWidth(int axiDataWidth)
axiDataWidth - The AXI data width to set.public int getAxiDataWidth()
public void setComponentType(ComponentType compType)
compType - The component type to set.public ComponentType getComponentType()
public void setProtocol(ProtocolType protocol)
protocol - The protocol type to set.public ProtocolType getProtocol()
public Map<String,String> getSimMetaData()
public String toString()
toString in class Object