public class NOCDesign
extends Object
implements Serializable
| Constructor and Description |
|---|
NOCDesign()
Creates an empty NOC design.
|
NOCDesign(Design d)
Creates a NOC design associated with a RapidWright design.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClient(NOCClient nc)
Adds a NOC client to this design.
|
void |
addConnection(NOCConnection np)
Adds a NOC connection to this design.
|
boolean |
areDestIDsLocked()
Checks whether all destination IDs are locked.
|
void |
clearSolution()
Clears the NOC solution if it exists.
|
NOCClient |
copyClient(NOCClient orig,
String name)
Copy a client from another NOCDesign into this NOCDesign under a new name.
|
List<NOCConnection> |
getAllConnections()
Gets all the connections that are part of this NOC design.
|
Map<String,NOCClient> |
getClients()
Gets all NOC clients part of this NOC design.
|
Design |
getDesign()
Gets the main design corresponding to this NOCDesign
|
List<String> |
getDFXCells()
Gets DFX cell paths in this NOC design.
|
int |
getFrequency()
Gets the target frequency of this NOC design.
|
Map<String,NOCMaster> |
getMasterClients()
Gets the map of master clients in the NOC design.
|
Map<String,NOCSlave> |
getSlaveClients()
Gets the map of slave clients in the NOC design.
|
SolutionType |
getSolutionType()
Gets the current NOC solution type.
|
boolean |
isRouted()
Checks if the NOC design is routed.
|
void |
loadSolution(InputStream in)
Loads NOC solution data from a JSON input stream.
|
void |
loadTraffic(InputStream in)
Loads NOC traffic data from a JSON input stream.
|
void |
removeClient(String clientName)
Removes a NOC client from this design by name.
|
void |
removeConnection(NOCConnection np)
Removes a NOC connection from this design.
|
void |
setAllDestIDsLocked(boolean lockAllDestIDs)
Sets whether all destination IDs are locked.
|
void |
setDesign(Design design)
Sets the main design corresponding to this NOCDesign
|
void |
setFrequency(int nocFrequency)
Sets the target NOC frequency.
|
void |
setIsRouted(boolean isRouted)
Sets whether this NOC design has routed solution data.
|
void |
setSolutionType(SolutionType solutionType)
Sets the current NOC solution type.
|
void |
writeSolution(OutputStream out)
Writes NOC solution data to a JSON output stream.
|
void |
writeTraffic(OutputStream out)
Writes NOC traffic data to a JSON output stream.
|
public NOCDesign()
public NOCDesign(Design d)
d - The RapidWright design to associate with this NOC design.public void setDesign(Design design)
design - The design to which this NOC solution belongspublic Design getDesign()
public Map<String,NOCMaster> getMasterClients()
public Map<String,NOCSlave> getSlaveClients()
public void setFrequency(int nocFrequency)
nocFrequency - The target NOC frequency to set.public int getFrequency()
public boolean areDestIDsLocked()
public void setAllDestIDsLocked(boolean lockAllDestIDs)
lockAllDestIDs - True to lock all destination IDs, false otherwise.public SolutionType getSolutionType()
public void setSolutionType(SolutionType solutionType)
solutionType - The solution type to set.public void clearSolution()
public boolean isRouted()
public void setIsRouted(boolean isRouted)
isRouted - True if the NOC design is routed, false otherwise.public List<String> getDFXCells()
public NOCClient copyClient(NOCClient orig, String name)
orig - The original NOC client to copy.name - The name for the copied client.public void addClient(NOCClient nc)
nc - The NOC client to add.public void removeClient(String clientName)
clientName - The name of the client to remove.public void addConnection(NOCConnection np)
np - The NOC connection to add.public void removeConnection(NOCConnection np)
np - The NOC connection to remove.public List<NOCConnection> getAllConnections()
public Map<String,NOCClient> getClients()
public void loadTraffic(InputStream in)
in - The input stream containing NOC traffic JSON data.public void loadSolution(InputStream in)
in - The input stream containing NOC solution JSON data.public void writeTraffic(OutputStream out)
out - The output stream to write NOC traffic JSON data to.public void writeSolution(OutputStream out)
out - The output stream to write NOC solution JSON data to.