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
a98cda0c
Commit
a98cda0c
authored
9 years ago
by
Andrea Enrici
Browse files
Options
Downloads
Patches
Plain Diff
added separated tabs for CPU parameters: one for simulation and one for code generation
parent
a6754f0a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ui/window/JDialogCPUNode.java
+13
-3
13 additions, 3 deletions
src/ui/window/JDialogCPUNode.java
with
13 additions
and
3 deletions
src/ui/window/JDialogCPUNode.java
+
13
−
3
View file @
a98cda0c
...
...
@@ -76,6 +76,9 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
protected
JTextField
sliceTime
,
nbOfCores
,
byteDataSize
,
pipelineSize
,
goIdleTime
,
maxConsecutiveIdleCycles
,
taskSwitchingTime
,
branchingPredictionPenalty
,
cacheMiss
,
clockRatio
,
execiTime
,
execcTime
;
protected
JComboBox
schedulingPolicy
,
MECTypeCB
,
encryption
;
// Tabbed pane for panel1 and panel2
private
JTabbedPane
tabbedPane
;
// Main Panel
private
JButton
closeButton
;
private
JButton
cancelButton
;
...
...
@@ -115,6 +118,8 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
panel2
.
setLayout
(
gridbag2
);
panel2
.
setBorder
(
new
javax
.
swing
.
border
.
TitledBorder
(
"CPU attributes"
));
panel2
.
setPreferredSize
(
new
Dimension
(
400
,
300
));
tabbedPane
=
new
JTabbedPane
();
c2
.
gridwidth
=
1
;
c2
.
gridheight
=
1
;
...
...
@@ -230,7 +235,7 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
c4.gridwidth = 1;
c4.fill = GridBagConstraints.HORIZONTAL;
c4.anchor = GridBagConstraints.CENTER;*/
panel4
.
add
(
new
JLabel
(
"Encryption"
),
c4
);
panel4
.
add
(
new
JLabel
(
"Encryption
:
"
),
c4
);
c4
.
gridwidth
=
GridBagConstraints
.
REMAINDER
;
encryption
=
new
JComboBox
();
encryption
.
addItem
(
"None"
);
...
...
@@ -250,6 +255,10 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
}
MECTypeCB
.
addActionListener
(
this
);
panel4
.
add
(
MECTypeCB
,
c4
);
tabbedPane
.
addTab
(
"Simulation"
,
panel2
);
tabbedPane
.
addTab
(
"Code generation"
,
panel4
);
tabbedPane
.
setSelectedIndex
(
0
);
// main panel;
c0
.
gridheight
=
10
;
...
...
@@ -257,8 +266,9 @@ public class JDialogCPUNode extends javax.swing.JDialog implements ActionListene
c0
.
weightx
=
1.0
;
c0
.
gridwidth
=
GridBagConstraints
.
REMAINDER
;
//end row
c0
.
fill
=
GridBagConstraints
.
BOTH
;
c
.
add
(
panel2
,
c0
);
c
.
add
(
panel4
,
c0
);
/*c.add(panel2, c0);
c.add(panel4, c0);*/
c
.
add
(
tabbedPane
,
c0
);
c0
.
gridwidth
=
1
;
c0
.
gridheight
=
1
;
...
...
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