Commit 5bfcc6f9 authored by Le Van Truong's avatar Le Van Truong

add delay trans to interactive simulation trace

parent 5039ed6d
......@@ -92,9 +92,18 @@ TMLCommand* TMLDelayCommand::prepareNextTransaction(){
std::string TMLDelayCommand::toString() const{
std::ostringstream outp;
if(_isActiveDelay)
outp << "Delay in " << TMLCommand::toString();
else
outp << "IdleDL in " << TMLCommand::toString();
return outp.str();
if(_isActiveDelay)
outp << ": Delay in " << TMLCommand::toString();
else
outp << ": IdleDL in " << TMLCommand::toString();
return outp.str();
}
std::string TMLDelayCommand::toShortString() const{
std::ostringstream outp;
if(_isActiveDelay)
outp << _task->toString() << ": Delay in " << TMLCommand::toString();
else
outp << _task->toString() << ": IdleDL in " << TMLCommand::toString();
return outp.str();
}
......@@ -63,8 +63,8 @@ public:
void execute();
//TMLTask* getDependentTask() const;
std::string toString() const;
inline std::string toShortString() const {return "Delay";}
inline std::string getCommandStr() const {return "act";}
std::string toShortString() const;
inline std::string getCommandStr() const {return "DL";}
protected:
///Member function pointer to the action function
ActionFuncPointer _actionFunc;
......
......@@ -659,10 +659,13 @@ public class JDialogCPUNode extends JDialogBase implements ActionListener {
g.setColor(ColorManager.TML_PORT_CHANNEL);
commandName="DL";
}
else {
else if (tran.command.contains("Execi")){
commandName="EX";
g.setColor(ColorManager.EXEC);
}
else {
continue;
}
int start = 30*tranList.indexOf(tran)+70;
g.fillRect(start, i*50+40, 30, 20);
g.setColor(Color.black);
......
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