Skip to content
Snippets Groups Projects
Commit db9f1119 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

DIPLODOCUS: Crossbar type added

parent bf4199ed
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ public class HwBus extends HwCommunicationNode { ...@@ -53,6 +53,7 @@ public class HwBus extends HwCommunicationNode {
public static final int BASIC_ROUND_ROBIN = 0; public static final int BASIC_ROUND_ROBIN = 0;
public static final int PRIORITY_BASED = 1; public static final int PRIORITY_BASED = 1;
public static final int CAN = 2; public static final int CAN = 2;
public static final int CROSSBAR = 3;
public static final int DEFAULT_BYTE_DATA_SIZE = 4; public static final int DEFAULT_BYTE_DATA_SIZE = 4;
public static final int DEFAULT_PIPELINE_SIZE = 1; public static final int DEFAULT_PIPELINE_SIZE = 1;
......
...@@ -212,6 +212,10 @@ public class TMLArchiBUSNode extends TMLArchiCommunicationNode implements Swallo ...@@ -212,6 +212,10 @@ public class TMLArchiBUSNode extends TMLArchiCommunicationNode implements Swallo
stereotype = "BUS-CAN"; stereotype = "BUS-CAN";
} }
if (arbitrationPolicy == HwBus.CROSSBAR) {
stereotype = "CROSSBAR";
}
if (dialog.getByteDataSize().length() != 0) { if (dialog.getByteDataSize().length() != 0) {
try { try {
tmp = byteDataSize; tmp = byteDataSize;
......
...@@ -136,6 +136,7 @@ public class JDialogBUSNode extends javax.swing.JDialog implements ActionListene ...@@ -136,6 +136,7 @@ public class JDialogBUSNode extends javax.swing.JDialog implements ActionListene
arbitrationPolicy.addItem("Round Robin"); arbitrationPolicy.addItem("Round Robin");
arbitrationPolicy.addItem("Priority Based"); arbitrationPolicy.addItem("Priority Based");
arbitrationPolicy.addItem("CAN"); arbitrationPolicy.addItem("CAN");
arbitrationPolicy.addItem("Crossbar");
arbitrationPolicy.setSelectedIndex(node.getArbitrationPolicy()); arbitrationPolicy.setSelectedIndex(node.getArbitrationPolicy());
panel2.add(arbitrationPolicy, c2); panel2.add(arbitrationPolicy, c2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment