Skip to content
Snippets Groups Projects
Commit 04e450b0 authored by Letitia Li's avatar Letitia Li
Browse files

CPU encryption

parent 8f3d9c62
No related branches found
No related tags found
No related merge requests found
......@@ -397,7 +397,7 @@ public class TMLArchiCPUNode extends TMLArchiNode implements SwallowTGComponent,
errors += "Clock ratio ";
}
}
//encryption = dialog.getEncryption();
encryption = dialog.getEncryption();
if (error) {
JOptionPane.showMessageDialog(frame,
"Invalid value for the following attributes: " + errors,
......@@ -477,7 +477,8 @@ public class TMLArchiCPUNode extends TMLArchiNode implements SwallowTGComponent,
sb.append(" execiTime=\"" + execiTime + "\"");
sb.append(" execcTime=\"" + execcTime + "\"");
sb.append(" clockRatio=\"" + clockRatio + "\"");
sb.append(" MECType=\"" + MECType.getIndex() + "\"");
sb.append(" MECType=\"" + MECType.getIndex() + "\"");
sb.append(" encryption=\"" + encryption + "\"");
sb.append("/>\n");
sb.append("</extraparam>\n");
return new String(sb);
......@@ -552,6 +553,9 @@ public class TMLArchiCPUNode extends TMLArchiNode implements SwallowTGComponent,
if ((elt.getAttribute("sliceTime") != null) && (elt.getAttribute("sliceTime").length() > 0)){
sliceTime = Integer.decode(elt.getAttribute("sliceTime")).intValue();
}
if ((elt.getAttribute("encryption") != null) && (elt.getAttribute("encryption").length() > 0)){
encryption = Integer.decode(elt.getAttribute("encryption")).intValue();
}
}
}
}
......@@ -634,7 +638,8 @@ public class TMLArchiCPUNode extends TMLArchiNode implements SwallowTGComponent,
attr += "Branch. pred. misrate (in %) = " + branchingPredictionPenalty + "\n";
attr += "Cache miss (in %) = " + cacheMiss + "\n";
attr += "Clock ratio = " + clockRatio + "\n";
attr += "MECType = " + MECType.getIndex() + "\n";
attr += "MECType = " + MECType.getIndex() + "\n";
attr += "encryption = " + encryption+ "\n";
return attr;
}
......
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