Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
3b685813
Commit
3b685813
authored
10 years ago
by
Ludovic Apvrille
Browse files
Options
Downloads
Patches
Plain Diff
Resolving bug on diplo simulation options
parent
51bd5d09
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modeling/SmartCardProtocol.xml
+2969
-2969
2969 additions, 2969 deletions
modeling/SmartCardProtocol.xml
src/ui/window/JDialogSystemCGeneration.java
+35
-16
35 additions, 16 deletions
src/ui/window/JDialogSystemCGeneration.java
with
3004 additions
and
2985 deletions
modeling/SmartCardProtocol.xml
+
2969
−
2969
View file @
3b685813
This diff is collapsed.
Click to expand it.
src/ui/window/JDialogSystemCGeneration.java
+
35
−
16
View file @
3b685813
...
...
@@ -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
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment