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
f7899e37
Commit
f7899e37
authored
7 years ago
by
Letitia Li
Browse files
Options
Downloads
Patches
Plain Diff
HSM Generation fix
parent
6a11fcdd
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/dseengine/DSEConfiguration.java
+8
-5
8 additions, 5 deletions
src/dseengine/DSEConfiguration.java
src/tmltranslator/TMLMapping.java
+16
-9
16 additions, 9 deletions
src/tmltranslator/TMLMapping.java
src/ui/GTURTLEModeling.java
+9134
-8940
9134 additions, 8940 deletions
src/ui/GTURTLEModeling.java
with
9158 additions
and
8954 deletions
src/dseengine/DSEConfiguration.java
+
8
−
5
View file @
f7899e37
...
@@ -1450,7 +1450,9 @@ public class DSEConfiguration implements Runnable {
...
@@ -1450,7 +1450,9 @@ public class DSEConfiguration implements Runnable {
x
=
10
;
x
=
10
;
for
(
HwNode
node:
hwnodes
){
for
(
HwNode
node:
hwnodes
){
if
(
node
instanceof
HwBus
){
if
(
node
instanceof
HwBus
){
HwBus
hwbus
=
(
HwBus
)
node
;
TMLArchiBUSNode
bus
=
new
TMLArchiBUSNode
(
x
,
y
,
ap
.
getMinX
(),
ap
.
getMaxX
(),
ap
.
getMinY
(),
ap
.
getMaxY
(),
false
,
null
,
ap
);
TMLArchiBUSNode
bus
=
new
TMLArchiBUSNode
(
x
,
y
,
ap
.
getMinX
(),
ap
.
getMaxX
(),
ap
.
getMinY
(),
ap
.
getMaxY
(),
false
,
null
,
ap
);
bus
.
setPrivacy
(
hwbus
.
privacy
);
x
+=
300
;
x
+=
300
;
bus
.
setName
(
node
.
getName
());
bus
.
setName
(
node
.
getName
());
ap
.
addComponent
(
bus
,
x
,
y
,
false
,
true
);
ap
.
addComponent
(
bus
,
x
,
y
,
false
,
true
);
...
@@ -1620,14 +1622,15 @@ public class DSEConfiguration implements Runnable {
...
@@ -1620,14 +1622,15 @@ public class DSEConfiguration implements Runnable {
private
void
addMemories
(
Vector
<
TMLMapping
>
maps
){
private
void
addMemories
(
Vector
<
TMLMapping
>
maps
){
for
(
TMLMapping
map:
maps
){
for
(
TMLMapping
map:
maps
){
TMLArchitecture
arch
=
map
.
getArch
();
TMLArchitecture
arch
=
map
.
getArch
();
ArrayList
<
HwExecutionNode
>
nodes
=
map
.
getNodes
();
ArrayList
<
HwNode
>
nodes
=
arch
.
getCPUs
();
for
(
HwExecutionNode
node:
nodes
){
for
(
HwNode
node:
nodes
){
HwBus
bus
=
new
HwMemory
(
"bus "
+
node
.
getName
());
HwBus
bus
=
new
HwBus
(
"bus "
+
node
.
getName
());
bus
.
privacy
=
1
;
HwMemory
mem
=
new
HwMemory
(
"memory "
+
node
.
getName
());
HwMemory
mem
=
new
HwMemory
(
"memory "
+
node
.
getName
());
HwLink
hwlink
=
new
HwLink
(
"link_memory"
+
node
.
getName
()
+
"_to_memorybus);
HwLink
hwlink
=
new
HwLink
(
"link_memory"
+
node
.
getName
()
+
"_to_memorybus
"
);
hwlink
.
bus
=
bus
;
hwlink
.
bus
=
bus
;
hwlink
.
hwnode
=
node
;
hwlink
.
hwnode
=
node
;
HwLink hwlink2 = new HwLink("
link_
" +node.getName() + "
_to_memorybus
);
HwLink
hwlink2
=
new
HwLink
(
"link_"
+
node
.
getName
()
+
"_to_memorybus
"
);
hwlink2
.
bus
=
bus
;
hwlink2
.
bus
=
bus
;
hwlink2
.
hwnode
=
mem
;
hwlink2
.
hwnode
=
mem
;
arch
.
addHwNode
(
mem
);
arch
.
addHwNode
(
mem
);
...
...
This diff is collapsed.
Click to expand it.
src/tmltranslator/TMLMapping.java
+
16
−
9
View file @
f7899e37
...
@@ -56,8 +56,6 @@ public class TMLMapping {
...
@@ -56,8 +56,6 @@ public class TMLMapping {
private
TMLModeling
tmlm
;
private
TMLModeling
tmlm
;
private
TMLArchitecture
tmla
;
private
TMLArchitecture
tmla
;
private
TMLCP
tmlcp
;
private
TMLCP
tmlcp
;
public
List
<
String
>
securityPatterns
=
new
ArrayList
<
String
>();
private
ArrayList
<
HwExecutionNode
>
onnodes
;
private
ArrayList
<
HwExecutionNode
>
onnodes
;
private
ArrayList
<
TMLTask
>
mappedtasks
;
private
ArrayList
<
TMLTask
>
mappedtasks
;
private
ArrayList
<
HwCommunicationNode
>
oncommnodes
;
private
ArrayList
<
HwCommunicationNode
>
oncommnodes
;
...
@@ -111,14 +109,23 @@ public List<String> securityPatterns = new ArrayList<String>();
...
@@ -111,14 +109,23 @@ public List<String> securityPatterns = new ArrayList<String>();
}
}
public
ArrayList
<
SecurityPattern
>
getMappedPatterns
(
HwMemory
mem
){
public
ArrayList
<
SecurityPattern
>
getMappedPatterns
(
HwMemory
mem
){
ArrayList
<
SecurityPattern
>
l
=
new
ArrayList
<
SecurityPattern
>();
ArrayList
<
SecurityPattern
>
l
=
new
ArrayList
<
SecurityPattern
>();
for
(
SecurityPattern
sp:
mappedSecurity
.
keySet
()){
for
(
SecurityPattern
sp:
mappedSecurity
.
keySet
()){
if
(
mappedSecurity
.
get
(
sp
).
contains
(
mem
)){
if
(
mappedSecurity
.
get
(
sp
).
contains
(
mem
)){
l
.
add
(
sp
);
l
.
add
(
sp
);
}
}
}
}
return
l
;
return
l
;
}
}
public
SecurityPattern
getSecurityPatternByName
(
String
name
){
for
(
SecurityPattern
sp:
tmlm
.
secPatterns
){
if
(
sp
.
name
.
equals
(
name
)){
return
sp
;
}
}
return
null
;
}
public
void
makeMinimumMapping
()
{
public
void
makeMinimumMapping
()
{
HwCPU
cpu
;
HwCPU
cpu
;
HwMemory
mem
;
HwMemory
mem
;
...
...
This diff is collapsed.
Click to expand it.
src/ui/GTURTLEModeling.java
+
9134
−
8940
View file @
f7899e37
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