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

Resolving bug on diplo simulation options

parent 51bd5d09
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -914,32 +914,52 @@ public class JDialogSystemCGeneration extends javax.swing.JDialog implements Act
}
}
public void executeSimulation() throws InterruptedException {
if (hasError) {
jta.append("Simulation not executed: error");
return;
}
int toDo = automatic;
if (toDo == 0) {
if (exe.isSelected()) {
toDo = ONE_TRACE;
} else if (exeint.isSelected()) {
toDo = ANIMATION;
} else {
toDo = FORMAL_VERIFICATION;
}
}
String cmd;
if (automatic > 0) {
switch(automatic) {
case MANUAL:
}
} else {
switch(toDo) {
case ONE_TRACE:
executeSimulationCmd(exe2.getText(), "Generating one simulation trace");
break;
case ANIMATION:
dispose();
mgui.interactiveSimulationSystemC(getPathInteractiveExecute());
break;
case FORMAL_VERIFICATION:
executeSimulationCmd(exe2formal.getText(), "Running formal verification");
break;
}
if (interactiveSimulationSelected) {
dispose();
mgui.interactiveSimulationSystemC(getPathInteractiveExecute());
} else {
}
public void executeSimulationCmd(String cmd, String text) throws InterruptedException {
try {
cmd = exe2.getText();
jta.append("Executing SystemC code with command: \n" + cmd + "\n");
jta.append(text + " with command: \n" + cmd + "\n");
rshc = new RshClient(hostSystemC);
// It assumes that data are on the remote host
......@@ -958,9 +978,8 @@ public class JDialogSystemCGeneration extends javax.swing.JDialog implements Act
setButtons();
return;
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment