public class NoCarchitecture
extends java.lang.Object
Constructor and Description |
---|
NoCarchitecture()
Constructs a NoC architecture including the routing strategy, the optical
router architecture and the network topology.
|
NoCarchitecture(javax.swing.JTextArea textArea)
Constructs a NoC architecture including the routing strategy, the optical
router architecture and the network topology.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkNoCsize(Application app)
Checks the size of the NoC in terms of number of tiles and compares it
with the number of cores of the application
|
java.lang.String |
crosstalkToString() |
double |
getCrosstalk(int src,
int dst,
int src_noise,
int dst_noise) |
double |
getPowerLoss(int src,
int dst) |
java.lang.String |
getReadableRepresentation() |
Router |
getRouter() |
Routing |
getRouting() |
Topology |
getTopology() |
boolean[][][][] |
getValidCommunications() |
java.lang.String |
isValidToString() |
java.lang.String |
lossToString() |
void |
print()
Prints formatted representations of the NoC architecture and its main
features to a text-output stream.
|
void |
printCrosstalk()
Prints formatted representations of the crosstalk matrix to a text-output
stream.
|
void |
printIsValid()
Prints formatted representations of the valid communication matrix matrix
to a text-output stream.
|
void |
printLoss()
Prints formatted representations of the power loss matrix to a
text-output stream.
|
void |
setValidCommunications()
Sets up the valid communications data structure.
|
public NoCarchitecture()
public NoCarchitecture(javax.swing.JTextArea textArea)
textArea
- textArea the multi-line area used in the GUI to displays the
information about the architecture configuration loading.public void setValidCommunications()
public boolean checkNoCsize(Application app)
app
- The applicationtrue
if the number of cores is greater than the number of tiles;
false
otherwisepublic java.lang.String getReadableRepresentation()
public void print()
public java.lang.String isValidToString()
public java.lang.String lossToString()
public java.lang.String crosstalkToString()
public void printIsValid()
public void printLoss()
public void printCrosstalk()
public Topology getTopology()
public Routing getRouting()
public Router getRouter()
public boolean[][][][] getValidCommunications()
public double getPowerLoss(int src, int dst)
src
- The source tiledst
- The destination tilepublic double getCrosstalk(int src, int dst, int src_noise, int dst_noise)
src
- The source tiledst
- The destination tilesrc_noise
- The source of the signal generating crosstalkdst_noise
- The destination of the signal generating crosstalk