Commit 5039ed6d authored by Le Van Truong's avatar Le Van Truong

add Delay transaction to simulation double click event

parent cbdba69e
......@@ -92,6 +92,9 @@ TMLCommand* TMLDelayCommand::prepareNextTransaction(){
std::string TMLDelayCommand::toString() const{
std::ostringstream outp;
outp << "Delay in " << TMLCommand::toString();
if(_isActiveDelay)
outp << "Delay in " << TMLCommand::toString();
else
outp << "IdleDL in " << TMLCommand::toString();
return outp.str();
}
......@@ -1787,6 +1787,12 @@ public class JFrameInteractiveSimulation extends JFrame implements ActionListene
simtraces.add(trace);
}
}
else if (command.contains("Delay")){
String trace="time="+tran.endTime+ " block=" + tran.taskName + " type=state_entering state=delay" + tran.length;
if (!simtraces.contains(trace)){
simtraces.add(trace);
}
}
else {
//TraceManager.addDev("UNHANDLED COMMAND " + tran.command + " " + tran.deviceName + " " + tran.nodeType);
}
......
......@@ -655,6 +655,10 @@ public class JDialogCPUNode extends JDialogBase implements ActionListener {
g.setColor(ColorManager.TML_PORT_REQUEST);
commandName="REQ";
}
else if (tran.command.contains("Delay")){
g.setColor(ColorManager.TML_PORT_CHANNEL);
commandName="DL";
}
else {
commandName="EX";
g.setColor(ColorManager.EXEC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment