diff --git a/simulators/c++2/src_simulator/app/TMLDelayCommand.cpp b/simulators/c++2/src_simulator/app/TMLDelayCommand.cpp index 1da3a61c7634dddcb2892140be5002f717404772..b5b4b59aa58d7b103aff03d89ceaa454363e5aa8 100755 --- a/simulators/c++2/src_simulator/app/TMLDelayCommand.cpp +++ b/simulators/c++2/src_simulator/app/TMLDelayCommand.cpp @@ -43,9 +43,13 @@ Ludovic Apvrille, Renaud Pacalet #include <TMLTransaction.h> #include <SimComponents.h> //#include <CommandListener.h> - -TMLDelayCommand::TMLDelayCommand(ID iID, TMLTask* iTask,TMLLength iStatLength, ActionFuncPointer iActionFunc, const char* iLiveVarList, bool iCheckpoint):TMLCommand(iID, iTask, 1, 1, iLiveVarList, iCheckpoint),_actionFunc(iActionFunc){ - _length = iStatLength; +TMLDelayCommand::TMLDelayCommand(ID iID, TMLTask* iTask,TMLLength iStatLength, ActionFuncPointer iActionFunc, const char* iLiveVarList, bool iCheckpoint, bool isActiveDelay):TMLCommand(iID, iTask, 1, 1, iLiveVarList, iCheckpoint),_actionFunc(iActionFunc){ + if (!isActiveDelay){ + _isActiveDelay = false; + }else { + _length = iStatLength; + _isActiveDelay = true; + } _type=ACT; } void TMLDelayCommand::execute(){ @@ -62,28 +66,46 @@ TMLCommand* TMLDelayCommand::prepareNextTransaction(){ _task->setCurrCommand(this); return this; //for command which generates transactions this is returned anyway by prepareTransaction } + if(_isActiveDelay){ + if (_progress==0){ + (_task->*_actionFunc)(); + _execTimes++; + if (_length==0){ + //std::cout << "ExeciCommand len==0 " << std::endl; + TMLCommand* aNextCommand=getNextCommand(); + #ifdef STATE_HASH_ENABLED + if (_liveVarList!=0) _task->refreshStateHash(_liveVarList); + #endif + _task->setCurrCommand(aNextCommand); + //FOR_EACH_CMDLISTENER (*i)->commandFinished(this); + #ifdef LISTENERS_ENABLED + NOTIFY_CMD_FINISHED(this); + //NOTIFY_CMD_FINISHED(0); + #endif + if (aNextCommand!=0) return aNextCommand->prepare(false); + } + } - if (_progress==0){ - (_task->*_actionFunc)(); - _execTimes++; - if (_length==0){ - //std::cout << "ExeciCommand len==0 " << std::endl; - TMLCommand* aNextCommand=getNextCommand(); - #ifdef STATE_HASH_ENABLED - if (_liveVarList!=0) _task->refreshStateHash(_liveVarList); - #endif - _task->setCurrCommand(aNextCommand); - //FOR_EACH_CMDLISTENER (*i)->commandFinished(this); - #ifdef LISTENERS_ENABLED - NOTIFY_CMD_FINISHED(this); - //NOTIFY_CMD_FINISHED(0); - #endif - if (aNextCommand!=0) return aNextCommand->prepare(false); - } - } - - _currTransaction = new TMLTransaction(this, _length-_progress,_task->getEndLastTransaction()); - return this; + _currTransaction = new TMLTransaction(this, _length-_progress,_task->getEndLastTransaction()); + return this; + } + else { + TMLCommand* aNextCommand=getNextCommand(); + (_task->*_actionFunc)(); + _execTimes++; + #ifdef STATE_HASH_ENABLED + if (_liveVarList!=0) _task->refreshStateHash(_liveVarList); + #endif + _task->setCurrCommand(aNextCommand); + //FOR_EACH_CMDLISTENER (*i)->commandFinished(this); + #ifdef LISTENERS_ENABLED + NOTIFY_CMD_FINISHED(this); + //NOTIFY_CMD_FINISHED(0); + #endif + if (aNextCommand!=0) return aNextCommand->prepare(false); + return 0; + } +// return 0; } std::string TMLDelayCommand::toString() const{ diff --git a/simulators/c++2/src_simulator/app/TMLDelayCommand.h b/simulators/c++2/src_simulator/app/TMLDelayCommand.h index e5cfa4fa2b25d41a437924836014ea635b30dc5f..842aadbb2bafcfa96fb6350b829f2bbf294991f2 100755 --- a/simulators/c++2/src_simulator/app/TMLDelayCommand.h +++ b/simulators/c++2/src_simulator/app/TMLDelayCommand.h @@ -56,7 +56,8 @@ public: \param iLiveVarList Bitmap of live variables \param iCheckpoint Checkpoint Flag */ - TMLDelayCommand(ID iID, TMLTask* iTask, TMLLength iStatLength, ActionFuncPointer iActionFunc, const char* iLiveVarList, bool iCheckpoint); + bool _isActiveDelay; + TMLDelayCommand(ID iID, TMLTask* iTask, TMLLength iStatLength, ActionFuncPointer iActionFunc, const char* iLiveVarList, bool iCheckpoint, bool isActiveDelay); void execute(); //TMLTask* getDependentTask() const; std::string toString() const; diff --git a/src/main/java/tmltranslator/TMLActivityElementWithIntervalAction.java b/src/main/java/tmltranslator/TMLActivityElementWithIntervalAction.java index b948d772e96ae823a0405d6cdd9be16d3d046fb8..b2347ee0a4b3e1a4de848d6201669a0beb612b77 100755 --- a/src/main/java/tmltranslator/TMLActivityElementWithIntervalAction.java +++ b/src/main/java/tmltranslator/TMLActivityElementWithIntervalAction.java @@ -52,6 +52,7 @@ import java.util.Objects; */ public class TMLActivityElementWithIntervalAction extends TMLActivityElement { protected String minDelay, maxDelay; + protected boolean isActiveDelay = false; public TMLActivityElementWithIntervalAction(String _name, Object _referenceObject) { super(_name, _referenceObject); @@ -74,16 +75,20 @@ public class TMLActivityElementWithIntervalAction extends TMLActivityElement { } public String customExtraToXML() { - return " min=\"" + minDelay + "\" max=\"" + maxDelay + "\" "; + return " min=\"" + minDelay + "\" max=\"" + maxDelay + "\" " + "isActiveDelay=\"" + isActiveDelay + "\" "; } + public void setActiveDelay(boolean _b){ + isActiveDelay = _b;} + public boolean getActiveDelay(){return isActiveDelay;} public boolean equalSpec(Object o) { if (!(o instanceof TMLActivityElementWithIntervalAction)) return false; if (!super.equalSpec(o)) return false; TMLActivityElementWithIntervalAction tmlAEIAction = (TMLActivityElementWithIntervalAction) o; return Objects.equals(minDelay, tmlAEIAction.getMinDelay()) && - Objects.equals(maxDelay, tmlAEIAction.getMaxDelay()); + Objects.equals(maxDelay, tmlAEIAction.getMaxDelay()) && + Objects.equals(isActiveDelay, tmlAEIAction.getActiveDelay()); } diff --git a/src/main/java/tmltranslator/TMLModeling.java b/src/main/java/tmltranslator/TMLModeling.java index e0c939c2387912f6a7c81a84c0619254af5ca3e4..f658673242c3c17892b4edede324ce2f5a096f42 100755 --- a/src/main/java/tmltranslator/TMLModeling.java +++ b/src/main/java/tmltranslator/TMLModeling.java @@ -2138,7 +2138,7 @@ public class TMLModeling<E> { del1 = (TMLDelay)elt1; del0 = (TMLDelay)elt0; - if (del1.getUnit().equals(del0.getUnit())) { + if (del1.getUnit().equals(del0.getUnit()) && (del1.getActiveDelay() == del0.getActiveDelay())) { // We delete the second i.e. elt1 activity.removeElement(elt1); diff --git a/src/main/java/tmltranslator/TMLTextSpecification.java b/src/main/java/tmltranslator/TMLTextSpecification.java index 7d915caa9b0623f9fa9eebfc0fb65f3006677ba8..28b02dc593393515c9418779e7b05713880d7cec 100755 --- a/src/main/java/tmltranslator/TMLTextSpecification.java +++ b/src/main/java/tmltranslator/TMLTextSpecification.java @@ -432,9 +432,9 @@ public class TMLTextSpecification<E> { tmp1 = ((TMLDelay) elt).getMinDelay(); tmp2 = ((TMLDelay) elt).getMaxDelay(); if (tmp1.compareTo(tmp2) == 0) { - code = "DELAY" + SP + modifyString(((TMLDelay) elt).getMinDelay()) + SP + modifyString(((TMLDelay) elt).getUnit()) + CR; + code = "DELAY" + SP + modifyString(((TMLDelay) elt).getMinDelay()) + SP + modifyString(((TMLDelay) elt).getUnit()) + SP + "isActiveDelay" + SP + ((TMLDelay) elt).getActiveDelay() + CR; } else { - code = "DELAY" + SP + modifyString(((TMLDelay) elt).getMinDelay()) + SP + modifyString(((TMLDelay) elt).getMaxDelay()) + SP + modifyString(((TMLDelay) elt).getUnit()) + CR; + code = "DELAY" + SP + modifyString(((TMLDelay) elt).getMinDelay()) + SP + modifyString(((TMLDelay) elt).getMaxDelay()) + SP + modifyString(((TMLDelay) elt).getUnit()) + SP + "isActiveDelay" + SP + ((TMLDelay) elt).getActiveDelay() + CR; } return code + makeBehavior(task, elt.getNextElement(0)); @@ -2643,13 +2643,13 @@ public class TMLTextSpecification<E> { inTaskDec = false; // inTaskBehavior = true; - if ((_split.length < 3) || (_split.length > 5)) { - error = "A DELAY operation must be declared with 2 or 3 parameters, and not " + (_split.length - 1); + if ((_split.length < 3) || (_split.length > 6)) { + error = "A DELAY operation must be declared with 2, 3, 4 or 5 parameters, and not " + (_split.length - 1); addError(0, _lineNb, 0, error); return -1; } - if (_split.length == 3) { + if (_split.length == 3 || _split.length == 5) { if (!checkParameter("DELAY", _split, 2, 0, _lineNb)) { error = "A DELAY operation must be specified with a valid time unit (ns, us, ms, s))"; addError(0, _lineNb, 0, error); @@ -2657,7 +2657,7 @@ public class TMLTextSpecification<E> { } } - if (_split.length == 4) { + if (_split.length == 4 || _split.length == 6) { if (!checkParameter("DELAY", _split, 3, 0, _lineNb)) { error = "A DELAY operation must be specified with a valid time unit (ns, us, ms, s))"; addError(0, _lineNb, 0, error); @@ -2668,11 +2668,19 @@ public class TMLTextSpecification<E> { TMLDelay delay = new TMLDelay("delay", null); delay.setMinDelay(_split[1]); if (_split.length == 3) { + delay.setMaxDelay(_split[1]); + delay.setUnit(_split[2]); // DELAY min unit - this is for old format + } else if (_split.length == 4) { + delay.setMaxDelay(_split[2]); + delay.setUnit(_split[3]); // DELAY min max unit - this is for old format + } else if (_split.length == 5) { delay.setMaxDelay(_split[1]); delay.setUnit(_split[2]); + delay.setActiveDelay(Boolean.valueOf(_split[4])); // DELAY min unit isActivedelay boolean } else { delay.setMaxDelay(_split[2]); delay.setUnit(_split[3]); + delay.setActiveDelay(Boolean.valueOf(_split[5])); // DELAY min max unit isActivedelay boolean } diff --git a/src/main/java/tmltranslator/tomappingsystemc2/MappedSystemCTask.java b/src/main/java/tmltranslator/tomappingsystemc2/MappedSystemCTask.java index 0b68b8574f27e64f01af23471c798fac609c3a2e..d6f4f167f85ea9be3890d6f2240456dfdd73075c 100644 --- a/src/main/java/tmltranslator/tomappingsystemc2/MappedSystemCTask.java +++ b/src/main/java/tmltranslator/tomappingsystemc2/MappedSystemCTask.java @@ -557,12 +557,22 @@ public class MappedSystemCTask { comment = action; action += "\nif (tmpDelayxy==0) tmpDelayxy=1;\n"; if (delay.getMinDelay().equals(delay.getMaxDelay())) { - action += "_endLastTransaction+=0"; + if (!delay.getActiveDelay()){ + action += "_endLastTransaction+=tmpDelayxy"; // Take all delay totally idle for x units of time + } else { + action += "_endLastTransaction+=0"; //consumes cycles + } + delayLen = delay.getMaxDelay() + "*" + masterClockFreq + delay.getMasterClockFactor(); } else { action += "TMLTime tmpDelayxx = " + delay.getMinDelay() + "*" + masterClockFreq + delay.getMasterClockFactor() + ";\nif (tmpDelayxx==0) tmpDelayxx=1;\n"; - action += "_endLastTransaction+= 0"; - delayLen = delay.getMinDelay() + "*" + masterClockFreq + delay.getMasterClockFactor(); + if (!delay.getActiveDelay()){ + action += "_endLastTransaction+= myrand(tmpDelayxx,tmpDelayxy)"; // Take all delay totally idle for x units of time + } else { + action += "_endLastTransaction+=0"; //consumes cycles + } + java.util.Random r = new java.util.Random(); + delayLen = String.valueOf(r.nextInt(Integer.valueOf(delay.getMaxDelay())-Integer.valueOf(delay.getMinDelay())) + Integer.valueOf(delay.getMinDelay())) + "*" + masterClockFreq + delay.getMasterClockFactor(); } String elemName = currElem.getName(), idString; if (elemName.charAt(0) == '#') { @@ -575,7 +585,7 @@ public class MappedSystemCTask { idString = String.valueOf(currElem.getID()); } hcode += "TMLDelayCommand " + cmdName + SCCR; - initCommand += "," + cmdName + "(" + idString + ",this,"+ delayLen +",(ActionFuncPointer)&" + reference + "::" + cmdName + "_func, " + getFormattedLiveVarStr(currElem) + ")" + CR; + initCommand += "," + cmdName + "(" + idString + ",this,"+ delayLen +",(ActionFuncPointer)&" + reference + "::" + cmdName + "_func, " + getFormattedLiveVarStr(currElem) + ", " + delay.getActiveDelay() + ")" + CR; nextCommand = cmdName + ".setNextCommand(array(1,(TMLCommand*)" + makeCommands(currElem.getNextElement(0), false, retElement, null) + "));\n"; functions += "void " + reference + "::" + cmdName + "_func(){\n#ifdef ADD_COMMENTS\naddComment(new Comment(_endLastTransaction,0," + commentNum + "));\n#endif\n" + modifyString(addSemicolonIfNecessary(action)) + CR; //functions+="return 0"+ SCCR; diff --git a/src/main/java/ui/ActivityDiagram2TMLTranslator.java b/src/main/java/ui/ActivityDiagram2TMLTranslator.java index 61a42b01741c2f9e3980d1a077e3fc4de4fdd581..7ba7e9446ccb995fc29acb83d153e94a91596d29 100644 --- a/src/main/java/ui/ActivityDiagram2TMLTranslator.java +++ b/src/main/java/ui/ActivityDiagram2TMLTranslator.java @@ -291,6 +291,7 @@ public class ActivityDiagram2TMLTranslator { tmldelay.setMinDelay(modifyString(((TMLADDelay)tgc).getDelayValue())); tmldelay.setMaxDelay(modifyString(((TMLADDelay)tgc).getDelayValue())); tmldelay.setUnit(((TMLADDelay)tgc).getUnit()); + tmldelay.setActiveDelay(((TMLADDelay)tgc).getActiveDelayEnable()); activity.addElement(tmldelay); ((BasicErrorHighlight)tgc).setStateAction(ErrorHighlight.OK); corrTgElement.addCor(tmldelay, tgc); @@ -300,6 +301,7 @@ public class ActivityDiagram2TMLTranslator { tmldelay.setMinDelay(modifyString(((TMLADDelayInterval)tgc).getMinDelayValue())); tmldelay.setMaxDelay(modifyString(((TMLADDelayInterval)tgc).getMaxDelayValue())); tmldelay.setUnit(((TMLADDelayInterval)tgc).getUnit()); + tmldelay.setActiveDelay(((TMLADDelayInterval)tgc).getActiveDelayEnableValue()); activity.addElement(tmldelay); ((BasicErrorHighlight)tgc).setStateAction(ErrorHighlight.OK); corrTgElement.addCor(tmldelay, tgc); diff --git a/src/main/java/ui/TGCTimeDelay.java b/src/main/java/ui/TGCTimeDelay.java index 30d060411bf5e9d570ef7c0f4057e69c1fb68d25..2f423e842ac7a78e09c1e8c76392149fa76f7147 100644 --- a/src/main/java/ui/TGCTimeDelay.java +++ b/src/main/java/ui/TGCTimeDelay.java @@ -66,6 +66,7 @@ public class TGCTimeDelay extends TGCWithoutInternalComponent{ private String maxDelay = ""; private String unit = "ns"; // can be "ns" or "us" or "ms" or "s"; private boolean hasMaxDelay; + private boolean isActiveDelay; public TGCTimeDelay(int _x, int _y, int _minX, int _maxX, int _minY, int _maxY, boolean _pos, TGComponent _father, TDiagramPanel _tdp) { super(_x, _y, _minX, _maxX, _minY, _maxY, _pos, _father, _tdp); @@ -144,11 +145,13 @@ public class TGCTimeDelay extends TGCWithoutInternalComponent{ } array[0] = getMinDelay(); array[1] = getMaxDelay(); array[2] = getUnit(); - JDialogTimeIntervalUnit jdti = new JDialogTimeIntervalUnit(frame, array, hasMaxDelay, "Setting time parameters", ind, "max"); + JDialogTimeIntervalUnit jdti = new JDialogTimeIntervalUnit(getTDiagramPanel().getMainGUI(), frame, array, hasMaxDelay, isActiveDelay, + "Setting time parameters", ind, + "max"); //jdti.setSize(350, 250); GraphicLib.centerOnParent(jdti, 350, 250); jdti.setVisible( true ); // blocked until dialog has been closed - + isActiveDelay = jdti.isActiveDelay(); minDelay = array[0]; maxDelay = array[1]; unit = array[2]; if (hasMaxDelay) { @@ -180,6 +183,12 @@ public class TGCTimeDelay extends TGCWithoutInternalComponent{ public void setHasMaxValue(boolean b) { hasMaxDelay = b; } + public void setActiveDelay(boolean b) { + isActiveDelay = b; + } + public boolean getActiveDelay() { + return isActiveDelay; + } public void setMinDelay(String del) { minDelay = del; @@ -207,6 +216,8 @@ public class TGCTimeDelay extends TGCWithoutInternalComponent{ sb.append(getMaxDelay()); sb.append("\" hasMaxDelay=\""); sb.append(hasMaxDelay); + sb.append("\" isActiveDelay=\""); + sb.append(isActiveDelay); sb.append("\" unit=\""); sb.append(getUnit()); sb.append("\" />\n"); @@ -236,6 +247,9 @@ public class TGCTimeDelay extends TGCWithoutInternalComponent{ if (elt.getAttribute("hasMaxDelay") != null) { hasMaxDelay = elt.getAttribute("hasMaxDelay").compareTo("true") == 0; } + if (elt.getAttribute("isActiveDelay") != null) { + isActiveDelay = elt.getAttribute("isActiveDelay").compareTo("true") == 0; + } unit = elt.getAttribute("unit"); } } diff --git a/src/main/java/ui/tmlad/TMLADDelay.java b/src/main/java/ui/tmlad/TMLADDelay.java index 4a936c36df55a6a06b11f688590fb97b034b2eca..1ab0518c6b6571836b392046a0e70a2de55531d8 100755 --- a/src/main/java/ui/tmlad/TMLADDelay.java +++ b/src/main/java/ui/tmlad/TMLADDelay.java @@ -81,6 +81,7 @@ public class TMLADDelay extends TADComponentWithSubcomponents /* Issue #69 TGCWi tgc.setMinDelay("10"); tgc.setMaxDelay("nope"); tgc.setHasMaxValue(false); + tgc.setActiveDelay(false); tgc.setUnit("ms"); tgc.setName("value of the delay"); tgc.makeValue(); @@ -139,7 +140,8 @@ public class TMLADDelay extends TADComponentWithSubcomponents /* Issue #69 TGCWi public String getUnit() { return ((TGCTimeDelay)tgcomponent[0]).getUnit(); } - + + public boolean getActiveDelayEnable(){return ((TGCTimeDelay)tgcomponent[0]).getActiveDelay(); } @Override public int getType() { return TGComponentManager.TMLAD_DELAY; diff --git a/src/main/java/ui/tmlad/TMLADDelayInterval.java b/src/main/java/ui/tmlad/TMLADDelayInterval.java index d7234a843973ff198f44154178de647737fcf1da..8581ff199153b7053fcf12b4d345d89e1069fbd6 100755 --- a/src/main/java/ui/tmlad/TMLADDelayInterval.java +++ b/src/main/java/ui/tmlad/TMLADDelayInterval.java @@ -156,7 +156,9 @@ public class TMLADDelayInterval extends TADComponentWithSubcomponents /* Issue # public void setMaxValue(String val) { ((TGCTimeDelay)(tgcomponent[0])).setMaxDelay(val); } - + + public boolean getActiveDelayEnableValue(){return ((TGCTimeDelay)tgcomponent[0]).getActiveDelay(); } + @Override public int getType() { return TGComponentManager.TMLAD_INTERVAL_DELAY; diff --git a/src/main/java/ui/window/JDialogTimeIntervalUnit.java b/src/main/java/ui/window/JDialogTimeIntervalUnit.java index 1233d7eaf698b319965733d5fb0b810446719597..340520ee5f77ab67354f4dfd9abb99a23f841b47 100644 --- a/src/main/java/ui/window/JDialogTimeIntervalUnit.java +++ b/src/main/java/ui/window/JDialogTimeIntervalUnit.java @@ -41,6 +41,9 @@ package ui.window; +import help.HelpManager; +import ui.MainGUI; +import ui.TGHelpButton; import ui.util.IconManager; import javax.swing.*; @@ -59,15 +62,17 @@ public class JDialogTimeIntervalUnit extends JDialogBase implements ActionListen private String[] arrayDelay; private boolean hasMaxDelay; + private boolean isActiveDelay; private JPanel panel1; // Panel1 private JTextField text1, text2; private JComboBox<String> unit; - + private JCheckBox wait_delay; private String id1, id2; - + private MainGUI mgui; + public TGHelpButton myButton; /* Creates new form */ // arrayDelay: [0] -> minDelay ; [1] -> maxDelay public JDialogTimeIntervalUnit(Frame f, String[] _arrayDelay, boolean _hasMaxDelay, String title) { @@ -80,17 +85,26 @@ public class JDialogTimeIntervalUnit extends JDialogBase implements ActionListen pack(); } - public JDialogTimeIntervalUnit(Frame f, String[] _arrayDelay, boolean _hasMaxDelay, String title, String _id1, String _id2) { + public JDialogTimeIntervalUnit(MainGUI _mgui, Frame f, String[] _arrayDelay, boolean _hasMaxDelay, boolean _isActiveDelay, String title, + String _id1, + String _id2) { super(f, title, true); + mgui =_mgui; arrayDelay = _arrayDelay; hasMaxDelay = _hasMaxDelay; + isActiveDelay = _isActiveDelay; id1 = _id1; id2 = _id2; initComponents(); myInitComponents(); pack(); } + private void makeEndHelpButton(String helpWord, MainGUI mgui, HelpManager hm, JPanel panel, GridBagConstraints c) { + Icon myIcon = IconManager.imgic32; + myButton = new TGHelpButton(myIcon, helpWord, mgui, hm); + myButton.addToPanel(panel, c); + } private void myInitComponents() { } @@ -115,7 +129,7 @@ public class JDialogTimeIntervalUnit extends JDialogBase implements ActionListen panel1.setBorder(new javax.swing.border.TitledBorder("setting min and max delays")); } panel1.setPreferredSize(new Dimension(300, 150)); - + // first line panel1 c1.weighty = 1.0; c1.weightx = 1.0; @@ -123,7 +137,7 @@ public class JDialogTimeIntervalUnit extends JDialogBase implements ActionListen c1.fill = GridBagConstraints.BOTH; c1.gridheight = 1; panel1.add(new JLabel(" "), c1); - + // second line panel1 c1.gridwidth = 1; c1.gridheight = 1; @@ -166,7 +180,14 @@ public class JDialogTimeIntervalUnit extends JDialogBase implements ActionListen unit.addItem("s"); unit.setSelectedItem(arrayDelay[2]); panel1.add(unit, c1); - + c1.gridwidth = 1; + if ((id1 != null) && (id2 != null)){ + wait_delay = new JCheckBox("Active Delay"); + wait_delay.setSelected(isActiveDelay); + panel1.add(wait_delay,c1); + c1.gridwidth = GridBagConstraints.REMAINDER; //end row + makeEndHelpButton("activedelay.html", mgui, mgui.getHelpManager(), panel1, c1); + } // main panel; c0.gridwidth = 1; c0.gridheight = 10; @@ -182,7 +203,9 @@ public class JDialogTimeIntervalUnit extends JDialogBase implements ActionListen initButtons(c0, c, this); } - + public boolean isActiveDelay() { + return wait_delay.isSelected(); + } public void actionPerformed(ActionEvent evt) { String command = evt.getActionCommand(); diff --git a/src/main/resources/help/activedelay.html b/src/main/resources/help/activedelay.html new file mode 100644 index 0000000000000000000000000000000000000000..c9bc7cb511e7c9d5805a37941c1ab020e6b8902d --- /dev/null +++ b/src/main/resources/help/activedelay.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> +<head> + <meta charset="utf-8" /> + <meta name="generator" content="pandoc" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> + <title>TTool help</title> + <style> + code{white-space: pre-wrap;} + span.smallcaps{font-variant: small-caps;} + span.underline{text-decoration: underline;} + div.column{display: inline-block; vertical-align: top; width: 50%;} + </style> + <!--[if lt IE 9]> + <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> + <![endif]--> +</head> +<body> +<h1 id="active-delay">active delay</h1> +<p>The delay transaction “wait x†will consume x cycles when the box is checked, if not the task should be totally idle for x units of time.</p> +</body> +</html> diff --git a/src/main/resources/help/activedelay.md b/src/main/resources/help/activedelay.md new file mode 100644 index 0000000000000000000000000000000000000000..6be6c6d757e77d1dbb9fba3443c9bb118d9ac27c --- /dev/null +++ b/src/main/resources/help/activedelay.md @@ -0,0 +1,2 @@ +# active delay +The delay transaction "wait x" will consume x cycles when the box is checked, if not the task should be totally idle for x units of time. diff --git a/src/main/resources/help/helpTable.txt b/src/main/resources/help/helpTable.txt index 5293e8e4ba176593a9886fcca43d8c608d8c1763..fc5b294df9ac8c3bd06530801abdd86aad42e914 100644 --- a/src/main/resources/help/helpTable.txt +++ b/src/main/resources/help/helpTable.txt @@ -6,6 +6,7 @@ ----fork fork channel functional view diplodocus ----join join channel functional view diplodocus --- activitydiagram activity_diagram activity diagram function view tasks +----activedelay active_delay delay consumes cycles -- architecture architecture hardware os operating system --- cpu cpu processor cpu os ----cpuname cpu_name cpu name diff --git a/ttool/src/test/java/tmltranslator/DiplodocusDelayTest.java b/ttool/src/test/java/tmltranslator/DiplodocusDelayTest.java index f721dbbf3db454c8ff4c242eb51cf56a32bad9a4..4641bb3e15d17b28563b1234d23f359002083edf 100644 --- a/ttool/src/test/java/tmltranslator/DiplodocusDelayTest.java +++ b/ttool/src/test/java/tmltranslator/DiplodocusDelayTest.java @@ -9,6 +9,7 @@ import org.junit.BeforeClass; import org.junit.Test; import req.ebrdd.EBRDD; import tepe.TEPE; +import tmltranslator.compareTMLTest.CompareTML; import tmltranslator.tomappingsystemc2.DiploSimulatorFactory; import tmltranslator.tomappingsystemc2.IDiploSimulatorCodeGenerator; import tmltranslator.tomappingsystemc2.Penalties; @@ -30,19 +31,26 @@ public class DiplodocusDelayTest extends AbstractUITest { final String DIR_GEN = "test_diplo_simulator/"; //model for Delay task without penalties - final String [] MODELS_DELAY = {"mono-RR", "mono-RRPB","multi-RR","multi-RRPB","fpgaTest"}; - final int [] NB_Of_DELAY_STATES = {402, 402, 402, 402, 302}; - final int [] NB_Of_DELAY_TRANSTIONS = {401, 401, 401, 401, 301}; - final int [] MIN_DELAY_CYCLES = {20200, 20200, 20100, 20100, 20100}; - final int [] MAX_DELAY_CYCLES = {20200, 20200, 20100, 20100, 20100}; + final String [] MODELS_DELAY = {"mono-RR", "mono-RRPB","multi-RR","multi-RRPB","fpgaTest","delay-idle"}; + final int [] NB_Of_DELAY_STATES = {42, 42, 42, 42, 32, 22}; + final int [] NB_Of_DELAY_TRANSTIONS = {41, 41, 41, 41, 31, 21}; + final int [] MIN_DELAY_CYCLES = {2020, 2020, 2010, 2010, 2010, 1820}; + final int [] MAX_DELAY_CYCLES = {2020, 2020, 2010, 2010, 2010, 1820}; //model for Delay task with penalties - final int [] NB_Of_DELAY_STATES_PENALTIES = {410, 410, 410, 410, 302}; - final int [] NB_Of_DELAY_TRANSTIONS_PENALTIES = {409, 409, 409, 409, 301}; - final int [] MIN_DELAY_CYCLES_PENALTIES = {25718, 25718, 26588, 26588, 20100}; - final int [] MAX_DELAY_CYCLES_PENALTIES = {25718, 25718, 26588, 26588, 20100}; - - + final int [] NB_Of_DELAY_STATES_PENALTIES = {42, 42, 42, 42, 32, 22}; + final int [] NB_Of_DELAY_TRANSTIONS_PENALTIES = {41, 41, 41, 41, 31, 21}; + final int [] MIN_DELAY_CYCLES_PENALTIES = {2590, 2590, 2670, 2670, 2010, 1950}; + final int [] MAX_DELAY_CYCLES_PENALTIES = {2590, 2590, 2670, 2670, 2010, 1950}; + // test for read and write active delay parameter + final String [] MODELS_DELAY_READ_WRITE = {"delayRW"}; + final static String EXPECTED_FILE1 = getBaseResourcesDir() + "tmltranslator/expected/expected_specdelay_readwrite.tml"; + final static String EXPECTED_FILE2 = getBaseResourcesDir() + "tmltranslator/expected/expected_consecutive_delay1.tml"; + final static String EXPECTED_FILE3 = getBaseResourcesDir() + "tmltranslator/expected/expected_consecutive_delay2.tml"; + final int [] NB_Of_DELAY_RW_STATES = {42}; + final int [] NB_Of_DELAY_RW_TRANSTIONS = {41}; + final int [] MIN_DELAY_RW_CYCLES = {2020}; + final int [] MAX_DELAY_RW_CYCLES = {2020}; private String SIM_DIR; @@ -372,5 +380,236 @@ public class DiplodocusDelayTest extends AbstractUITest { assertTrue(MAX_DELAY_CYCLES_PENALTIES[i] == maxValue); } } + @Test + public void testGenerateTML() throws Exception { + CompareTML compTML = new CompareTML(); + mainGUI.openProjectFromFile(new File(RESOURCES_DIR + "delay-readwrite.xml")); + for(TURTLEPanel _tab : mainGUI.getTabs()) { + if(_tab instanceof TMLArchiPanel) { + for (TDiagramPanel tdp : _tab.getPanels()) { + if (tdp instanceof TMLArchiDiagramPanel) { + mainGUI.selectTab(tdp); + break; + } + } + break; + } + } + mainGUI.checkModelingSyntax(true); + mainGUI.generateTMLTxt(); + File f1 = new File(EXPECTED_FILE1); + File f2 = new File("spec.tml"); // Generated file after executing "TML generation" + assertTrue(compTML.compareTML(f1,f2)); + } + + @Test + public void testTwoConsecutiveDelay1() throws Exception { + CompareTML compTML = new CompareTML(); + mainGUI.openProjectFromFile(new File(RESOURCES_DIR + "consecutive_delay1.xml")); + for(TURTLEPanel _tab : mainGUI.getTabs()) { + if(_tab instanceof TMLArchiPanel) { + for (TDiagramPanel tdp : _tab.getPanels()) { + if (tdp instanceof TMLArchiDiagramPanel) { + mainGUI.selectTab(tdp); + break; + } + } + break; + } + } + mainGUI.checkModelingSyntax(true); + mainGUI.generateTMLTxt(); + File f1 = new File(EXPECTED_FILE2); + File f2 = new File("spec.tml"); // Generated file after executing "TML generation" + assertTrue(compTML.compareTML(f1,f2)); + } + + @Test + public void testTwoConsecutiveDelay2() throws Exception { + CompareTML compTML = new CompareTML(); + mainGUI.openProjectFromFile(new File(RESOURCES_DIR + "consecutive_delay2.xml")); + for(TURTLEPanel _tab : mainGUI.getTabs()) { + if(_tab instanceof TMLArchiPanel) { + for (TDiagramPanel tdp : _tab.getPanels()) { + if (tdp instanceof TMLArchiDiagramPanel) { + mainGUI.selectTab(tdp); + break; + } + } + break; + } + } + mainGUI.checkModelingSyntax(true); + mainGUI.generateTMLTxt(); + File f1 = new File(EXPECTED_FILE3); + File f2 = new File("spec.tml"); // Generated file after executing "TML generation" + assertTrue(compTML.compareTML(f1,f2)); + } + + @Test + public void testActiveDelayReadAndWrite() throws Exception { + for(int i=0; i<MODELS_DELAY_READ_WRITE.length; i++) { + String s = MODELS_DELAY_READ_WRITE[i]; + SIM_DIR = DIR_GEN + s + "/"; + // Load the TML + System.out.println("executing: loading " + s); + TMLMappingTextSpecification tmts = new TMLMappingTextSpecification(s); + File f = new File(RESOURCES_DIR + s + ".tmap"); + System.out.println("executing: new file loaded " + s); + String spec = null; + try { + spec = FileUtils.loadFileData(f); + } catch (Exception e) { + System.out.println("Exception executing: loading " + s); + assertTrue(false); + } + System.out.println("executing: testing spec " + s); + assertTrue(spec != null); + System.out.println("executing: testing parsed " + s); + boolean parsed = tmts.makeTMLMapping(spec, RESOURCES_DIR); + assertTrue(parsed); + + + System.out.println("executing: checking syntax " + s); + // Checking syntax + TMLMapping tmap = tmts.getTMLMapping(); + + TMLSyntaxChecking syntax = new TMLSyntaxChecking(tmap); + syntax.checkSyntax(); + + assertTrue(syntax.hasErrors() == 0); + + // Generate SystemC code + System.out.println("executing: sim code gen for " + s); + final IDiploSimulatorCodeGenerator tml2systc; + List<EBRDD> al = new ArrayList<EBRDD>(); + List<TEPE> alTepe = new ArrayList<TEPE>(); + tml2systc = DiploSimulatorFactory.INSTANCE.createCodeGenerator(tmap, al, alTepe); + tml2systc.setModelName(s); + String error = tml2systc.generateSystemC(false, true); + assertTrue(error == null); + + File directory = new File(SIM_DIR); + if (! directory.exists()){ + directory.mkdirs(); + } + + // Putting sim files + System.out.println("SIM executing: sim lib code copying for " + s); + ConfigurationTTool.SystemCCodeDirectory = getBaseResourcesDir() + "../../../../simulators/c++2/"; + boolean simFiles = SpecConfigTTool.checkAndCreateSystemCDir(SIM_DIR); + + System.out.println("SIM executing: sim lib code copying done with result " + simFiles); + assertTrue(simFiles); + + System.out.println("SIM Saving file in: " + SIM_DIR); + tml2systc.saveFile(SIM_DIR, "appmodel"); + + + // Compile it + System.out.println("executing: compile"); + Process proc; + BufferedReader proc_in; + String str; + boolean mustRecompileAll; + Penalties penalty = new Penalties(SIM_DIR + File.separator + "src_simulator"); + int changed = penalty.handlePenalties(false); + + if (changed == 1) { + mustRecompileAll = true; + } else { + mustRecompileAll = false; + } + + if (mustRecompileAll) { + System.out.println("executing: " + "make -C " + SIM_DIR + " clean"); + try { + proc = Runtime.getRuntime().exec("make -C " + SIM_DIR + " clean"); + proc_in = new BufferedReader( new InputStreamReader( proc.getInputStream() ) ); + while ( ( str = proc_in.readLine() ) != null ) { + // TraceManager.addDev( "Sending " + str + " from " + port + " to client..." ); + System.out.println("executing: " + str); + } + } catch (Exception e) { + // probably make is not installed + System.out.println("FAILED: executing: " + "make -C " + SIM_DIR + " clean"); + return; + } + } + + System.out.println("executing: " + "make -C " + SIM_DIR); + try { + + proc = Runtime.getRuntime().exec("make -C " + SIM_DIR + ""); + proc_in = new BufferedReader( new InputStreamReader( proc.getInputStream() ) ); + + monitorError(proc); + + while ( ( str = proc_in.readLine() ) != null ) { + // TraceManager.addDev( "Sending " + str + " from " + port + " to client..." ); + System.out.println("executing: " + str); + } + } catch (Exception e) { + // Probably make is not installed + System.out.println("FAILED: executing: " + "make -C " + SIM_DIR); + return; + } + System.out.println("SUCCESS: executing: " + "make -C " + SIM_DIR); + + // Run the simulator + String graphPath = SIM_DIR + "testgraph_" + s; + try { + + String[] params = new String [3]; + + params[0] = "./" + SIM_DIR + "run.x"; + params[1] = "-cmd"; + params[2] = "1 0; 1 7 100 100 " + graphPath; + proc = Runtime.getRuntime().exec(params); + //proc = Runtime.getRuntime().exec("./" + SIM_DIR + "run.x -explo -gname testgraph_" + s); + proc_in = new BufferedReader( new InputStreamReader( proc.getInputStream() ) ); + + monitorError(proc); + + while ( ( str = proc_in.readLine() ) != null ) { + // TraceManager.addDev( "Sending " + str + " from " + port + " to client..." ); + System.out.println("executing: " + str); + } + } catch (Exception e) { + // Probably make is not installed + System.out.println("FAILED: executing simulation"); + return; + } + // Compare results with expected ones + // Must load the graph + File graphFile = new File(graphPath + ".aut"); + String graphData = ""; + try { + graphData = FileUtils.loadFileData(graphFile); + } catch (Exception e) { + assertTrue(false); + } + + AUTGraph graph = new AUTGraph(); + graph.buildGraph(graphData); + + // States and transitions + System.out.println("executing: nb states of " + s + " " + graph.getNbOfStates()); + assertTrue(NB_Of_DELAY_RW_STATES[i] == graph.getNbOfStates()); + System.out.println("executing: nb transitions of " + s + " " + graph.getNbOfTransitions()); + assertTrue(NB_Of_DELAY_RW_TRANSTIONS[i] == graph.getNbOfTransitions()); + + // Min and max cycles + int minValue = graph.getMinValue("allCPUsFPGAsTerminated"); + System.out.println("executing: minvalue of " + s + " " + minValue); + assertTrue(MIN_DELAY_RW_CYCLES[i] == minValue); + + int maxValue = graph.getMaxValue("allCPUsFPGAsTerminated"); + System.out.println("executing: maxvalue of " + s + " " + maxValue); + assertTrue(MAX_DELAY_RW_CYCLES[i] == maxValue); + + } + + } } diff --git a/ttool/src/test/resources/tmltranslator/expected/expected_consecutive_delay1.tml b/ttool/src/test/resources/tmltranslator/expected/expected_consecutive_delay1.tml new file mode 100644 index 0000000000000000000000000000000000000000..d4739f3040aead52b34c0534e0b922d476d38a46 --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/expected/expected_consecutive_delay1.tml @@ -0,0 +1,54 @@ +// TML Application - FORMAT 0.2 +// Application: /home/levan/Downloads/simpleSDF.xml +// Generated: Wed Nov 20 13:33:49 CET 2019 + +// PRAGMAS + +// Channels +CHANNEL ApplicationSimple__chToT1 BRBW 4 500 OUT ApplicationSimple__Src IN ApplicationSimple__T1 +VCCHANNEL ApplicationSimple__chToT1 0 +CHANNEL ApplicationSimple__chToT2 BRBW 4 8 OUT ApplicationSimple__T1 IN ApplicationSimple__T2 +VCCHANNEL ApplicationSimple__chToT2 0 + +// Events +EVENT ApplicationSimple__evtToT1__ApplicationSimple__evtToT1(int) NIB 2 ApplicationSimple__Src ApplicationSimple__T1 +EVENT ApplicationSimple__evtToT2__ApplicationSimple__evtToT2(int) NIB 2 ApplicationSimple__T1 ApplicationSimple__T2 + +// Requests + +TASK ApplicationSimple__Src + TASKOP + //Local variables + int size = 100 + + //Behavior + NOTIFY ApplicationSimple__evtToT1__ApplicationSimple__evtToT1 size + WRITE ApplicationSimple__chToT1 size +ENDTASK + +TASK ApplicationSimple__T1 + TASKOP + //Local variables + int size + + //Behavior + WAIT ApplicationSimple__evtToT1__ApplicationSimple__evtToT1 size + READ ApplicationSimple__chToT1 size + EXECI size + DELAY 15 us isActiveDelay true + DELAY 10 20 us isActiveDelay false + NOTIFY ApplicationSimple__evtToT2__ApplicationSimple__evtToT2 size + WRITE ApplicationSimple__chToT2 size +ENDTASK + +TASK ApplicationSimple__T2 + TASKOP + //Local variables + int size + + //Behavior + WAIT ApplicationSimple__evtToT2__ApplicationSimple__evtToT2 size + READ ApplicationSimple__chToT2 size + EXECI size +ENDTASK + diff --git a/ttool/src/test/resources/tmltranslator/expected/expected_consecutive_delay2.tml b/ttool/src/test/resources/tmltranslator/expected/expected_consecutive_delay2.tml new file mode 100644 index 0000000000000000000000000000000000000000..d696c484d7503b10c86dc3a5a264d20ec19aaa91 --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/expected/expected_consecutive_delay2.tml @@ -0,0 +1,54 @@ +// TML Application - FORMAT 0.2 +// Application: /home/levan/Desktop/TTool/ttool/src/test/resources/tmltranslator/expected/consecutive_delay2.xml +// Generated: Wed Nov 20 13:37:53 CET 2019 + +// PRAGMAS + +// Channels +CHANNEL ApplicationSimple__chToT1 BRBW 4 500 OUT ApplicationSimple__Src IN ApplicationSimple__T1 +VCCHANNEL ApplicationSimple__chToT1 0 +CHANNEL ApplicationSimple__chToT2 BRBW 4 8 OUT ApplicationSimple__T1 IN ApplicationSimple__T2 +VCCHANNEL ApplicationSimple__chToT2 0 + +// Events +EVENT ApplicationSimple__evtToT1__ApplicationSimple__evtToT1(int) NIB 2 ApplicationSimple__Src ApplicationSimple__T1 +EVENT ApplicationSimple__evtToT2__ApplicationSimple__evtToT2(int) NIB 2 ApplicationSimple__T1 ApplicationSimple__T2 + +// Requests + +TASK ApplicationSimple__Src + TASKOP + //Local variables + int size = 100 + + //Behavior + NOTIFY ApplicationSimple__evtToT1__ApplicationSimple__evtToT1 size + WRITE ApplicationSimple__chToT1 size +ENDTASK + +TASK ApplicationSimple__T1 + TASKOP + //Local variables + int size + + //Behavior + WAIT ApplicationSimple__evtToT1__ApplicationSimple__evtToT1 size + READ ApplicationSimple__chToT1 size + EXECI size + DELAY 15 us isActiveDelay false + DELAY 10 20 us isActiveDelay true + NOTIFY ApplicationSimple__evtToT2__ApplicationSimple__evtToT2 size + WRITE ApplicationSimple__chToT2 size +ENDTASK + +TASK ApplicationSimple__T2 + TASKOP + //Local variables + int size + + //Behavior + WAIT ApplicationSimple__evtToT2__ApplicationSimple__evtToT2 size + READ ApplicationSimple__chToT2 size + EXECI size +ENDTASK + diff --git a/ttool/src/test/resources/tmltranslator/expected/expected_spec1.tml b/ttool/src/test/resources/tmltranslator/expected/expected_spec1.tml index 7cd34eab0bf33868df2a5e9fd1e585a2734018fe..1575d44d5261db95748809b38af07a8667130c47 100644 --- a/ttool/src/test/resources/tmltranslator/expected/expected_spec1.tml +++ b/ttool/src/test/resources/tmltranslator/expected/expected_spec1.tml @@ -1,6 +1,6 @@ // TML Application - FORMAT 0.1 -// Application: /home/pham/Documents/TToolDev/TTool/ttool/src/test/resources/ui/diagram2tml/input/CloneCompositeComponentTest.xml -// Generated: Fri Sep 27 17:17:01 CEST 2019 +// Application: /home/levan/Desktop/TTool/ttool/src/test/resources/ui/diagram2tml/input/CloneCompositeComponentTest.xml +// Generated: Fri Nov 15 15:15:40 CET 2019 // Channels CHANNEL Application__channel BRBW 4 8 OUT Application__PrimitiveComp1 IN Application__PrimitiveComp2 @@ -120,10 +120,10 @@ TASK Application__PrimitiveComp5 WRITE Application__channel3 1 EXECI 10 EXECI 10 20 - DELAY 10 ms + DELAY 10 ms isActiveDelay false EXECC 100 encryption1 ADV 100 100 0 0 EXECC 100 encryption1 ADV 100 100 0 0 - DELAY 10 20 ms + DELAY 10 20 ms isActiveDelay false RANDOM 0 attr1 0 10 FOR( ; ; ) FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) @@ -154,10 +154,10 @@ TASK Application__PrimitiveComp5_0 WRITE Application__channel3_0 1 EXECI 10 EXECI 10 20 - DELAY 10 ms + DELAY 10 ms isActiveDelay false EXECC 100 encryption1 ADV 100 100 0 0 EXECC 100 encryption1 ADV 100 100 0 0 - DELAY 10 20 ms + DELAY 10 20 ms isActiveDelay false RANDOM 0 attr1 0 10 FOR( ; ; ) FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) diff --git a/ttool/src/test/resources/tmltranslator/expected/expected_spec2.tml b/ttool/src/test/resources/tmltranslator/expected/expected_spec2.tml index fc9e7125802818869a6f286f1428b48763990d86..80a588d37f19c0c5158d2927f24991c8cfb332c4 100644 --- a/ttool/src/test/resources/tmltranslator/expected/expected_spec2.tml +++ b/ttool/src/test/resources/tmltranslator/expected/expected_spec2.tml @@ -1,6 +1,6 @@ // TML Application - FORMAT 0.1 -// Application: /home/pham/Documents/TToolDev/TTool/ttool/src/test/resources/ui/diagram2tml/input/CloneCompositeComponentTest.xml -// Generated: Fri Sep 27 17:18:23 CEST 2019 +// Application: /home/levan/Desktop/TTool/ttool/src/test/resources/ui/diagram2tml/input/CloneCompositeComponentTest.xml +// Generated: Fri Nov 15 15:19:32 CET 2019 // Channels CHANNEL Application__channel BRBW 4 8 OUT Application__PrimitiveComp1 IN Application__PrimitiveComp2 @@ -88,10 +88,10 @@ TASK Application__PrimitiveComp5 WRITE Application__channel3 1 EXECI 10 EXECI 10 20 - DELAY 10 ms + DELAY 10 ms isActiveDelay false EXECC 100 encryption1 ADV 100 100 0 0 EXECC 100 encryption1 ADV 100 100 0 0 - DELAY 10 20 ms + DELAY 10 20 ms isActiveDelay false RANDOM 0 attr1 0 10 FOR( ; ; ) FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) @@ -122,10 +122,10 @@ TASK Application__PrimitiveComp5_0 WRITE Application__channel3_0 1 EXECI 10 EXECI 10 20 - DELAY 10 ms + DELAY 10 ms isActiveDelay false EXECC 100 encryption1 ADV 100 100 0 0 EXECC 100 encryption1 ADV 100 100 0 0 - DELAY 10 20 ms + DELAY 10 20 ms isActiveDelay false RANDOM 0 attr1 0 10 FOR( ; ; ) FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) diff --git a/ttool/src/test/resources/tmltranslator/expected/expected_spec3.tml b/ttool/src/test/resources/tmltranslator/expected/expected_spec3.tml index 75ba41ef403bd0c373c8f6c52c017e33bc39186b..48d0654728316da4552c088e187182be5de42643 100644 --- a/ttool/src/test/resources/tmltranslator/expected/expected_spec3.tml +++ b/ttool/src/test/resources/tmltranslator/expected/expected_spec3.tml @@ -1,6 +1,6 @@ // TML Application - FORMAT 0.1 -// Application: /home/pham/Documents/TToolDev/TTool/ttool/src/test/resources/ui/diagram2tml/input/CloneCompositeComponentTest.xml -// Generated: Fri Sep 27 17:18:55 CEST 2019 +// Application: /home/levan/Desktop/TTool/ttool/src/test/resources/ui/diagram2tml/input/CloneCompositeComponentTest.xml +// Generated: Fri Nov 15 15:20:48 CET 2019 // Channels CHANNEL Application__channel BRBW 4 8 OUT Application__PrimitiveComp1 IN Application__PrimitiveComp2 @@ -71,10 +71,10 @@ TASK Application__PrimitiveComp5 WRITE Application__channel3 1 EXECI 10 EXECI 10 20 - DELAY 10 ms + DELAY 10 ms isActiveDelay false EXECC 100 encryption1 ADV 100 100 0 0 EXECC 100 encryption1 ADV 100 100 0 0 - DELAY 10 20 ms + DELAY 10 20 ms isActiveDelay false RANDOM 0 attr1 0 10 FOR( ; ; ) FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) @@ -105,10 +105,10 @@ TASK Application__PrimitiveComp5_0 WRITE Application__channel3_0 1 EXECI 10 EXECI 10 20 - DELAY 10 ms + DELAY 10 ms isActiveDelay false EXECC 100 encryption1 ADV 100 100 0 0 EXECC 100 encryption1 ADV 100 100 0 0 - DELAY 10 20 ms + DELAY 10 20 ms isActiveDelay false RANDOM 0 attr1 0 10 FOR( ; ; ) FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) diff --git a/ttool/src/test/resources/tmltranslator/expected/expected_spec4.tml b/ttool/src/test/resources/tmltranslator/expected/expected_spec4.tml index 3e8fcfdc8bd65dbbdf2bf0a5c988ed724e8fbb7e..0c0473efbefb44f02f5c6ed11a1d8c57785a1248 100644 --- a/ttool/src/test/resources/tmltranslator/expected/expected_spec4.tml +++ b/ttool/src/test/resources/tmltranslator/expected/expected_spec4.tml @@ -1,6 +1,6 @@ // TML Application - FORMAT 0.1 -// Application: /home/pham/Documents/TToolDev/TTool/ttool/src/test/resources/ui/diagram2tml/input/CloneCompositeComponentTest.xml -// Generated: Fri Sep 27 17:19:30 CEST 2019 +// Application: /home/levan/Desktop/TTool/ttool/src/test/resources/ui/diagram2tml/input/CloneCompositeComponentTest.xml +// Generated: Fri Nov 15 15:21:23 CET 2019 // Channels CHANNEL Application__channel BRBW 4 8 OUT Application__PrimitiveComp1 IN Application__PrimitiveComp2 @@ -71,10 +71,10 @@ TASK Application__PrimitiveComp5 WRITE Application__channel3 1 EXECI 10 EXECI 10 20 - DELAY 10 ms + DELAY 10 ms isActiveDelay false EXECC 100 encryption1 ADV 100 100 0 0 EXECC 100 encryption1 ADV 100 100 0 0 - DELAY 10 20 ms + DELAY 10 20 ms isActiveDelay false RANDOM 0 attr1 0 10 FOR( ; ; ) FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) diff --git a/ttool/src/test/resources/tmltranslator/expected/expected_specdelay_readwrite.tml b/ttool/src/test/resources/tmltranslator/expected/expected_specdelay_readwrite.tml new file mode 100644 index 0000000000000000000000000000000000000000..950690add33264b1f84c93d47b6d65da1022cf79 --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/expected/expected_specdelay_readwrite.tml @@ -0,0 +1,36 @@ +// TML Application - FORMAT 0.1 +// Application: /home/levan/Desktop/TTool/ttool/src/test/resources/tmltranslator/simulator/delay-readwrite.xml +// Generated: Fri Nov 15 17:28:44 CET 2019 + +// Channels + +// Events +EVENT TestCycleEvt_wait__evt__TestCycleEvt_wait__evt(int) INF TestCycleEvt_wait__C0 TestCycleEvt_wait__C1 + +// Requests + +TASK TestCycleEvt_wait__C0 + TASKOP + //Local variables + int x = 0 + int loop__0 = 0 + + //Behavior + FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) + NOTIFY TestCycleEvt_wait__evt__TestCycleEvt_wait__evt x + x=x+1 + DELAY 1 us isActiveDelay true + ENDFOR +ENDTASK + +TASK TestCycleEvt_wait__C1 + TASKOP + //Local variables + int x + + //Behavior + FOR( ; ; ) + WAIT TestCycleEvt_wait__evt__TestCycleEvt_wait__evt x + ENDFOR +ENDTASK + diff --git a/ttool/src/test/resources/tmltranslator/simulator/consecutive_delay1.xml b/ttool/src/test/resources/tmltranslator/simulator/consecutive_delay1.xml new file mode 100644 index 0000000000000000000000000000000000000000..259554dcf7411103bacf244a5aa8feb55bc035ed --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/simulator/consecutive_delay1.xml @@ -0,0 +1,874 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="true" UPDATE_INFORMATION_DIPLO_SIM="true" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> + +<Modeling type="TML Component Design" nameTab="ApplicationSimple" tabs="TML Component Task Diagram$Src$T1$T2" > +<TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > +<CONNECTOR type="126" id="566" > +<cdparam x="335" y="300" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="335" y="300" id="572" /> +<P2 x="414" y="300" id="585" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="567" > +<cdparam x="335" y="236" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="335" y="237" id="570" /> +<P2 x="414" y="236" id="583" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="568" > +<cdparam x="590" y="305" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="590" y="305" id="589" /> +<P2 x="670" y="302" id="602" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="569" > +<cdparam x="590" y="241" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="590" y="241" id="587" /> +<P2 x="670" y="238" id="600" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<COMPONENT type="1202" id="582" > +<cdparam x="122" y="175" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="Src" /> +<TGConnectingPoint num="0" id="574" /> +<TGConnectingPoint num="1" id="575" /> +<TGConnectingPoint num="2" id="576" /> +<TGConnectingPoint num="3" id="577" /> +<TGConnectingPoint num="4" id="578" /> +<TGConnectingPoint num="5" id="579" /> +<TGConnectingPoint num="6" id="580" /> +<TGConnectingPoint num="7" id="581" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="size" value="100" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="571" > +<father id="582" num="0" /> +<cdparam x="309" y="224" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel chToT1" /> +<TGConnectingPoint num="0" id="570" /> +<extraparam> +<Prop commName="chToT1" commType="0" origin="true" finite="false" blocking="true" maxSamples="500" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="573" > +<father id="582" num="1" /> +<cdparam x="309" y="287" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evtToT1" /> +<TGConnectingPoint num="0" id="572" /> +<extraparam> +<Prop commName="evtToT1" commType="1" origin="true" finite="true" blocking="true" maxSamples="2" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1202" id="599" > +<cdparam x="427" y="177" /> +<sizeparam width="150" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="T1" /> +<TGConnectingPoint num="0" id="591" /> +<TGConnectingPoint num="1" id="592" /> +<TGConnectingPoint num="2" id="593" /> +<TGConnectingPoint num="3" id="594" /> +<TGConnectingPoint num="4" id="595" /> +<TGConnectingPoint num="5" id="596" /> +<TGConnectingPoint num="6" id="597" /> +<TGConnectingPoint num="7" id="598" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="size" value="" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="584" > +<father id="599" num="0" /> +<cdparam x="414" y="223" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel chToT1" /> +<TGConnectingPoint num="0" id="583" /> +<extraparam> +<Prop commName="chToT1" commType="0" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="586" > +<father id="599" num="1" /> +<cdparam x="414" y="287" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evtToT1" /> +<TGConnectingPoint num="0" id="585" /> +<extraparam> +<Prop commName="evtToT1" commType="1" origin="false" finite="true" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="588" > +<father id="599" num="2" /> +<cdparam x="564" y="228" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel chToT2" /> +<TGConnectingPoint num="0" id="587" /> +<extraparam> +<Prop commName="chToT2" commType="0" origin="true" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="590" > +<father id="599" num="3" /> +<cdparam x="564" y="292" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evtToT2" /> +<TGConnectingPoint num="0" id="589" /> +<extraparam> +<Prop commName="evtToT2" commType="1" origin="true" finite="true" blocking="true" maxSamples="2" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1202" id="612" > +<cdparam x="683" y="179" /> +<sizeparam width="150" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="T2" /> +<TGConnectingPoint num="0" id="604" /> +<TGConnectingPoint num="1" id="605" /> +<TGConnectingPoint num="2" id="606" /> +<TGConnectingPoint num="3" id="607" /> +<TGConnectingPoint num="4" id="608" /> +<TGConnectingPoint num="5" id="609" /> +<TGConnectingPoint num="6" id="610" /> +<TGConnectingPoint num="7" id="611" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="size" value="" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="601" > +<father id="612" num="0" /> +<cdparam x="670" y="225" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel chToT2" /> +<TGConnectingPoint num="0" id="600" /> +<extraparam> +<Prop commName="chToT2" commType="0" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="603" > +<father id="612" num="1" /> +<cdparam x="670" y="289" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evtToT2" /> +<TGConnectingPoint num="0" id="602" /> +<extraparam> +<Prop commName="evtToT2" commType="1" origin="false" finite="true" blocking="true" maxSamples="2" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + + +</TMLComponentTaskDiagramPanel> + +<TMLActivityDiagramPanel name="Src" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1008" id="615" > +<cdparam x="286" y="192" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evtToT1(size)" /> +<TGConnectingPoint num="0" id="613" /> +<TGConnectingPoint num="1" id="614" /> +<extraparam> +<Data eventName="evtToT1" nbOfParams="5" /> +<Param index="0" value="size" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1001" id="617" > +<cdparam x="323" y="309" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="616" /> +</COMPONENT> + +<COMPONENT type="1006" id="620" > +<cdparam x="289" y="268" /> +<sizeparam width="88" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="write channel" value="chToT1(size)" /> +<TGConnectingPoint num="0" id="618" /> +<TGConnectingPoint num="1" id="619" /> +<extraparam> +<Data channelName="chToT1" nbOfSamples="size" secPattern="" isAttacker="No" isEncForm="Yes" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="622" > +<cdparam x="325" y="145" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="621" /> +</COMPONENT> + +<CONNECTOR type="115" id="623" > +<cdparam x="325" y="362" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="332" y="217" id="614" /> +<P2 x="333" y="263" id="618" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="624" > +<cdparam x="332" y="160" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="332" y="160" id="621" /> +<P2 x="332" y="187" id="613" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="625" > +<cdparam x="333" y="246" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="333" y="293" id="619" /> +<P2 x="333" y="304" id="616" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="T1" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1028" id="629" > +<cdparam x="430" y="361" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="delayInterval" value="null" /> +<TGConnectingPoint num="0" id="627" /> +<TGConnectingPoint num="1" id="628" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="626" > +<father id="629" num="0" /> +<cdparam x="445" y="381" /> +<sizeparam width="70" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the interval delay" value="[10, 20] us" /> +<extraparam> +<TimeDelay minDelay="10" maxDelay="20" hasMaxDelay="true" isActiveDelay="false" unit="us" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1026" id="633" > +<cdparam x="440" y="298" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="delay" value="null" /> +<TGConnectingPoint num="0" id="631" /> +<TGConnectingPoint num="1" id="632" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="630" > +<father id="633" num="0" /> +<cdparam x="465" y="317" /> +<sizeparam width="36" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="15 us" /> +<extraparam> +<TimeDelay minDelay="15" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1001" id="635" > +<cdparam x="410" y="550" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="634" /> +</COMPONENT> + +<COMPONENT type="1006" id="638" > +<cdparam x="376" y="505" /> +<sizeparam width="88" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="write channel" value="chToT2(size)" /> +<TGConnectingPoint num="0" id="636" /> +<TGConnectingPoint num="1" id="637" /> +<extraparam> +<Data channelName="chToT2" nbOfSamples="size" secPattern="" isAttacker="No" isEncForm="Yes" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1008" id="641" > +<cdparam x="374" y="450" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evtToT2(size)" /> +<TGConnectingPoint num="0" id="639" /> +<TGConnectingPoint num="1" id="640" /> +<extraparam> +<Data eventName="evtToT2" nbOfParams="5" /> +<Param index="0" value="size" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1013" id="645" > +<cdparam x="417" y="216" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="execI" value="null" /> +<TGConnectingPoint num="0" id="643" /> +<TGConnectingPoint num="1" id="644" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="642" > +<father id="645" num="0" /> +<cdparam x="432" y="236" /> +<sizeparam width="23" height="15" minWidth="10" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="size" /> +</SUBCOMPONENT> + +<COMPONENT type="1009" id="648" > +<cdparam x="376" y="162" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="read channel" value="chToT1(size) " /> +<TGConnectingPoint num="0" id="646" /> +<TGConnectingPoint num="1" id="647" /> +<extraparam> +<Data channelName="chToT1" nbOfSamples="size" secPattern="" isAttacker="No" isEncForm="Yes" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1010" id="651" > +<cdparam x="374" y="116" /> +<sizeparam width="96" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evtToT1(size) " /> +<TGConnectingPoint num="0" id="649" /> +<TGConnectingPoint num="1" id="650" /> +<extraparam> +<Data eventName="evtToT1" nbOfParams="5" /> +<Param index="0" value="size" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="653" > +<cdparam x="416" y="76" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="652" /> +</COMPONENT> + +<CONNECTOR type="115" id="654" > +<cdparam x="414" y="91" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="423" y="91" id="652" /> +<P2 x="422" y="111" id="649" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="655" > +<cdparam x="422" y="141" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="141" id="650" /> +<P2 x="422" y="157" id="646" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="656" > +<cdparam x="432" y="199" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="187" id="647" /> +<P2 x="422" y="211" id="643" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="657" > +<cdparam x="422" y="251" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="251" id="644" /> +<P2 x="445" y="293" id="631" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="658" > +<cdparam x="424" y="475" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="420" y="475" id="640" /> +<P2 x="420" y="500" id="636" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="659" > +<cdparam x="433" y="530" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="420" y="530" id="637" /> +<P2 x="420" y="545" id="634" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="660" > +<cdparam x="445" y="333" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="445" y="333" id="632" /> +<P2 x="435" y="356" id="627" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="661" > +<cdparam x="435" y="396" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="435" y="396" id="628" /> +<P2 x="420" y="445" id="639" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="T2" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1001" id="663" > +<cdparam x="412" y="443" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="662" /> +</COMPONENT> + +<COMPONENT type="1013" id="667" > +<cdparam x="417" y="216" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="execI" value="null" /> +<TGConnectingPoint num="0" id="665" /> +<TGConnectingPoint num="1" id="666" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="664" > +<father id="667" num="0" /> +<cdparam x="432" y="236" /> +<sizeparam width="23" height="15" minWidth="10" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="size" /> +</SUBCOMPONENT> + +<COMPONENT type="1009" id="670" > +<cdparam x="376" y="162" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="read channel" value="chToT2(size) " /> +<TGConnectingPoint num="0" id="668" /> +<TGConnectingPoint num="1" id="669" /> +<extraparam> +<Data channelName="chToT2" nbOfSamples="size" secPattern="" isAttacker="No" isEncForm="Yes" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1010" id="673" > +<cdparam x="374" y="116" /> +<sizeparam width="96" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evtToT2(size) " /> +<TGConnectingPoint num="0" id="671" /> +<TGConnectingPoint num="1" id="672" /> +<extraparam> +<Data eventName="evtToT2" nbOfParams="5" /> +<Param index="0" value="size" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="675" > +<cdparam x="416" y="76" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="674" /> +</COMPONENT> + +<CONNECTOR type="115" id="676" > +<cdparam x="422" y="251" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="251" id="666" /> +<P2 x="422" y="438" id="662" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="677" > +<cdparam x="414" y="91" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="423" y="91" id="674" /> +<P2 x="422" y="111" id="671" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="678" > +<cdparam x="422" y="141" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="141" id="672" /> +<P2 x="422" y="157" id="668" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="679" > +<cdparam x="432" y="199" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="187" id="669" /> +<P2 x="422" y="211" id="665" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +</Modeling> + + + + +<Modeling type="TML Architecture" nameTab="ArchitectureSimple" > +<TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > +<COMPONENT type="1105" id="704" > +<cdparam x="958" y="266" /> +<sizeparam width="200" height="200" minWidth="100" minHeight="35" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Memory0" value="name" /> +<TGConnectingPoint num="0" id="680" /> +<TGConnectingPoint num="1" id="681" /> +<TGConnectingPoint num="2" id="682" /> +<TGConnectingPoint num="3" id="683" /> +<TGConnectingPoint num="4" id="684" /> +<TGConnectingPoint num="5" id="685" /> +<TGConnectingPoint num="6" id="686" /> +<TGConnectingPoint num="7" id="687" /> +<TGConnectingPoint num="8" id="688" /> +<TGConnectingPoint num="9" id="689" /> +<TGConnectingPoint num="10" id="690" /> +<TGConnectingPoint num="11" id="691" /> +<TGConnectingPoint num="12" id="692" /> +<TGConnectingPoint num="13" id="693" /> +<TGConnectingPoint num="14" id="694" /> +<TGConnectingPoint num="15" id="695" /> +<TGConnectingPoint num="16" id="696" /> +<TGConnectingPoint num="17" id="697" /> +<TGConnectingPoint num="18" id="698" /> +<TGConnectingPoint num="19" id="699" /> +<TGConnectingPoint num="20" id="700" /> +<TGConnectingPoint num="21" id="701" /> +<TGConnectingPoint num="22" id="702" /> +<TGConnectingPoint num="23" id="703" /> +<extraparam> +<info stereotype="MEMORY" nodeName="Memory0" /> +<attributes byteDataSize="4" memorySize="1024" clockRatio="1" bufferType="0" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1102" id="729" > +<cdparam x="503" y="320" /> +<sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Bus0" value="name" /> +<TGConnectingPoint num="0" id="705" /> +<TGConnectingPoint num="1" id="706" /> +<TGConnectingPoint num="2" id="707" /> +<TGConnectingPoint num="3" id="708" /> +<TGConnectingPoint num="4" id="709" /> +<TGConnectingPoint num="5" id="710" /> +<TGConnectingPoint num="6" id="711" /> +<TGConnectingPoint num="7" id="712" /> +<TGConnectingPoint num="8" id="713" /> +<TGConnectingPoint num="9" id="714" /> +<TGConnectingPoint num="10" id="715" /> +<TGConnectingPoint num="11" id="716" /> +<TGConnectingPoint num="12" id="717" /> +<TGConnectingPoint num="13" id="718" /> +<TGConnectingPoint num="14" id="719" /> +<TGConnectingPoint num="15" id="720" /> +<TGConnectingPoint num="16" id="721" /> +<TGConnectingPoint num="17" id="722" /> +<TGConnectingPoint num="18" id="723" /> +<TGConnectingPoint num="19" id="724" /> +<TGConnectingPoint num="20" id="725" /> +<TGConnectingPoint num="21" id="726" /> +<TGConnectingPoint num="22" id="727" /> +<TGConnectingPoint num="23" id="728" /> +<extraparam> +<info stereotype="BUS-RR" nodeName="Bus0" /> +<attributes byteDataSize="4" arbitrationPolicy="0" sliceTime="10000" pipelineSize="1" clockRatio="1" privacy="0" referenceAttack="null" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1100" id="772" > +<cdparam x="498" y="47" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="FPGA1" value="name" /> +<TGConnectingPoint num="0" id="748" /> +<TGConnectingPoint num="1" id="749" /> +<TGConnectingPoint num="2" id="750" /> +<TGConnectingPoint num="3" id="751" /> +<TGConnectingPoint num="4" id="752" /> +<TGConnectingPoint num="5" id="753" /> +<TGConnectingPoint num="6" id="754" /> +<TGConnectingPoint num="7" id="755" /> +<TGConnectingPoint num="8" id="756" /> +<TGConnectingPoint num="9" id="757" /> +<TGConnectingPoint num="10" id="758" /> +<TGConnectingPoint num="11" id="759" /> +<TGConnectingPoint num="12" id="760" /> +<TGConnectingPoint num="13" id="761" /> +<TGConnectingPoint num="14" id="762" /> +<TGConnectingPoint num="15" id="763" /> +<TGConnectingPoint num="16" id="764" /> +<TGConnectingPoint num="17" id="765" /> +<TGConnectingPoint num="18" id="766" /> +<TGConnectingPoint num="19" id="767" /> +<TGConnectingPoint num="20" id="768" /> +<TGConnectingPoint num="21" id="769" /> +<TGConnectingPoint num="22" id="770" /> +<TGConnectingPoint num="23" id="771" /> +<extraparam> +<info stereotype="CPURR" nodeName="FPGA1" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="738" > +<father id="772" num="0" /> +<cdparam x="539" y="82" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="ApplicationSimple::T1" /> +<TGConnectingPoint num="0" id="730" /> +<TGConnectingPoint num="1" id="731" /> +<TGConnectingPoint num="2" id="732" /> +<TGConnectingPoint num="3" id="733" /> +<TGConnectingPoint num="4" id="734" /> +<TGConnectingPoint num="5" id="735" /> +<TGConnectingPoint num="6" id="736" /> +<TGConnectingPoint num="7" id="737" /> +<extraparam> +<info value="ApplicationSimple::T1" taskName="T1" referenceTaskName="ApplicationSimple" priority="0" operationMEC="T1" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1101" id="747" > +<father id="772" num="1" /> +<cdparam x="550" y="132" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="ApplicationSimple::T2" /> +<TGConnectingPoint num="0" id="739" /> +<TGConnectingPoint num="1" id="740" /> +<TGConnectingPoint num="2" id="741" /> +<TGConnectingPoint num="3" id="742" /> +<TGConnectingPoint num="4" id="743" /> +<TGConnectingPoint num="5" id="744" /> +<TGConnectingPoint num="6" id="745" /> +<TGConnectingPoint num="7" id="746" /> +<extraparam> +<info value="ApplicationSimple::T2" taskName="T2" referenceTaskName="ApplicationSimple" priority="0" operationMEC="T2" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1100" id="806" > +<cdparam x="77" y="230" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Src" value="name" /> +<TGConnectingPoint num="0" id="782" /> +<TGConnectingPoint num="1" id="783" /> +<TGConnectingPoint num="2" id="784" /> +<TGConnectingPoint num="3" id="785" /> +<TGConnectingPoint num="4" id="786" /> +<TGConnectingPoint num="5" id="787" /> +<TGConnectingPoint num="6" id="788" /> +<TGConnectingPoint num="7" id="789" /> +<TGConnectingPoint num="8" id="790" /> +<TGConnectingPoint num="9" id="791" /> +<TGConnectingPoint num="10" id="792" /> +<TGConnectingPoint num="11" id="793" /> +<TGConnectingPoint num="12" id="794" /> +<TGConnectingPoint num="13" id="795" /> +<TGConnectingPoint num="14" id="796" /> +<TGConnectingPoint num="15" id="797" /> +<TGConnectingPoint num="16" id="798" /> +<TGConnectingPoint num="17" id="799" /> +<TGConnectingPoint num="18" id="800" /> +<TGConnectingPoint num="19" id="801" /> +<TGConnectingPoint num="20" id="802" /> +<TGConnectingPoint num="21" id="803" /> +<TGConnectingPoint num="22" id="804" /> +<TGConnectingPoint num="23" id="805" /> +<extraparam> +<info stereotype="CPURR" nodeName="Src" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="781" > +<father id="806" num="0" /> +<cdparam x="139" y="297" /> +<sizeparam width="173" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="77" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="ApplicationSimple::Src" /> +<TGConnectingPoint num="0" id="773" /> +<TGConnectingPoint num="1" id="774" /> +<TGConnectingPoint num="2" id="775" /> +<TGConnectingPoint num="3" id="776" /> +<TGConnectingPoint num="4" id="777" /> +<TGConnectingPoint num="5" id="778" /> +<TGConnectingPoint num="6" id="779" /> +<TGConnectingPoint num="7" id="780" /> +<extraparam> +<info value="ApplicationSimple::Src" taskName="Src" referenceTaskName="ApplicationSimple" priority="0" operationMEC="Src" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<CONNECTOR type="125" id="807" > +<cdparam x="1017" y="421" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="958" y="366" id="683" /> +<P2 x="753" y="345" id="709" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="808" > +<cdparam x="710" y="256" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="623" y="247" id="754" /> +<P2 x="628" y="320" id="706" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="809" > +<cdparam x="327" y="330" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="327" y="330" id="786" /> +<P2 x="503" y="332" id="715" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> + +</TMLArchiDiagramPanel> + +</Modeling> + + + + +</TURTLEGMODELING> \ No newline at end of file diff --git a/ttool/src/test/resources/tmltranslator/simulator/consecutive_delay2.xml b/ttool/src/test/resources/tmltranslator/simulator/consecutive_delay2.xml new file mode 100644 index 0000000000000000000000000000000000000000..b5b0489d43ee3c111fcfa09c21291656ce62edac --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/simulator/consecutive_delay2.xml @@ -0,0 +1,874 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="true" UPDATE_INFORMATION_DIPLO_SIM="true" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> + +<Modeling type="TML Component Design" nameTab="ApplicationSimple" tabs="TML Component Task Diagram$Src$T1$T2" > +<TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > +<CONNECTOR type="126" id="566" > +<cdparam x="335" y="300" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="335" y="300" id="572" /> +<P2 x="414" y="300" id="585" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="567" > +<cdparam x="335" y="236" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="335" y="237" id="570" /> +<P2 x="414" y="236" id="583" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="568" > +<cdparam x="590" y="305" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="590" y="305" id="589" /> +<P2 x="670" y="302" id="602" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="126" id="569" > +<cdparam x="590" y="241" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="590" y="241" id="587" /> +<P2 x="670" y="238" id="600" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<COMPONENT type="1202" id="582" > +<cdparam x="122" y="175" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="Src" /> +<TGConnectingPoint num="0" id="574" /> +<TGConnectingPoint num="1" id="575" /> +<TGConnectingPoint num="2" id="576" /> +<TGConnectingPoint num="3" id="577" /> +<TGConnectingPoint num="4" id="578" /> +<TGConnectingPoint num="5" id="579" /> +<TGConnectingPoint num="6" id="580" /> +<TGConnectingPoint num="7" id="581" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="size" value="100" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="571" > +<father id="582" num="0" /> +<cdparam x="309" y="224" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel chToT1" /> +<TGConnectingPoint num="0" id="570" /> +<extraparam> +<Prop commName="chToT1" commType="0" origin="true" finite="false" blocking="true" maxSamples="500" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="573" > +<father id="582" num="1" /> +<cdparam x="309" y="287" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evtToT1" /> +<TGConnectingPoint num="0" id="572" /> +<extraparam> +<Prop commName="evtToT1" commType="1" origin="true" finite="true" blocking="true" maxSamples="2" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1202" id="599" > +<cdparam x="427" y="177" /> +<sizeparam width="150" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="T1" /> +<TGConnectingPoint num="0" id="591" /> +<TGConnectingPoint num="1" id="592" /> +<TGConnectingPoint num="2" id="593" /> +<TGConnectingPoint num="3" id="594" /> +<TGConnectingPoint num="4" id="595" /> +<TGConnectingPoint num="5" id="596" /> +<TGConnectingPoint num="6" id="597" /> +<TGConnectingPoint num="7" id="598" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="size" value="" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="584" > +<father id="599" num="0" /> +<cdparam x="414" y="223" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel chToT1" /> +<TGConnectingPoint num="0" id="583" /> +<extraparam> +<Prop commName="chToT1" commType="0" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="586" > +<father id="599" num="1" /> +<cdparam x="414" y="287" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evtToT1" /> +<TGConnectingPoint num="0" id="585" /> +<extraparam> +<Prop commName="evtToT1" commType="1" origin="false" finite="true" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="588" > +<father id="599" num="2" /> +<cdparam x="564" y="228" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel chToT2" /> +<TGConnectingPoint num="0" id="587" /> +<extraparam> +<Prop commName="chToT2" commType="0" origin="true" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="590" > +<father id="599" num="3" /> +<cdparam x="564" y="292" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evtToT2" /> +<TGConnectingPoint num="0" id="589" /> +<extraparam> +<Prop commName="evtToT2" commType="1" origin="true" finite="true" blocking="true" maxSamples="2" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1202" id="612" > +<cdparam x="683" y="179" /> +<sizeparam width="150" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="T2" /> +<TGConnectingPoint num="0" id="604" /> +<TGConnectingPoint num="1" id="605" /> +<TGConnectingPoint num="2" id="606" /> +<TGConnectingPoint num="3" id="607" /> +<TGConnectingPoint num="4" id="608" /> +<TGConnectingPoint num="5" id="609" /> +<TGConnectingPoint num="6" id="610" /> +<TGConnectingPoint num="7" id="611" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="size" value="" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="601" > +<father id="612" num="0" /> +<cdparam x="670" y="225" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Channel chToT2" /> +<TGConnectingPoint num="0" id="600" /> +<extraparam> +<Prop commName="chToT2" commType="0" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1203" id="603" > +<father id="612" num="1" /> +<cdparam x="670" y="289" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="137" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evtToT2" /> +<TGConnectingPoint num="0" id="602" /> +<extraparam> +<Prop commName="evtToT2" commType="1" origin="false" finite="true" blocking="true" maxSamples="2" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + + +</TMLComponentTaskDiagramPanel> + +<TMLActivityDiagramPanel name="Src" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1008" id="615" > +<cdparam x="286" y="192" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evtToT1(size)" /> +<TGConnectingPoint num="0" id="613" /> +<TGConnectingPoint num="1" id="614" /> +<extraparam> +<Data eventName="evtToT1" nbOfParams="5" /> +<Param index="0" value="size" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1001" id="617" > +<cdparam x="323" y="309" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="616" /> +</COMPONENT> + +<COMPONENT type="1006" id="620" > +<cdparam x="289" y="268" /> +<sizeparam width="88" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="write channel" value="chToT1(size)" /> +<TGConnectingPoint num="0" id="618" /> +<TGConnectingPoint num="1" id="619" /> +<extraparam> +<Data channelName="chToT1" nbOfSamples="size" secPattern="" isAttacker="No" isEncForm="Yes" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="622" > +<cdparam x="325" y="145" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="621" /> +</COMPONENT> + +<CONNECTOR type="115" id="623" > +<cdparam x="325" y="362" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="332" y="217" id="614" /> +<P2 x="333" y="263" id="618" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="624" > +<cdparam x="332" y="160" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="332" y="160" id="621" /> +<P2 x="332" y="187" id="613" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="625" > +<cdparam x="333" y="246" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="333" y="293" id="619" /> +<P2 x="333" y="304" id="616" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="T1" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1028" id="629" > +<cdparam x="430" y="361" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="delayInterval" value="null" /> +<TGConnectingPoint num="0" id="627" /> +<TGConnectingPoint num="1" id="628" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="626" > +<father id="629" num="0" /> +<cdparam x="445" y="381" /> +<sizeparam width="70" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the interval delay" value="[10, 20] us" /> +<extraparam> +<TimeDelay minDelay="10" maxDelay="20" hasMaxDelay="true" isActiveDelay="true" unit="us" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1026" id="633" > +<cdparam x="440" y="298" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="delay" value="null" /> +<TGConnectingPoint num="0" id="631" /> +<TGConnectingPoint num="1" id="632" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="630" > +<father id="633" num="0" /> +<cdparam x="465" y="317" /> +<sizeparam width="36" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="15 us" /> +<extraparam> +<TimeDelay minDelay="15" maxDelay="nope" hasMaxDelay="false" isActiveDelay="false" unit="us" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1001" id="635" > +<cdparam x="410" y="550" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="634" /> +</COMPONENT> + +<COMPONENT type="1006" id="638" > +<cdparam x="376" y="505" /> +<sizeparam width="88" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="write channel" value="chToT2(size)" /> +<TGConnectingPoint num="0" id="636" /> +<TGConnectingPoint num="1" id="637" /> +<extraparam> +<Data channelName="chToT2" nbOfSamples="size" secPattern="" isAttacker="No" isEncForm="Yes" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1008" id="641" > +<cdparam x="374" y="450" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evtToT2(size)" /> +<TGConnectingPoint num="0" id="639" /> +<TGConnectingPoint num="1" id="640" /> +<extraparam> +<Data eventName="evtToT2" nbOfParams="5" /> +<Param index="0" value="size" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1013" id="645" > +<cdparam x="417" y="216" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="execI" value="null" /> +<TGConnectingPoint num="0" id="643" /> +<TGConnectingPoint num="1" id="644" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="642" > +<father id="645" num="0" /> +<cdparam x="432" y="236" /> +<sizeparam width="23" height="15" minWidth="10" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="size" /> +</SUBCOMPONENT> + +<COMPONENT type="1009" id="648" > +<cdparam x="376" y="162" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="read channel" value="chToT1(size) " /> +<TGConnectingPoint num="0" id="646" /> +<TGConnectingPoint num="1" id="647" /> +<extraparam> +<Data channelName="chToT1" nbOfSamples="size" secPattern="" isAttacker="No" isEncForm="Yes" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1010" id="651" > +<cdparam x="374" y="116" /> +<sizeparam width="96" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evtToT1(size) " /> +<TGConnectingPoint num="0" id="649" /> +<TGConnectingPoint num="1" id="650" /> +<extraparam> +<Data eventName="evtToT1" nbOfParams="5" /> +<Param index="0" value="size" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="653" > +<cdparam x="416" y="76" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="652" /> +</COMPONENT> + +<CONNECTOR type="115" id="654" > +<cdparam x="414" y="91" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="423" y="91" id="652" /> +<P2 x="422" y="111" id="649" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="655" > +<cdparam x="422" y="141" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="141" id="650" /> +<P2 x="422" y="157" id="646" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="656" > +<cdparam x="432" y="199" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="187" id="647" /> +<P2 x="422" y="211" id="643" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="657" > +<cdparam x="422" y="251" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="251" id="644" /> +<P2 x="445" y="293" id="631" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="658" > +<cdparam x="424" y="475" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="420" y="475" id="640" /> +<P2 x="420" y="500" id="636" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="659" > +<cdparam x="433" y="530" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="420" y="530" id="637" /> +<P2 x="420" y="545" id="634" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="660" > +<cdparam x="445" y="333" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="445" y="333" id="632" /> +<P2 x="435" y="356" id="627" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="661" > +<cdparam x="435" y="396" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="435" y="396" id="628" /> +<P2 x="420" y="445" id="639" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="T2" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1001" id="663" > +<cdparam x="412" y="443" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="662" /> +</COMPONENT> + +<COMPONENT type="1013" id="667" > +<cdparam x="417" y="216" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="execI" value="null" /> +<TGConnectingPoint num="0" id="665" /> +<TGConnectingPoint num="1" id="666" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="664" > +<father id="667" num="0" /> +<cdparam x="432" y="236" /> +<sizeparam width="23" height="15" minWidth="10" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="size" /> +</SUBCOMPONENT> + +<COMPONENT type="1009" id="670" > +<cdparam x="376" y="162" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="read channel" value="chToT2(size) " /> +<TGConnectingPoint num="0" id="668" /> +<TGConnectingPoint num="1" id="669" /> +<extraparam> +<Data channelName="chToT2" nbOfSamples="size" secPattern="" isAttacker="No" isEncForm="Yes" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1010" id="673" > +<cdparam x="374" y="116" /> +<sizeparam width="96" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evtToT2(size) " /> +<TGConnectingPoint num="0" id="671" /> +<TGConnectingPoint num="1" id="672" /> +<extraparam> +<Data eventName="evtToT2" nbOfParams="5" /> +<Param index="0" value="size" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="675" > +<cdparam x="416" y="76" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="674" /> +</COMPONENT> + +<CONNECTOR type="115" id="676" > +<cdparam x="422" y="251" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="251" id="666" /> +<P2 x="422" y="438" id="662" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="677" > +<cdparam x="414" y="91" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="423" y="91" id="674" /> +<P2 x="422" y="111" id="671" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="678" > +<cdparam x="422" y="141" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="141" id="672" /> +<P2 x="422" y="157" id="668" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="679" > +<cdparam x="432" y="199" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="422" y="187" id="669" /> +<P2 x="422" y="211" id="665" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +</Modeling> + + + + +<Modeling type="TML Architecture" nameTab="ArchitectureSimple" > +<TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > +<COMPONENT type="1105" id="704" > +<cdparam x="958" y="266" /> +<sizeparam width="200" height="200" minWidth="100" minHeight="35" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Memory0" value="name" /> +<TGConnectingPoint num="0" id="680" /> +<TGConnectingPoint num="1" id="681" /> +<TGConnectingPoint num="2" id="682" /> +<TGConnectingPoint num="3" id="683" /> +<TGConnectingPoint num="4" id="684" /> +<TGConnectingPoint num="5" id="685" /> +<TGConnectingPoint num="6" id="686" /> +<TGConnectingPoint num="7" id="687" /> +<TGConnectingPoint num="8" id="688" /> +<TGConnectingPoint num="9" id="689" /> +<TGConnectingPoint num="10" id="690" /> +<TGConnectingPoint num="11" id="691" /> +<TGConnectingPoint num="12" id="692" /> +<TGConnectingPoint num="13" id="693" /> +<TGConnectingPoint num="14" id="694" /> +<TGConnectingPoint num="15" id="695" /> +<TGConnectingPoint num="16" id="696" /> +<TGConnectingPoint num="17" id="697" /> +<TGConnectingPoint num="18" id="698" /> +<TGConnectingPoint num="19" id="699" /> +<TGConnectingPoint num="20" id="700" /> +<TGConnectingPoint num="21" id="701" /> +<TGConnectingPoint num="22" id="702" /> +<TGConnectingPoint num="23" id="703" /> +<extraparam> +<info stereotype="MEMORY" nodeName="Memory0" /> +<attributes byteDataSize="4" memorySize="1024" clockRatio="1" bufferType="0" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1102" id="729" > +<cdparam x="503" y="320" /> +<sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Bus0" value="name" /> +<TGConnectingPoint num="0" id="705" /> +<TGConnectingPoint num="1" id="706" /> +<TGConnectingPoint num="2" id="707" /> +<TGConnectingPoint num="3" id="708" /> +<TGConnectingPoint num="4" id="709" /> +<TGConnectingPoint num="5" id="710" /> +<TGConnectingPoint num="6" id="711" /> +<TGConnectingPoint num="7" id="712" /> +<TGConnectingPoint num="8" id="713" /> +<TGConnectingPoint num="9" id="714" /> +<TGConnectingPoint num="10" id="715" /> +<TGConnectingPoint num="11" id="716" /> +<TGConnectingPoint num="12" id="717" /> +<TGConnectingPoint num="13" id="718" /> +<TGConnectingPoint num="14" id="719" /> +<TGConnectingPoint num="15" id="720" /> +<TGConnectingPoint num="16" id="721" /> +<TGConnectingPoint num="17" id="722" /> +<TGConnectingPoint num="18" id="723" /> +<TGConnectingPoint num="19" id="724" /> +<TGConnectingPoint num="20" id="725" /> +<TGConnectingPoint num="21" id="726" /> +<TGConnectingPoint num="22" id="727" /> +<TGConnectingPoint num="23" id="728" /> +<extraparam> +<info stereotype="BUS-RR" nodeName="Bus0" /> +<attributes byteDataSize="4" arbitrationPolicy="0" sliceTime="10000" pipelineSize="1" clockRatio="1" privacy="0" referenceAttack="null" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1100" id="772" > +<cdparam x="498" y="47" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="FPGA1" value="name" /> +<TGConnectingPoint num="0" id="748" /> +<TGConnectingPoint num="1" id="749" /> +<TGConnectingPoint num="2" id="750" /> +<TGConnectingPoint num="3" id="751" /> +<TGConnectingPoint num="4" id="752" /> +<TGConnectingPoint num="5" id="753" /> +<TGConnectingPoint num="6" id="754" /> +<TGConnectingPoint num="7" id="755" /> +<TGConnectingPoint num="8" id="756" /> +<TGConnectingPoint num="9" id="757" /> +<TGConnectingPoint num="10" id="758" /> +<TGConnectingPoint num="11" id="759" /> +<TGConnectingPoint num="12" id="760" /> +<TGConnectingPoint num="13" id="761" /> +<TGConnectingPoint num="14" id="762" /> +<TGConnectingPoint num="15" id="763" /> +<TGConnectingPoint num="16" id="764" /> +<TGConnectingPoint num="17" id="765" /> +<TGConnectingPoint num="18" id="766" /> +<TGConnectingPoint num="19" id="767" /> +<TGConnectingPoint num="20" id="768" /> +<TGConnectingPoint num="21" id="769" /> +<TGConnectingPoint num="22" id="770" /> +<TGConnectingPoint num="23" id="771" /> +<extraparam> +<info stereotype="CPURR" nodeName="FPGA1" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="738" > +<father id="772" num="0" /> +<cdparam x="539" y="82" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="ApplicationSimple::T1" /> +<TGConnectingPoint num="0" id="730" /> +<TGConnectingPoint num="1" id="731" /> +<TGConnectingPoint num="2" id="732" /> +<TGConnectingPoint num="3" id="733" /> +<TGConnectingPoint num="4" id="734" /> +<TGConnectingPoint num="5" id="735" /> +<TGConnectingPoint num="6" id="736" /> +<TGConnectingPoint num="7" id="737" /> +<extraparam> +<info value="ApplicationSimple::T1" taskName="T1" referenceTaskName="ApplicationSimple" priority="0" operationMEC="T1" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1101" id="747" > +<father id="772" num="1" /> +<cdparam x="550" y="132" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="ApplicationSimple::T2" /> +<TGConnectingPoint num="0" id="739" /> +<TGConnectingPoint num="1" id="740" /> +<TGConnectingPoint num="2" id="741" /> +<TGConnectingPoint num="3" id="742" /> +<TGConnectingPoint num="4" id="743" /> +<TGConnectingPoint num="5" id="744" /> +<TGConnectingPoint num="6" id="745" /> +<TGConnectingPoint num="7" id="746" /> +<extraparam> +<info value="ApplicationSimple::T2" taskName="T2" referenceTaskName="ApplicationSimple" priority="0" operationMEC="T2" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1100" id="806" > +<cdparam x="77" y="230" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Src" value="name" /> +<TGConnectingPoint num="0" id="782" /> +<TGConnectingPoint num="1" id="783" /> +<TGConnectingPoint num="2" id="784" /> +<TGConnectingPoint num="3" id="785" /> +<TGConnectingPoint num="4" id="786" /> +<TGConnectingPoint num="5" id="787" /> +<TGConnectingPoint num="6" id="788" /> +<TGConnectingPoint num="7" id="789" /> +<TGConnectingPoint num="8" id="790" /> +<TGConnectingPoint num="9" id="791" /> +<TGConnectingPoint num="10" id="792" /> +<TGConnectingPoint num="11" id="793" /> +<TGConnectingPoint num="12" id="794" /> +<TGConnectingPoint num="13" id="795" /> +<TGConnectingPoint num="14" id="796" /> +<TGConnectingPoint num="15" id="797" /> +<TGConnectingPoint num="16" id="798" /> +<TGConnectingPoint num="17" id="799" /> +<TGConnectingPoint num="18" id="800" /> +<TGConnectingPoint num="19" id="801" /> +<TGConnectingPoint num="20" id="802" /> +<TGConnectingPoint num="21" id="803" /> +<TGConnectingPoint num="22" id="804" /> +<TGConnectingPoint num="23" id="805" /> +<extraparam> +<info stereotype="CPURR" nodeName="Src" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="781" > +<father id="806" num="0" /> +<cdparam x="139" y="297" /> +<sizeparam width="173" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="77" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="ApplicationSimple::Src" /> +<TGConnectingPoint num="0" id="773" /> +<TGConnectingPoint num="1" id="774" /> +<TGConnectingPoint num="2" id="775" /> +<TGConnectingPoint num="3" id="776" /> +<TGConnectingPoint num="4" id="777" /> +<TGConnectingPoint num="5" id="778" /> +<TGConnectingPoint num="6" id="779" /> +<TGConnectingPoint num="7" id="780" /> +<extraparam> +<info value="ApplicationSimple::Src" taskName="Src" referenceTaskName="ApplicationSimple" priority="0" operationMEC="Src" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<CONNECTOR type="125" id="807" > +<cdparam x="1017" y="421" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="958" y="366" id="683" /> +<P2 x="753" y="345" id="709" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="808" > +<cdparam x="710" y="256" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="623" y="247" id="754" /> +<P2 x="628" y="320" id="706" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="809" > +<cdparam x="327" y="330" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="327" y="330" id="786" /> +<P2 x="503" y="332" id="715" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> + +</TMLArchiDiagramPanel> + +</Modeling> + + + + +</TURTLEGMODELING> \ No newline at end of file diff --git a/ttool/src/test/resources/tmltranslator/simulator/delay-idle-penalty.xml b/ttool/src/test/resources/tmltranslator/simulator/delay-idle-penalty.xml new file mode 100644 index 0000000000000000000000000000000000000000..5184af76c99f4302e5e5a64fd80cf11f44621f45 --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/simulator/delay-idle-penalty.xml @@ -0,0 +1,488 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="true" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> + +<Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > +<TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > +<CONNECTOR type="126" id="1" > +<cdparam x="442" y="295" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<COMPONENT type="1202" id="12" > +<cdparam x="626" y="195" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="C1" /> +<TGConnectingPoint num="0" id="4" /> +<TGConnectingPoint num="1" id="5" /> +<TGConnectingPoint num="2" id="6" /> +<TGConnectingPoint num="3" id="7" /> +<TGConnectingPoint num="4" id="8" /> +<TGConnectingPoint num="5" id="9" /> +<TGConnectingPoint num="6" id="10" /> +<TGConnectingPoint num="7" id="11" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="x" value="" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="3" > +<father id="12" num="0" /> +<cdparam x="613" y="264" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt" /> +<TGConnectingPoint num="0" id="2" /> +<extraparam> +<Prop commName="evt" commType="1" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1202" id="23" > +<cdparam x="243" y="158" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="C0" /> +<TGConnectingPoint num="0" id="15" /> +<TGConnectingPoint num="1" id="16" /> +<TGConnectingPoint num="2" id="17" /> +<TGConnectingPoint num="3" id="18" /> +<TGConnectingPoint num="4" id="19" /> +<TGConnectingPoint num="5" id="20" /> +<TGConnectingPoint num="6" id="21" /> +<TGConnectingPoint num="7" id="22" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="x" value="0" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="14" > +<father id="23" num="0" /> +<cdparam x="430" y="245" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt" /> +<TGConnectingPoint num="0" id="13" /> +<extraparam> +<Prop commName="evt" commType="1" origin="true" finite="false" blocking="false" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + + +</TMLComponentTaskDiagramPanel> + +<TMLActivityDiagramPanel name="C1" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1030" id="26" > +<cdparam x="426" y="119" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="for ever loop" value="Loop for ever" /> +<TGConnectingPoint num="0" id="24" /> +<TGConnectingPoint num="1" id="25" /> +</COMPONENT> + +<COMPONENT type="1001" id="28" > +<cdparam x="513" y="301" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="27" /> +</COMPONENT> + +<COMPONENT type="1010" id="31" > +<cdparam x="496" y="185" /> +<sizeparam width="49" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evt(x) " /> +<TGConnectingPoint num="0" id="29" /> +<TGConnectingPoint num="1" id="30" /> +<extraparam> +<Data eventName="evt" nbOfParams="5" /> +<Param index="0" value="x" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="33" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="32" /> +</COMPONENT> + +<CONNECTOR type="115" id="34" > +<cdparam x="500" y="181" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="520" y="210" id="30" /> +<P2 x="523" y="296" id="27" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="35" > +<cdparam x="407" y="65" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="65" id="32" /> +<P2 x="472" y="114" id="24" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="36" > +<cdparam x="487" y="133" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="518" y="133" id="25" /> +<P2 x="520" y="180" id="29" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="C0" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1001" id="161" > +<cdparam x="425" y="135" /> +<sizeparam width="20" height="20" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="162" /> +</COMPONENT> + +<COMPONENT type="1020" id="155" > +<cdparam x="384" y="92" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="for loop" value="10" /> +<TGConnectingPoint num="0" id="156" /> +<TGConnectingPoint num="1" id="157" /> +<TGConnectingPoint num="2" id="158" /> +</COMPONENT> + +<COMPONENT type="1026" id="43" > +<cdparam x="547" y="256" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="delay" value="null" /> +<TGConnectingPoint num="0" id="41" /> +<TGConnectingPoint num="1" id="42" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="40" > +<father id="43" num="0" /> +<cdparam x="562" y="276" /> +<sizeparam width="28" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="1 us" /> +<extraparam> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="false" unit="us" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1001" id="45" > +<cdparam x="562" y="325" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="44" /> +</COMPONENT> + +<COMPONENT type="1011" id="48" > +<cdparam x="494" y="170" /> +<sizeparam width="66" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="action state" value="x = x + 1" /> +<TGConnectingPoint num="0" id="46" /> +<TGConnectingPoint num="1" id="47" /> +</COMPONENT> + +<COMPONENT type="1008" id="51" > +<cdparam x="488" y="122" /> +<sizeparam width="45" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evt(x)" /> +<TGConnectingPoint num="0" id="49" /> +<TGConnectingPoint num="1" id="50" /> +<extraparam> +<Data eventName="evt" nbOfParams="5" /> +<Param index="0" value="x" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="53" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="52" /> +</COMPONENT> + +<CONNECTOR type="115" id="54" > +<cdparam x="532" y="197" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="510" y="147" id="50" /> +<P2 x="527" y="165" id="46" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="55" > +<cdparam x="527" y="195" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="527" y="195" id="47" /> +<P2 x="552" y="251" id="41" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="56" > +<cdparam x="552" y="291" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="552" y="291" id="42" /> +<P2 x="572" y="320" id="44" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="159" > +<cdparam x="407" y="65" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="65" id="52" /> +<P2 x="433" y="87" id="156" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="160" > +<cdparam x="484" y="101" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="482" y="106" id="157" /> +<P2 x="510" y="117" id="49" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="163" > +<cdparam x="433" y="117" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="433" y="117" id="158" /> +<P2 x="435" y="130" id="162" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +</Modeling> + + + + +<Modeling type="TML Architecture" nameTab="Architecture" > +<TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > +<COMPONENT type="1100" id="101" > +<cdparam x="180" y="83" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="CPU0" value="name" /> +<TGConnectingPoint num="0" id="77" /> +<TGConnectingPoint num="1" id="78" /> +<TGConnectingPoint num="2" id="79" /> +<TGConnectingPoint num="3" id="80" /> +<TGConnectingPoint num="4" id="81" /> +<TGConnectingPoint num="5" id="82" /> +<TGConnectingPoint num="6" id="83" /> +<TGConnectingPoint num="7" id="84" /> +<TGConnectingPoint num="8" id="85" /> +<TGConnectingPoint num="9" id="86" /> +<TGConnectingPoint num="10" id="87" /> +<TGConnectingPoint num="11" id="88" /> +<TGConnectingPoint num="12" id="89" /> +<TGConnectingPoint num="13" id="90" /> +<TGConnectingPoint num="14" id="91" /> +<TGConnectingPoint num="15" id="92" /> +<TGConnectingPoint num="16" id="93" /> +<TGConnectingPoint num="17" id="94" /> +<TGConnectingPoint num="18" id="95" /> +<TGConnectingPoint num="19" id="96" /> +<TGConnectingPoint num="20" id="97" /> +<TGConnectingPoint num="21" id="98" /> +<TGConnectingPoint num="22" id="99" /> +<TGConnectingPoint num="23" id="100" /> +<extraparam> +<info stereotype="CPURR" nodeName="CPU0" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="67" > +<father id="101" num="0" /> +<cdparam x="222" y="143" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="TestCycleEvt_wait::C0" /> +<TGConnectingPoint num="0" id="59" /> +<TGConnectingPoint num="1" id="60" /> +<TGConnectingPoint num="2" id="61" /> +<TGConnectingPoint num="3" id="62" /> +<TGConnectingPoint num="4" id="63" /> +<TGConnectingPoint num="5" id="64" /> +<TGConnectingPoint num="6" id="65" /> +<TGConnectingPoint num="7" id="66" /> +<extraparam> +<info value="TestCycleEvt_wait::C0" taskName="C0" referenceTaskName="TestCycleEvt_wait" priority="1" operationMEC="C0" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1101" id="76" > +<father id="101" num="1" /> +<cdparam x="220" y="208" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="TestCycleEvt_wait::C1" /> +<TGConnectingPoint num="0" id="68" /> +<TGConnectingPoint num="1" id="69" /> +<TGConnectingPoint num="2" id="70" /> +<TGConnectingPoint num="3" id="71" /> +<TGConnectingPoint num="4" id="72" /> +<TGConnectingPoint num="5" id="73" /> +<TGConnectingPoint num="6" id="74" /> +<TGConnectingPoint num="7" id="75" /> +<extraparam> +<info value="TestCycleEvt_wait::C1" taskName="C1" referenceTaskName="TestCycleEvt_wait" priority="9" operationMEC="C1" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1102" id="126" > +<cdparam x="496" y="341" /> +<sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Bus0" value="name" /> +<TGConnectingPoint num="0" id="102" /> +<TGConnectingPoint num="1" id="103" /> +<TGConnectingPoint num="2" id="104" /> +<TGConnectingPoint num="3" id="105" /> +<TGConnectingPoint num="4" id="106" /> +<TGConnectingPoint num="5" id="107" /> +<TGConnectingPoint num="6" id="108" /> +<TGConnectingPoint num="7" id="109" /> +<TGConnectingPoint num="8" id="110" /> +<TGConnectingPoint num="9" id="111" /> +<TGConnectingPoint num="10" id="112" /> +<TGConnectingPoint num="11" id="113" /> +<TGConnectingPoint num="12" id="114" /> +<TGConnectingPoint num="13" id="115" /> +<TGConnectingPoint num="14" id="116" /> +<TGConnectingPoint num="15" id="117" /> +<TGConnectingPoint num="16" id="118" /> +<TGConnectingPoint num="17" id="119" /> +<TGConnectingPoint num="18" id="120" /> +<TGConnectingPoint num="19" id="121" /> +<TGConnectingPoint num="20" id="122" /> +<TGConnectingPoint num="21" id="123" /> +<TGConnectingPoint num="22" id="124" /> +<TGConnectingPoint num="23" id="125" /> +<extraparam> +<info stereotype="Bus" nodeName="Bus0" /> +<attributes byteDataSize="4" arbitrationPolicy="0" sliceTime="10000" pipelineSize="1" clockRatio="1" privacy="0" referenceAttack="null" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1105" id="151" > +<cdparam x="749" y="86" /> +<sizeparam width="200" height="200" minWidth="100" minHeight="35" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Memory0" value="name" /> +<TGConnectingPoint num="0" id="127" /> +<TGConnectingPoint num="1" id="128" /> +<TGConnectingPoint num="2" id="129" /> +<TGConnectingPoint num="3" id="130" /> +<TGConnectingPoint num="4" id="131" /> +<TGConnectingPoint num="5" id="132" /> +<TGConnectingPoint num="6" id="133" /> +<TGConnectingPoint num="7" id="134" /> +<TGConnectingPoint num="8" id="135" /> +<TGConnectingPoint num="9" id="136" /> +<TGConnectingPoint num="10" id="137" /> +<TGConnectingPoint num="11" id="138" /> +<TGConnectingPoint num="12" id="139" /> +<TGConnectingPoint num="13" id="140" /> +<TGConnectingPoint num="14" id="141" /> +<TGConnectingPoint num="15" id="142" /> +<TGConnectingPoint num="16" id="143" /> +<TGConnectingPoint num="17" id="144" /> +<TGConnectingPoint num="18" id="145" /> +<TGConnectingPoint num="19" id="146" /> +<TGConnectingPoint num="20" id="147" /> +<TGConnectingPoint num="21" id="148" /> +<TGConnectingPoint num="22" id="149" /> +<TGConnectingPoint num="23" id="150" /> +<extraparam> +<info stereotype="MEMORY" nodeName="Memory0" /> +<attributes byteDataSize="4" memorySize="1024" clockRatio="1" bufferType="0" /> +</extraparam> +</COMPONENT> + +<CONNECTOR type="125" id="152" > +<cdparam x="430" y="233" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="430" y="233" id="90" /> +<P2 x="558" y="341" id="110" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="153" > +<cdparam x="799" y="286" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="799" y="286" id="141" /> +<P2 x="683" y="341" id="111" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> + +</TMLArchiDiagramPanel> + +</Modeling> + + + + +</TURTLEGMODELING> \ No newline at end of file diff --git a/ttool/src/test/resources/tmltranslator/simulator/delay-idle.xml b/ttool/src/test/resources/tmltranslator/simulator/delay-idle.xml new file mode 100644 index 0000000000000000000000000000000000000000..7c4f682100779db52833cc3ba52ce158210a014d --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/simulator/delay-idle.xml @@ -0,0 +1,488 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="true" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> + +<Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > +<TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > +<CONNECTOR type="126" id="1" > +<cdparam x="442" y="295" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<COMPONENT type="1202" id="12" > +<cdparam x="626" y="195" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="C1" /> +<TGConnectingPoint num="0" id="4" /> +<TGConnectingPoint num="1" id="5" /> +<TGConnectingPoint num="2" id="6" /> +<TGConnectingPoint num="3" id="7" /> +<TGConnectingPoint num="4" id="8" /> +<TGConnectingPoint num="5" id="9" /> +<TGConnectingPoint num="6" id="10" /> +<TGConnectingPoint num="7" id="11" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="x" value="" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="3" > +<father id="12" num="0" /> +<cdparam x="613" y="264" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt" /> +<TGConnectingPoint num="0" id="2" /> +<extraparam> +<Prop commName="evt" commType="1" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1202" id="23" > +<cdparam x="243" y="158" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="C0" /> +<TGConnectingPoint num="0" id="15" /> +<TGConnectingPoint num="1" id="16" /> +<TGConnectingPoint num="2" id="17" /> +<TGConnectingPoint num="3" id="18" /> +<TGConnectingPoint num="4" id="19" /> +<TGConnectingPoint num="5" id="20" /> +<TGConnectingPoint num="6" id="21" /> +<TGConnectingPoint num="7" id="22" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="x" value="0" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="14" > +<father id="23" num="0" /> +<cdparam x="430" y="245" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt" /> +<TGConnectingPoint num="0" id="13" /> +<extraparam> +<Prop commName="evt" commType="1" origin="true" finite="false" blocking="false" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + + +</TMLComponentTaskDiagramPanel> + +<TMLActivityDiagramPanel name="C1" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1030" id="26" > +<cdparam x="426" y="119" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="for ever loop" value="Loop for ever" /> +<TGConnectingPoint num="0" id="24" /> +<TGConnectingPoint num="1" id="25" /> +</COMPONENT> + +<COMPONENT type="1001" id="28" > +<cdparam x="513" y="301" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="27" /> +</COMPONENT> + +<COMPONENT type="1010" id="31" > +<cdparam x="496" y="185" /> +<sizeparam width="49" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evt(x) " /> +<TGConnectingPoint num="0" id="29" /> +<TGConnectingPoint num="1" id="30" /> +<extraparam> +<Data eventName="evt" nbOfParams="5" /> +<Param index="0" value="x" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="33" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="32" /> +</COMPONENT> + +<CONNECTOR type="115" id="34" > +<cdparam x="500" y="181" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="520" y="210" id="30" /> +<P2 x="523" y="296" id="27" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="35" > +<cdparam x="407" y="65" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="65" id="32" /> +<P2 x="472" y="114" id="24" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="36" > +<cdparam x="487" y="133" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="518" y="133" id="25" /> +<P2 x="520" y="180" id="29" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="C0" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1026" id="40" > +<cdparam x="547" y="256" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="delay" value="null" /> +<TGConnectingPoint num="0" id="38" /> +<TGConnectingPoint num="1" id="39" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="37" > +<father id="40" num="0" /> +<cdparam x="562" y="276" /> +<sizeparam width="28" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="1 us" /> +<extraparam> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="false" unit="us" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1001" id="42" > +<cdparam x="444" y="130" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="41" /> +</COMPONENT> + +<COMPONENT type="1020" id="46" > +<cdparam x="400" y="89" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="for loop" value="10" /> +<TGConnectingPoint num="0" id="43" /> +<TGConnectingPoint num="1" id="44" /> +<TGConnectingPoint num="2" id="45" /> +</COMPONENT> + +<COMPONENT type="1001" id="48" > +<cdparam x="562" y="325" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="47" /> +</COMPONENT> + +<COMPONENT type="1011" id="51" > +<cdparam x="494" y="170" /> +<sizeparam width="66" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="action state" value="x = x + 1" /> +<TGConnectingPoint num="0" id="49" /> +<TGConnectingPoint num="1" id="50" /> +</COMPONENT> + +<COMPONENT type="1008" id="54" > +<cdparam x="488" y="122" /> +<sizeparam width="45" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evt(x)" /> +<TGConnectingPoint num="0" id="52" /> +<TGConnectingPoint num="1" id="53" /> +<extraparam> +<Data eventName="evt" nbOfParams="5" /> +<Param index="0" value="x" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="56" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="55" /> +</COMPONENT> + +<CONNECTOR type="115" id="57" > +<cdparam x="532" y="197" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="510" y="147" id="53" /> +<P2 x="527" y="165" id="49" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="58" > +<cdparam x="407" y="65" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="65" id="55" /> +<P2 x="449" y="84" id="43" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="59" > +<cdparam x="459" y="113" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="498" y="103" id="44" /> +<P2 x="510" y="117" id="52" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="60" > +<cdparam x="449" y="114" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="449" y="114" id="45" /> +<P2 x="454" y="125" id="41" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="61" > +<cdparam x="527" y="195" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="527" y="195" id="50" /> +<P2 x="552" y="251" id="38" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="62" > +<cdparam x="552" y="291" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="552" y="291" id="39" /> +<P2 x="572" y="320" id="47" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +</Modeling> + + + + +<Modeling type="TML Architecture" nameTab="Architecture" > +<TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > +<COMPONENT type="1100" id="105" > +<cdparam x="180" y="83" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="CPU0" value="name" /> +<TGConnectingPoint num="0" id="81" /> +<TGConnectingPoint num="1" id="82" /> +<TGConnectingPoint num="2" id="83" /> +<TGConnectingPoint num="3" id="84" /> +<TGConnectingPoint num="4" id="85" /> +<TGConnectingPoint num="5" id="86" /> +<TGConnectingPoint num="6" id="87" /> +<TGConnectingPoint num="7" id="88" /> +<TGConnectingPoint num="8" id="89" /> +<TGConnectingPoint num="9" id="90" /> +<TGConnectingPoint num="10" id="91" /> +<TGConnectingPoint num="11" id="92" /> +<TGConnectingPoint num="12" id="93" /> +<TGConnectingPoint num="13" id="94" /> +<TGConnectingPoint num="14" id="95" /> +<TGConnectingPoint num="15" id="96" /> +<TGConnectingPoint num="16" id="97" /> +<TGConnectingPoint num="17" id="98" /> +<TGConnectingPoint num="18" id="99" /> +<TGConnectingPoint num="19" id="100" /> +<TGConnectingPoint num="20" id="101" /> +<TGConnectingPoint num="21" id="102" /> +<TGConnectingPoint num="22" id="103" /> +<TGConnectingPoint num="23" id="104" /> +<extraparam> +<info stereotype="CPURR" nodeName="CPU0" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="71" > +<father id="105" num="0" /> +<cdparam x="220" y="208" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="TestCycleEvt_wait::C1" /> +<TGConnectingPoint num="0" id="63" /> +<TGConnectingPoint num="1" id="64" /> +<TGConnectingPoint num="2" id="65" /> +<TGConnectingPoint num="3" id="66" /> +<TGConnectingPoint num="4" id="67" /> +<TGConnectingPoint num="5" id="68" /> +<TGConnectingPoint num="6" id="69" /> +<TGConnectingPoint num="7" id="70" /> +<extraparam> +<info value="TestCycleEvt_wait::C1" taskName="C1" referenceTaskName="TestCycleEvt_wait" priority="9" operationMEC="C1" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1101" id="80" > +<father id="105" num="1" /> +<cdparam x="222" y="143" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="TestCycleEvt_wait::C0" /> +<TGConnectingPoint num="0" id="72" /> +<TGConnectingPoint num="1" id="73" /> +<TGConnectingPoint num="2" id="74" /> +<TGConnectingPoint num="3" id="75" /> +<TGConnectingPoint num="4" id="76" /> +<TGConnectingPoint num="5" id="77" /> +<TGConnectingPoint num="6" id="78" /> +<TGConnectingPoint num="7" id="79" /> +<extraparam> +<info value="TestCycleEvt_wait::C0" taskName="C0" referenceTaskName="TestCycleEvt_wait" priority="1" operationMEC="C0" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1102" id="130" > +<cdparam x="496" y="341" /> +<sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Bus0" value="name" /> +<TGConnectingPoint num="0" id="106" /> +<TGConnectingPoint num="1" id="107" /> +<TGConnectingPoint num="2" id="108" /> +<TGConnectingPoint num="3" id="109" /> +<TGConnectingPoint num="4" id="110" /> +<TGConnectingPoint num="5" id="111" /> +<TGConnectingPoint num="6" id="112" /> +<TGConnectingPoint num="7" id="113" /> +<TGConnectingPoint num="8" id="114" /> +<TGConnectingPoint num="9" id="115" /> +<TGConnectingPoint num="10" id="116" /> +<TGConnectingPoint num="11" id="117" /> +<TGConnectingPoint num="12" id="118" /> +<TGConnectingPoint num="13" id="119" /> +<TGConnectingPoint num="14" id="120" /> +<TGConnectingPoint num="15" id="121" /> +<TGConnectingPoint num="16" id="122" /> +<TGConnectingPoint num="17" id="123" /> +<TGConnectingPoint num="18" id="124" /> +<TGConnectingPoint num="19" id="125" /> +<TGConnectingPoint num="20" id="126" /> +<TGConnectingPoint num="21" id="127" /> +<TGConnectingPoint num="22" id="128" /> +<TGConnectingPoint num="23" id="129" /> +<extraparam> +<info stereotype="Bus" nodeName="Bus0" /> +<attributes byteDataSize="4" arbitrationPolicy="0" sliceTime="10000" pipelineSize="1" clockRatio="1" privacy="0" referenceAttack="null" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1105" id="155" > +<cdparam x="749" y="86" /> +<sizeparam width="200" height="200" minWidth="100" minHeight="35" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Memory0" value="name" /> +<TGConnectingPoint num="0" id="131" /> +<TGConnectingPoint num="1" id="132" /> +<TGConnectingPoint num="2" id="133" /> +<TGConnectingPoint num="3" id="134" /> +<TGConnectingPoint num="4" id="135" /> +<TGConnectingPoint num="5" id="136" /> +<TGConnectingPoint num="6" id="137" /> +<TGConnectingPoint num="7" id="138" /> +<TGConnectingPoint num="8" id="139" /> +<TGConnectingPoint num="9" id="140" /> +<TGConnectingPoint num="10" id="141" /> +<TGConnectingPoint num="11" id="142" /> +<TGConnectingPoint num="12" id="143" /> +<TGConnectingPoint num="13" id="144" /> +<TGConnectingPoint num="14" id="145" /> +<TGConnectingPoint num="15" id="146" /> +<TGConnectingPoint num="16" id="147" /> +<TGConnectingPoint num="17" id="148" /> +<TGConnectingPoint num="18" id="149" /> +<TGConnectingPoint num="19" id="150" /> +<TGConnectingPoint num="20" id="151" /> +<TGConnectingPoint num="21" id="152" /> +<TGConnectingPoint num="22" id="153" /> +<TGConnectingPoint num="23" id="154" /> +<extraparam> +<info stereotype="MEMORY" nodeName="Memory0" /> +<attributes byteDataSize="4" memorySize="1024" clockRatio="1" bufferType="0" /> +</extraparam> +</COMPONENT> + +<CONNECTOR type="125" id="156" > +<cdparam x="430" y="233" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="430" y="233" id="94" /> +<P2 x="558" y="341" id="114" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="157" > +<cdparam x="799" y="286" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="799" y="286" id="145" /> +<P2 x="683" y="341" id="115" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> + +</TMLArchiDiagramPanel> + +</Modeling> + + + + +</TURTLEGMODELING> \ No newline at end of file diff --git a/ttool/src/test/resources/tmltranslator/simulator/delay-readwrite.xml b/ttool/src/test/resources/tmltranslator/simulator/delay-readwrite.xml new file mode 100644 index 0000000000000000000000000000000000000000..0215ca3de30f24402361b0dbbe91e0bf77c1e998 --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/simulator/delay-readwrite.xml @@ -0,0 +1,488 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="true" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> + +<Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > +<TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > +<CONNECTOR type="126" id="1" > +<cdparam x="442" y="295" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="Connector between ports" /> +<P1 x="456" y="258" id="13" /> +<P2 x="613" y="277" id="2" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<COMPONENT type="1202" id="12" > +<cdparam x="626" y="195" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="C1" /> +<TGConnectingPoint num="0" id="4" /> +<TGConnectingPoint num="1" id="5" /> +<TGConnectingPoint num="2" id="6" /> +<TGConnectingPoint num="3" id="7" /> +<TGConnectingPoint num="4" id="8" /> +<TGConnectingPoint num="5" id="9" /> +<TGConnectingPoint num="6" id="10" /> +<TGConnectingPoint num="7" id="11" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="x" value="" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="3" > +<father id="12" num="0" /> +<cdparam x="613" y="264" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt" /> +<TGConnectingPoint num="0" id="2" /> +<extraparam> +<Prop commName="evt" commType="1" origin="false" finite="false" blocking="true" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1202" id="23" > +<cdparam x="243" y="158" /> +<sizeparam width="200" height="150" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Primitive component" value="C0" /> +<TGConnectingPoint num="0" id="15" /> +<TGConnectingPoint num="1" id="16" /> +<TGConnectingPoint num="2" id="17" /> +<TGConnectingPoint num="3" id="18" /> +<TGConnectingPoint num="4" id="19" /> +<TGConnectingPoint num="5" id="20" /> +<TGConnectingPoint num="6" id="21" /> +<TGConnectingPoint num="7" id="22" /> +<extraparam> +<Data isAttacker="No" daemon="false" Operation="" /> +<Attribute access="2" id="x" value="0" type="0" typeOther="" /> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1203" id="14" > +<father id="23" num="0" /> +<cdparam x="430" y="245" /> +<sizeparam width="26" height="26" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-13" maxX="187" minY="-13" maxY="137" /> +<infoparam name="Primitive port" value="Event evt" /> +<TGConnectingPoint num="0" id="13" /> +<extraparam> +<Prop commName="evt" commType="1" origin="true" finite="false" blocking="false" maxSamples="8" widthSamples="4" isLossy="false" isPrex="false" isPostex="false" lossPercentage="0" maxNbOfLoss="0" dataFlowType="int16_t" associatedEvent="" checkConf="false" checkConfStatus="0" checkAuth="false" checkWeakAuthStatus="0" checkStrongAuthStatus="0" vc="0" /> +<Type type="1" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +<Type type="0" typeOther="" /> +</extraparam> +</SUBCOMPONENT> + + +</TMLComponentTaskDiagramPanel> + +<TMLActivityDiagramPanel name="C1" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1030" id="26" > +<cdparam x="426" y="119" /> +<sizeparam width="92" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="for ever loop" value="Loop for ever" /> +<TGConnectingPoint num="0" id="24" /> +<TGConnectingPoint num="1" id="25" /> +</COMPONENT> + +<COMPONENT type="1001" id="28" > +<cdparam x="513" y="301" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="27" /> +</COMPONENT> + +<COMPONENT type="1010" id="31" > +<cdparam x="496" y="185" /> +<sizeparam width="49" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="wait event" value="evt(x) " /> +<TGConnectingPoint num="0" id="29" /> +<TGConnectingPoint num="1" id="30" /> +<extraparam> +<Data eventName="evt" nbOfParams="5" /> +<Param index="0" value="x" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="33" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="32" /> +</COMPONENT> + +<CONNECTOR type="115" id="34" > +<cdparam x="500" y="181" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="520" y="210" id="30" /> +<P2 x="523" y="296" id="27" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="35" > +<cdparam x="407" y="65" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="65" id="32" /> +<P2 x="472" y="114" id="24" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="36" > +<cdparam x="487" y="133" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="518" y="133" id="25" /> +<P2 x="520" y="180" id="29" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +<TMLActivityDiagramPanel name="C0" minX="10" maxX="2500" minY="10" maxY="1500" > +<COMPONENT type="1026" id="40" > +<cdparam x="547" y="256" /> +<sizeparam width="10" height="30" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="delay" value="null" /> +<TGConnectingPoint num="0" id="38" /> +<TGConnectingPoint num="1" id="39" /> +</COMPONENT> +<SUBCOMPONENT type="-1" id="37" > +<father id="40" num="0" /> +<cdparam x="562" y="276" /> +<sizeparam width="28" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> +<infoparam name="value of the delay" value="1 us" /> +<extraparam> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1001" id="42" > +<cdparam x="444" y="130" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="41" /> +</COMPONENT> + +<COMPONENT type="1020" id="46" > +<cdparam x="400" y="89" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="for loop" value="10" /> +<TGConnectingPoint num="0" id="43" /> +<TGConnectingPoint num="1" id="44" /> +<TGConnectingPoint num="2" id="45" /> +</COMPONENT> + +<COMPONENT type="1001" id="48" > +<cdparam x="562" y="325" /> +<sizeparam width="20" height="20" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="stop state" value="null" /> +<TGConnectingPoint num="0" id="47" /> +</COMPONENT> + +<COMPONENT type="1011" id="51" > +<cdparam x="494" y="170" /> +<sizeparam width="66" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="action state" value="x = x + 1" /> +<TGConnectingPoint num="0" id="49" /> +<TGConnectingPoint num="1" id="50" /> +</COMPONENT> + +<COMPONENT type="1008" id="54" > +<cdparam x="488" y="122" /> +<sizeparam width="45" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<enabled value="true" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="send event" value="evt(x)" /> +<TGConnectingPoint num="0" id="52" /> +<TGConnectingPoint num="1" id="53" /> +<extraparam> +<Data eventName="evt" nbOfParams="5" /> +<Param index="0" value="x" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1000" id="56" > +<cdparam x="400" y="50" /> +<sizeparam width="15" height="15" minWidth="1" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="start state" value="null" /> +<TGConnectingPoint num="0" id="55" /> +</COMPONENT> + +<CONNECTOR type="115" id="57" > +<cdparam x="532" y="197" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="510" y="147" id="53" /> +<P2 x="527" y="165" id="49" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="58" > +<cdparam x="407" y="65" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="407" y="65" id="55" /> +<P2 x="449" y="84" id="43" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="59" > +<cdparam x="459" y="113" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="498" y="103" id="44" /> +<P2 x="510" y="117" id="52" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="60" > +<cdparam x="449" y="114" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="449" y="114" id="45" /> +<P2 x="454" y="125" id="41" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="61" > +<cdparam x="527" y="195" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="527" y="195" id="50" /> +<P2 x="552" y="251" id="38" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> +<CONNECTOR type="115" id="62" > +<cdparam x="552" y="291" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="null" /> +<P1 x="552" y="291" id="39" /> +<P2 x="572" y="320" id="47" /> +<AutomaticDrawing data="true" /> +</CONNECTOR> + +</TMLActivityDiagramPanel> + +</Modeling> + + + + +<Modeling type="TML Architecture" nameTab="Architecture" > +<TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > +<COMPONENT type="1100" id="105" > +<cdparam x="180" y="83" /> +<sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="CPU0" value="name" /> +<TGConnectingPoint num="0" id="81" /> +<TGConnectingPoint num="1" id="82" /> +<TGConnectingPoint num="2" id="83" /> +<TGConnectingPoint num="3" id="84" /> +<TGConnectingPoint num="4" id="85" /> +<TGConnectingPoint num="5" id="86" /> +<TGConnectingPoint num="6" id="87" /> +<TGConnectingPoint num="7" id="88" /> +<TGConnectingPoint num="8" id="89" /> +<TGConnectingPoint num="9" id="90" /> +<TGConnectingPoint num="10" id="91" /> +<TGConnectingPoint num="11" id="92" /> +<TGConnectingPoint num="12" id="93" /> +<TGConnectingPoint num="13" id="94" /> +<TGConnectingPoint num="14" id="95" /> +<TGConnectingPoint num="15" id="96" /> +<TGConnectingPoint num="16" id="97" /> +<TGConnectingPoint num="17" id="98" /> +<TGConnectingPoint num="18" id="99" /> +<TGConnectingPoint num="19" id="100" /> +<TGConnectingPoint num="20" id="101" /> +<TGConnectingPoint num="21" id="102" /> +<TGConnectingPoint num="22" id="103" /> +<TGConnectingPoint num="23" id="104" /> +<extraparam> +<info stereotype="CPURR" nodeName="CPU0" /> +<attributes nbOfCores="1" byteDataSize="4" schedulingPolicy="0" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> +</extraparam> +</COMPONENT> +<SUBCOMPONENT type="1101" id="71" > +<father id="105" num="0" /> +<cdparam x="222" y="143" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="TestCycleEvt_wait::C0" /> +<TGConnectingPoint num="0" id="63" /> +<TGConnectingPoint num="1" id="64" /> +<TGConnectingPoint num="2" id="65" /> +<TGConnectingPoint num="3" id="66" /> +<TGConnectingPoint num="4" id="67" /> +<TGConnectingPoint num="5" id="68" /> +<TGConnectingPoint num="6" id="69" /> +<TGConnectingPoint num="7" id="70" /> +<extraparam> +<info value="TestCycleEvt_wait::C0" taskName="C0" referenceTaskName="TestCycleEvt_wait" priority="1" operationMEC="C0" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> +<SUBCOMPONENT type="1101" id="80" > +<father id="105" num="1" /> +<cdparam x="220" y="208" /> +<sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> +<infoparam name="TGComponent" value="TestCycleEvt_wait::C1" /> +<TGConnectingPoint num="0" id="72" /> +<TGConnectingPoint num="1" id="73" /> +<TGConnectingPoint num="2" id="74" /> +<TGConnectingPoint num="3" id="75" /> +<TGConnectingPoint num="4" id="76" /> +<TGConnectingPoint num="5" id="77" /> +<TGConnectingPoint num="6" id="78" /> +<TGConnectingPoint num="7" id="79" /> +<extraparam> +<info value="TestCycleEvt_wait::C1" taskName="C1" referenceTaskName="TestCycleEvt_wait" priority="9" operationMEC="C1" fatherComponentMECType="0" /> +</extraparam> +</SUBCOMPONENT> + +<COMPONENT type="1102" id="130" > +<cdparam x="496" y="341" /> +<sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Bus0" value="name" /> +<TGConnectingPoint num="0" id="106" /> +<TGConnectingPoint num="1" id="107" /> +<TGConnectingPoint num="2" id="108" /> +<TGConnectingPoint num="3" id="109" /> +<TGConnectingPoint num="4" id="110" /> +<TGConnectingPoint num="5" id="111" /> +<TGConnectingPoint num="6" id="112" /> +<TGConnectingPoint num="7" id="113" /> +<TGConnectingPoint num="8" id="114" /> +<TGConnectingPoint num="9" id="115" /> +<TGConnectingPoint num="10" id="116" /> +<TGConnectingPoint num="11" id="117" /> +<TGConnectingPoint num="12" id="118" /> +<TGConnectingPoint num="13" id="119" /> +<TGConnectingPoint num="14" id="120" /> +<TGConnectingPoint num="15" id="121" /> +<TGConnectingPoint num="16" id="122" /> +<TGConnectingPoint num="17" id="123" /> +<TGConnectingPoint num="18" id="124" /> +<TGConnectingPoint num="19" id="125" /> +<TGConnectingPoint num="20" id="126" /> +<TGConnectingPoint num="21" id="127" /> +<TGConnectingPoint num="22" id="128" /> +<TGConnectingPoint num="23" id="129" /> +<extraparam> +<info stereotype="Bus" nodeName="Bus0" /> +<attributes byteDataSize="4" arbitrationPolicy="0" sliceTime="10000" pipelineSize="1" clockRatio="1" privacy="0" referenceAttack="null" /> +</extraparam> +</COMPONENT> + +<COMPONENT type="1105" id="155" > +<cdparam x="749" y="86" /> +<sizeparam width="200" height="200" minWidth="100" minHeight="35" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<hidden value="false" /> +<cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> +<infoparam name="Memory0" value="name" /> +<TGConnectingPoint num="0" id="131" /> +<TGConnectingPoint num="1" id="132" /> +<TGConnectingPoint num="2" id="133" /> +<TGConnectingPoint num="3" id="134" /> +<TGConnectingPoint num="4" id="135" /> +<TGConnectingPoint num="5" id="136" /> +<TGConnectingPoint num="6" id="137" /> +<TGConnectingPoint num="7" id="138" /> +<TGConnectingPoint num="8" id="139" /> +<TGConnectingPoint num="9" id="140" /> +<TGConnectingPoint num="10" id="141" /> +<TGConnectingPoint num="11" id="142" /> +<TGConnectingPoint num="12" id="143" /> +<TGConnectingPoint num="13" id="144" /> +<TGConnectingPoint num="14" id="145" /> +<TGConnectingPoint num="15" id="146" /> +<TGConnectingPoint num="16" id="147" /> +<TGConnectingPoint num="17" id="148" /> +<TGConnectingPoint num="18" id="149" /> +<TGConnectingPoint num="19" id="150" /> +<TGConnectingPoint num="20" id="151" /> +<TGConnectingPoint num="21" id="152" /> +<TGConnectingPoint num="22" id="153" /> +<TGConnectingPoint num="23" id="154" /> +<extraparam> +<info stereotype="MEMORY" nodeName="Memory0" /> +<attributes byteDataSize="4" memorySize="1024" clockRatio="1" bufferType="0" /> +</extraparam> +</COMPONENT> + +<CONNECTOR type="125" id="156" > +<cdparam x="430" y="233" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="430" y="233" id="94" /> +<P2 x="558" y="341" id="114" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="157" > +<cdparam x="799" y="286" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="799" y="286" id="145" /> +<P2 x="683" y="341" id="115" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> + +</TMLArchiDiagramPanel> + +</Modeling> + + + + +</TURTLEGMODELING> \ No newline at end of file diff --git a/ttool/src/test/resources/tmltranslator/simulator/delayRW.tarchi b/ttool/src/test/resources/tmltranslator/simulator/delayRW.tarchi new file mode 100644 index 0000000000000000000000000000000000000000..51eb42743eabc0c927ff073785849520699f5db7 --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/simulator/delayRW.tarchi @@ -0,0 +1,36 @@ +// Master clock frequency - in MHz +MASTERCLOCKFREQUENCY 200 + +NODE CPU CPU0 +SET CPU0 nbOfCores 1 +SET CPU0 byteDataSize 4 +SET CPU0 pipelineSize 5 +SET CPU0 goIdleTime 10 +SET CPU0 maxConsecutiveIdleCycles 10 +SET CPU0 taskSwitchingTime 20 +SET CPU0 branchingPredictionPenalty 2 +SET CPU0 cacheMiss 5 +SET CPU0 schedulingPolicy 0 +SET CPU0 sliceTime 1 +SET CPU0 execiTime 1 +SET CPU0 execcTime 1 +SET CPU0 clockDivider 1 + +NODE BUS Bus0 +SET Bus0 byteDataSize 4 +SET Bus0 pipelineSize 1 +SET Bus0 arbitration 0 +SET Bus0 clockDivider 1 + +NODE MEMORY Memory0 +SET Memory0 byteDataSize 4 +SET Memory0 clockDivider 1 + +NODE LINK link_CPU0_to_Bus0 +SET link_CPU0_to_Bus0 node CPU0 +SET link_CPU0_to_Bus0 bus Bus0 +SET link_CPU0_to_Bus0 priority 0 +NODE LINK link_Memory0_to_Bus0 +SET link_Memory0_to_Bus0 node Memory0 +SET link_Memory0_to_Bus0 bus Bus0 +SET link_Memory0_to_Bus0 priority 0 diff --git a/ttool/src/test/resources/tmltranslator/simulator/delayRW.tmap b/ttool/src/test/resources/tmltranslator/simulator/delayRW.tmap new file mode 100644 index 0000000000000000000000000000000000000000..27669b92d5ce0df3fc53232987ba27f5d33b876b --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/simulator/delayRW.tmap @@ -0,0 +1,14 @@ +TMLSPEC + #include "delayRW.tml" +ENDTMLSPEC + +TMLARCHI + #include "delayRW.tarchi" +ENDTMLARCHI + +TMLMAPPING + MAP CPU0 TestCycleEvt_wait__C0 + SET TestCycleEvt_wait__C0 priority 1 + MAP CPU0 TestCycleEvt_wait__C1 + SET TestCycleEvt_wait__C1 priority 9 +ENDTMLMAPPING diff --git a/ttool/src/test/resources/tmltranslator/simulator/delayRW.tml b/ttool/src/test/resources/tmltranslator/simulator/delayRW.tml new file mode 100644 index 0000000000000000000000000000000000000000..950690add33264b1f84c93d47b6d65da1022cf79 --- /dev/null +++ b/ttool/src/test/resources/tmltranslator/simulator/delayRW.tml @@ -0,0 +1,36 @@ +// TML Application - FORMAT 0.1 +// Application: /home/levan/Desktop/TTool/ttool/src/test/resources/tmltranslator/simulator/delay-readwrite.xml +// Generated: Fri Nov 15 17:28:44 CET 2019 + +// Channels + +// Events +EVENT TestCycleEvt_wait__evt__TestCycleEvt_wait__evt(int) INF TestCycleEvt_wait__C0 TestCycleEvt_wait__C1 + +// Requests + +TASK TestCycleEvt_wait__C0 + TASKOP + //Local variables + int x = 0 + int loop__0 = 0 + + //Behavior + FOR(loop__0 = 0; loop__0<10; loop__0 = loop__0 + 1) + NOTIFY TestCycleEvt_wait__evt__TestCycleEvt_wait__evt x + x=x+1 + DELAY 1 us isActiveDelay true + ENDFOR +ENDTASK + +TASK TestCycleEvt_wait__C1 + TASKOP + //Local variables + int x + + //Behavior + FOR( ; ; ) + WAIT TestCycleEvt_wait__evt__TestCycleEvt_wait__evt x + ENDFOR +ENDTASK + diff --git a/ttool/src/test/resources/tmltranslator/simulator/fpgaTest-penalty.xml b/ttool/src/test/resources/tmltranslator/simulator/fpgaTest-penalty.xml index eea3dd1bab42d4e5ca027cc1893a31c627f633ba..b8073b94256950fb3d630c78c626df5a9ae32322 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/fpgaTest-penalty.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/fpgaTest-penalty.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> <Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > <TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> @@ -307,158 +307,146 @@ <Modeling type="TML Architecture" nameTab="Architecture" > <TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > -<CONNECTOR type="125" id="184" > -<cdparam x="417" y="431" /> -<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> -<infoparam name="connector" value="{info}" /> -<P1 x="417" y="431" id="171" /> -<P2 x="558" y="391" id="77" /> -<AutomaticDrawing data="true" /> -<extraparam> -<info priority="0" /> -<spy value="false" /> -</extraparam> -</CONNECTOR> -<COMPONENT type="1116" id="159" > +<COMPONENT type="1116" id="105" > <cdparam x="167" y="381" /> <sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> <infoparam name="FPGA0" value="name" /> -<TGConnectingPoint num="0" id="160" /> -<TGConnectingPoint num="1" id="161" /> -<TGConnectingPoint num="2" id="162" /> -<TGConnectingPoint num="3" id="163" /> -<TGConnectingPoint num="4" id="164" /> -<TGConnectingPoint num="5" id="165" /> -<TGConnectingPoint num="6" id="166" /> -<TGConnectingPoint num="7" id="167" /> -<TGConnectingPoint num="8" id="168" /> -<TGConnectingPoint num="9" id="169" /> -<TGConnectingPoint num="10" id="170" /> -<TGConnectingPoint num="11" id="171" /> -<TGConnectingPoint num="12" id="172" /> -<TGConnectingPoint num="13" id="173" /> -<TGConnectingPoint num="14" id="174" /> -<TGConnectingPoint num="15" id="175" /> -<TGConnectingPoint num="16" id="176" /> -<TGConnectingPoint num="17" id="177" /> -<TGConnectingPoint num="18" id="178" /> -<TGConnectingPoint num="19" id="179" /> -<TGConnectingPoint num="20" id="180" /> -<TGConnectingPoint num="21" id="181" /> -<TGConnectingPoint num="22" id="182" /> -<TGConnectingPoint num="23" id="183" /> +<TGConnectingPoint num="0" id="81" /> +<TGConnectingPoint num="1" id="82" /> +<TGConnectingPoint num="2" id="83" /> +<TGConnectingPoint num="3" id="84" /> +<TGConnectingPoint num="4" id="85" /> +<TGConnectingPoint num="5" id="86" /> +<TGConnectingPoint num="6" id="87" /> +<TGConnectingPoint num="7" id="88" /> +<TGConnectingPoint num="8" id="89" /> +<TGConnectingPoint num="9" id="90" /> +<TGConnectingPoint num="10" id="91" /> +<TGConnectingPoint num="11" id="92" /> +<TGConnectingPoint num="12" id="93" /> +<TGConnectingPoint num="13" id="94" /> +<TGConnectingPoint num="14" id="95" /> +<TGConnectingPoint num="15" id="96" /> +<TGConnectingPoint num="16" id="97" /> +<TGConnectingPoint num="17" id="98" /> +<TGConnectingPoint num="18" id="99" /> +<TGConnectingPoint num="19" id="100" /> +<TGConnectingPoint num="20" id="101" /> +<TGConnectingPoint num="21" id="102" /> +<TGConnectingPoint num="22" id="103" /> +<TGConnectingPoint num="23" id="104" /> <extraparam> <info stereotype="FPGA" nodeName="FPGA0" /> <attributes capacity="100" byteDataSize="4" mappingPenalty="0" reconfigurationTime="50" goIdleTime="10" maxConsecutiveIdleCycles="10" execiTime="1" execcTime="1" clockRatio="1" operation ="" scheduling ="" /> </extraparam> </COMPONENT> -<SUBCOMPONENT type="1101" id="130" > -<father id="159" num="0" /> +<SUBCOMPONENT type="1101" id="71" > +<father id="105" num="0" /> <cdparam x="206" y="489" /> <sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> <infoparam name="TGComponent" value="TestCycleEvt_wait::C1" /> -<TGConnectingPoint num="0" id="122" /> -<TGConnectingPoint num="1" id="123" /> -<TGConnectingPoint num="2" id="124" /> -<TGConnectingPoint num="3" id="125" /> -<TGConnectingPoint num="4" id="126" /> -<TGConnectingPoint num="5" id="127" /> -<TGConnectingPoint num="6" id="128" /> -<TGConnectingPoint num="7" id="129" /> +<TGConnectingPoint num="0" id="63" /> +<TGConnectingPoint num="1" id="64" /> +<TGConnectingPoint num="2" id="65" /> +<TGConnectingPoint num="3" id="66" /> +<TGConnectingPoint num="4" id="67" /> +<TGConnectingPoint num="5" id="68" /> +<TGConnectingPoint num="6" id="69" /> +<TGConnectingPoint num="7" id="70" /> <extraparam> <info value="TestCycleEvt_wait::C1" taskName="C1" referenceTaskName="TestCycleEvt_wait" priority="0" operationMEC="C1" fatherComponentMECType="0" /> </extraparam> </SUBCOMPONENT> -<SUBCOMPONENT type="1101" id="121" > -<father id="159" num="1" /> +<SUBCOMPONENT type="1101" id="80" > +<father id="105" num="1" /> <cdparam x="203" y="424" /> <sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> <infoparam name="TGComponent" value="TestCycleEvt_wait::C0" /> -<TGConnectingPoint num="0" id="113" /> -<TGConnectingPoint num="1" id="114" /> -<TGConnectingPoint num="2" id="115" /> -<TGConnectingPoint num="3" id="116" /> -<TGConnectingPoint num="4" id="117" /> -<TGConnectingPoint num="5" id="118" /> -<TGConnectingPoint num="6" id="119" /> -<TGConnectingPoint num="7" id="120" /> +<TGConnectingPoint num="0" id="72" /> +<TGConnectingPoint num="1" id="73" /> +<TGConnectingPoint num="2" id="74" /> +<TGConnectingPoint num="3" id="75" /> +<TGConnectingPoint num="4" id="76" /> +<TGConnectingPoint num="5" id="77" /> +<TGConnectingPoint num="6" id="78" /> +<TGConnectingPoint num="7" id="79" /> <extraparam> <info value="TestCycleEvt_wait::C0" taskName="C0" referenceTaskName="TestCycleEvt_wait" priority="0" operationMEC="C0" fatherComponentMECType="0" /> </extraparam> </SUBCOMPONENT> -<COMPONENT type="1102" id="87" > +<COMPONENT type="1102" id="130" > <cdparam x="496" y="341" /> <sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> <infoparam name="Bus0" value="name" /> -<TGConnectingPoint num="0" id="63" /> -<TGConnectingPoint num="1" id="64" /> -<TGConnectingPoint num="2" id="65" /> -<TGConnectingPoint num="3" id="66" /> -<TGConnectingPoint num="4" id="67" /> -<TGConnectingPoint num="5" id="68" /> -<TGConnectingPoint num="6" id="69" /> -<TGConnectingPoint num="7" id="70" /> -<TGConnectingPoint num="8" id="71" /> -<TGConnectingPoint num="9" id="72" /> -<TGConnectingPoint num="10" id="73" /> -<TGConnectingPoint num="11" id="74" /> -<TGConnectingPoint num="12" id="75" /> -<TGConnectingPoint num="13" id="76" /> -<TGConnectingPoint num="14" id="77" /> -<TGConnectingPoint num="15" id="78" /> -<TGConnectingPoint num="16" id="79" /> -<TGConnectingPoint num="17" id="80" /> -<TGConnectingPoint num="18" id="81" /> -<TGConnectingPoint num="19" id="82" /> -<TGConnectingPoint num="20" id="83" /> -<TGConnectingPoint num="21" id="84" /> -<TGConnectingPoint num="22" id="85" /> -<TGConnectingPoint num="23" id="86" /> +<TGConnectingPoint num="0" id="106" /> +<TGConnectingPoint num="1" id="107" /> +<TGConnectingPoint num="2" id="108" /> +<TGConnectingPoint num="3" id="109" /> +<TGConnectingPoint num="4" id="110" /> +<TGConnectingPoint num="5" id="111" /> +<TGConnectingPoint num="6" id="112" /> +<TGConnectingPoint num="7" id="113" /> +<TGConnectingPoint num="8" id="114" /> +<TGConnectingPoint num="9" id="115" /> +<TGConnectingPoint num="10" id="116" /> +<TGConnectingPoint num="11" id="117" /> +<TGConnectingPoint num="12" id="118" /> +<TGConnectingPoint num="13" id="119" /> +<TGConnectingPoint num="14" id="120" /> +<TGConnectingPoint num="15" id="121" /> +<TGConnectingPoint num="16" id="122" /> +<TGConnectingPoint num="17" id="123" /> +<TGConnectingPoint num="18" id="124" /> +<TGConnectingPoint num="19" id="125" /> +<TGConnectingPoint num="20" id="126" /> +<TGConnectingPoint num="21" id="127" /> +<TGConnectingPoint num="22" id="128" /> +<TGConnectingPoint num="23" id="129" /> <extraparam> <info stereotype="Bus" nodeName="Bus0" /> <attributes byteDataSize="4" arbitrationPolicy="0" sliceTime="10000" pipelineSize="1" clockRatio="1" privacy="0" referenceAttack="null" /> </extraparam> </COMPONENT> -<COMPONENT type="1105" id="112" > +<COMPONENT type="1105" id="155" > <cdparam x="749" y="86" /> <sizeparam width="200" height="200" minWidth="100" minHeight="35" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> <infoparam name="Memory0" value="name" /> -<TGConnectingPoint num="0" id="88" /> -<TGConnectingPoint num="1" id="89" /> -<TGConnectingPoint num="2" id="90" /> -<TGConnectingPoint num="3" id="91" /> -<TGConnectingPoint num="4" id="92" /> -<TGConnectingPoint num="5" id="93" /> -<TGConnectingPoint num="6" id="94" /> -<TGConnectingPoint num="7" id="95" /> -<TGConnectingPoint num="8" id="96" /> -<TGConnectingPoint num="9" id="97" /> -<TGConnectingPoint num="10" id="98" /> -<TGConnectingPoint num="11" id="99" /> -<TGConnectingPoint num="12" id="100" /> -<TGConnectingPoint num="13" id="101" /> -<TGConnectingPoint num="14" id="102" /> -<TGConnectingPoint num="15" id="103" /> -<TGConnectingPoint num="16" id="104" /> -<TGConnectingPoint num="17" id="105" /> -<TGConnectingPoint num="18" id="106" /> -<TGConnectingPoint num="19" id="107" /> -<TGConnectingPoint num="20" id="108" /> -<TGConnectingPoint num="21" id="109" /> -<TGConnectingPoint num="22" id="110" /> -<TGConnectingPoint num="23" id="111" /> +<TGConnectingPoint num="0" id="131" /> +<TGConnectingPoint num="1" id="132" /> +<TGConnectingPoint num="2" id="133" /> +<TGConnectingPoint num="3" id="134" /> +<TGConnectingPoint num="4" id="135" /> +<TGConnectingPoint num="5" id="136" /> +<TGConnectingPoint num="6" id="137" /> +<TGConnectingPoint num="7" id="138" /> +<TGConnectingPoint num="8" id="139" /> +<TGConnectingPoint num="9" id="140" /> +<TGConnectingPoint num="10" id="141" /> +<TGConnectingPoint num="11" id="142" /> +<TGConnectingPoint num="12" id="143" /> +<TGConnectingPoint num="13" id="144" /> +<TGConnectingPoint num="14" id="145" /> +<TGConnectingPoint num="15" id="146" /> +<TGConnectingPoint num="16" id="147" /> +<TGConnectingPoint num="17" id="148" /> +<TGConnectingPoint num="18" id="149" /> +<TGConnectingPoint num="19" id="150" /> +<TGConnectingPoint num="20" id="151" /> +<TGConnectingPoint num="21" id="152" /> +<TGConnectingPoint num="22" id="153" /> +<TGConnectingPoint num="23" id="154" /> <extraparam> <info stereotype="MEMORY" nodeName="Memory0" /> <attributes byteDataSize="4" memorySize="1024" clockRatio="1" bufferType="0" /> @@ -466,11 +454,23 @@ </COMPONENT> <CONNECTOR type="125" id="156" > +<cdparam x="417" y="431" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="417" y="431" id="92" /> +<P2 x="558" y="391" id="120" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="157" > <cdparam x="799" y="286" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="{info}" /> -<P1 x="799" y="286" id="102" /> -<P2 x="683" y="341" id="72" /> +<P1 x="799" y="286" id="145" /> +<P2 x="683" y="341" id="115" /> <AutomaticDrawing data="true" /> <extraparam> <info priority="0" /> diff --git a/ttool/src/test/resources/tmltranslator/simulator/fpgaTest.xml b/ttool/src/test/resources/tmltranslator/simulator/fpgaTest.xml index eea3dd1bab42d4e5ca027cc1893a31c627f633ba..b8073b94256950fb3d630c78c626df5a9ae32322 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/fpgaTest.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/fpgaTest.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> <Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > <TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> @@ -307,158 +307,146 @@ <Modeling type="TML Architecture" nameTab="Architecture" > <TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > -<CONNECTOR type="125" id="184" > -<cdparam x="417" y="431" /> -<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> -<infoparam name="connector" value="{info}" /> -<P1 x="417" y="431" id="171" /> -<P2 x="558" y="391" id="77" /> -<AutomaticDrawing data="true" /> -<extraparam> -<info priority="0" /> -<spy value="false" /> -</extraparam> -</CONNECTOR> -<COMPONENT type="1116" id="159" > +<COMPONENT type="1116" id="105" > <cdparam x="167" y="381" /> <sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> <infoparam name="FPGA0" value="name" /> -<TGConnectingPoint num="0" id="160" /> -<TGConnectingPoint num="1" id="161" /> -<TGConnectingPoint num="2" id="162" /> -<TGConnectingPoint num="3" id="163" /> -<TGConnectingPoint num="4" id="164" /> -<TGConnectingPoint num="5" id="165" /> -<TGConnectingPoint num="6" id="166" /> -<TGConnectingPoint num="7" id="167" /> -<TGConnectingPoint num="8" id="168" /> -<TGConnectingPoint num="9" id="169" /> -<TGConnectingPoint num="10" id="170" /> -<TGConnectingPoint num="11" id="171" /> -<TGConnectingPoint num="12" id="172" /> -<TGConnectingPoint num="13" id="173" /> -<TGConnectingPoint num="14" id="174" /> -<TGConnectingPoint num="15" id="175" /> -<TGConnectingPoint num="16" id="176" /> -<TGConnectingPoint num="17" id="177" /> -<TGConnectingPoint num="18" id="178" /> -<TGConnectingPoint num="19" id="179" /> -<TGConnectingPoint num="20" id="180" /> -<TGConnectingPoint num="21" id="181" /> -<TGConnectingPoint num="22" id="182" /> -<TGConnectingPoint num="23" id="183" /> +<TGConnectingPoint num="0" id="81" /> +<TGConnectingPoint num="1" id="82" /> +<TGConnectingPoint num="2" id="83" /> +<TGConnectingPoint num="3" id="84" /> +<TGConnectingPoint num="4" id="85" /> +<TGConnectingPoint num="5" id="86" /> +<TGConnectingPoint num="6" id="87" /> +<TGConnectingPoint num="7" id="88" /> +<TGConnectingPoint num="8" id="89" /> +<TGConnectingPoint num="9" id="90" /> +<TGConnectingPoint num="10" id="91" /> +<TGConnectingPoint num="11" id="92" /> +<TGConnectingPoint num="12" id="93" /> +<TGConnectingPoint num="13" id="94" /> +<TGConnectingPoint num="14" id="95" /> +<TGConnectingPoint num="15" id="96" /> +<TGConnectingPoint num="16" id="97" /> +<TGConnectingPoint num="17" id="98" /> +<TGConnectingPoint num="18" id="99" /> +<TGConnectingPoint num="19" id="100" /> +<TGConnectingPoint num="20" id="101" /> +<TGConnectingPoint num="21" id="102" /> +<TGConnectingPoint num="22" id="103" /> +<TGConnectingPoint num="23" id="104" /> <extraparam> <info stereotype="FPGA" nodeName="FPGA0" /> <attributes capacity="100" byteDataSize="4" mappingPenalty="0" reconfigurationTime="50" goIdleTime="10" maxConsecutiveIdleCycles="10" execiTime="1" execcTime="1" clockRatio="1" operation ="" scheduling ="" /> </extraparam> </COMPONENT> -<SUBCOMPONENT type="1101" id="130" > -<father id="159" num="0" /> +<SUBCOMPONENT type="1101" id="71" > +<father id="105" num="0" /> <cdparam x="206" y="489" /> <sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> <infoparam name="TGComponent" value="TestCycleEvt_wait::C1" /> -<TGConnectingPoint num="0" id="122" /> -<TGConnectingPoint num="1" id="123" /> -<TGConnectingPoint num="2" id="124" /> -<TGConnectingPoint num="3" id="125" /> -<TGConnectingPoint num="4" id="126" /> -<TGConnectingPoint num="5" id="127" /> -<TGConnectingPoint num="6" id="128" /> -<TGConnectingPoint num="7" id="129" /> +<TGConnectingPoint num="0" id="63" /> +<TGConnectingPoint num="1" id="64" /> +<TGConnectingPoint num="2" id="65" /> +<TGConnectingPoint num="3" id="66" /> +<TGConnectingPoint num="4" id="67" /> +<TGConnectingPoint num="5" id="68" /> +<TGConnectingPoint num="6" id="69" /> +<TGConnectingPoint num="7" id="70" /> <extraparam> <info value="TestCycleEvt_wait::C1" taskName="C1" referenceTaskName="TestCycleEvt_wait" priority="0" operationMEC="C1" fatherComponentMECType="0" /> </extraparam> </SUBCOMPONENT> -<SUBCOMPONENT type="1101" id="121" > -<father id="159" num="1" /> +<SUBCOMPONENT type="1101" id="80" > +<father id="105" num="1" /> <cdparam x="203" y="424" /> <sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> <infoparam name="TGComponent" value="TestCycleEvt_wait::C0" /> -<TGConnectingPoint num="0" id="113" /> -<TGConnectingPoint num="1" id="114" /> -<TGConnectingPoint num="2" id="115" /> -<TGConnectingPoint num="3" id="116" /> -<TGConnectingPoint num="4" id="117" /> -<TGConnectingPoint num="5" id="118" /> -<TGConnectingPoint num="6" id="119" /> -<TGConnectingPoint num="7" id="120" /> +<TGConnectingPoint num="0" id="72" /> +<TGConnectingPoint num="1" id="73" /> +<TGConnectingPoint num="2" id="74" /> +<TGConnectingPoint num="3" id="75" /> +<TGConnectingPoint num="4" id="76" /> +<TGConnectingPoint num="5" id="77" /> +<TGConnectingPoint num="6" id="78" /> +<TGConnectingPoint num="7" id="79" /> <extraparam> <info value="TestCycleEvt_wait::C0" taskName="C0" referenceTaskName="TestCycleEvt_wait" priority="0" operationMEC="C0" fatherComponentMECType="0" /> </extraparam> </SUBCOMPONENT> -<COMPONENT type="1102" id="87" > +<COMPONENT type="1102" id="130" > <cdparam x="496" y="341" /> <sizeparam width="250" height="50" minWidth="100" minHeight="50" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> <infoparam name="Bus0" value="name" /> -<TGConnectingPoint num="0" id="63" /> -<TGConnectingPoint num="1" id="64" /> -<TGConnectingPoint num="2" id="65" /> -<TGConnectingPoint num="3" id="66" /> -<TGConnectingPoint num="4" id="67" /> -<TGConnectingPoint num="5" id="68" /> -<TGConnectingPoint num="6" id="69" /> -<TGConnectingPoint num="7" id="70" /> -<TGConnectingPoint num="8" id="71" /> -<TGConnectingPoint num="9" id="72" /> -<TGConnectingPoint num="10" id="73" /> -<TGConnectingPoint num="11" id="74" /> -<TGConnectingPoint num="12" id="75" /> -<TGConnectingPoint num="13" id="76" /> -<TGConnectingPoint num="14" id="77" /> -<TGConnectingPoint num="15" id="78" /> -<TGConnectingPoint num="16" id="79" /> -<TGConnectingPoint num="17" id="80" /> -<TGConnectingPoint num="18" id="81" /> -<TGConnectingPoint num="19" id="82" /> -<TGConnectingPoint num="20" id="83" /> -<TGConnectingPoint num="21" id="84" /> -<TGConnectingPoint num="22" id="85" /> -<TGConnectingPoint num="23" id="86" /> +<TGConnectingPoint num="0" id="106" /> +<TGConnectingPoint num="1" id="107" /> +<TGConnectingPoint num="2" id="108" /> +<TGConnectingPoint num="3" id="109" /> +<TGConnectingPoint num="4" id="110" /> +<TGConnectingPoint num="5" id="111" /> +<TGConnectingPoint num="6" id="112" /> +<TGConnectingPoint num="7" id="113" /> +<TGConnectingPoint num="8" id="114" /> +<TGConnectingPoint num="9" id="115" /> +<TGConnectingPoint num="10" id="116" /> +<TGConnectingPoint num="11" id="117" /> +<TGConnectingPoint num="12" id="118" /> +<TGConnectingPoint num="13" id="119" /> +<TGConnectingPoint num="14" id="120" /> +<TGConnectingPoint num="15" id="121" /> +<TGConnectingPoint num="16" id="122" /> +<TGConnectingPoint num="17" id="123" /> +<TGConnectingPoint num="18" id="124" /> +<TGConnectingPoint num="19" id="125" /> +<TGConnectingPoint num="20" id="126" /> +<TGConnectingPoint num="21" id="127" /> +<TGConnectingPoint num="22" id="128" /> +<TGConnectingPoint num="23" id="129" /> <extraparam> <info stereotype="Bus" nodeName="Bus0" /> <attributes byteDataSize="4" arbitrationPolicy="0" sliceTime="10000" pipelineSize="1" clockRatio="1" privacy="0" referenceAttack="null" /> </extraparam> </COMPONENT> -<COMPONENT type="1105" id="112" > +<COMPONENT type="1105" id="155" > <cdparam x="749" y="86" /> <sizeparam width="200" height="200" minWidth="100" minHeight="35" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> <infoparam name="Memory0" value="name" /> -<TGConnectingPoint num="0" id="88" /> -<TGConnectingPoint num="1" id="89" /> -<TGConnectingPoint num="2" id="90" /> -<TGConnectingPoint num="3" id="91" /> -<TGConnectingPoint num="4" id="92" /> -<TGConnectingPoint num="5" id="93" /> -<TGConnectingPoint num="6" id="94" /> -<TGConnectingPoint num="7" id="95" /> -<TGConnectingPoint num="8" id="96" /> -<TGConnectingPoint num="9" id="97" /> -<TGConnectingPoint num="10" id="98" /> -<TGConnectingPoint num="11" id="99" /> -<TGConnectingPoint num="12" id="100" /> -<TGConnectingPoint num="13" id="101" /> -<TGConnectingPoint num="14" id="102" /> -<TGConnectingPoint num="15" id="103" /> -<TGConnectingPoint num="16" id="104" /> -<TGConnectingPoint num="17" id="105" /> -<TGConnectingPoint num="18" id="106" /> -<TGConnectingPoint num="19" id="107" /> -<TGConnectingPoint num="20" id="108" /> -<TGConnectingPoint num="21" id="109" /> -<TGConnectingPoint num="22" id="110" /> -<TGConnectingPoint num="23" id="111" /> +<TGConnectingPoint num="0" id="131" /> +<TGConnectingPoint num="1" id="132" /> +<TGConnectingPoint num="2" id="133" /> +<TGConnectingPoint num="3" id="134" /> +<TGConnectingPoint num="4" id="135" /> +<TGConnectingPoint num="5" id="136" /> +<TGConnectingPoint num="6" id="137" /> +<TGConnectingPoint num="7" id="138" /> +<TGConnectingPoint num="8" id="139" /> +<TGConnectingPoint num="9" id="140" /> +<TGConnectingPoint num="10" id="141" /> +<TGConnectingPoint num="11" id="142" /> +<TGConnectingPoint num="12" id="143" /> +<TGConnectingPoint num="13" id="144" /> +<TGConnectingPoint num="14" id="145" /> +<TGConnectingPoint num="15" id="146" /> +<TGConnectingPoint num="16" id="147" /> +<TGConnectingPoint num="17" id="148" /> +<TGConnectingPoint num="18" id="149" /> +<TGConnectingPoint num="19" id="150" /> +<TGConnectingPoint num="20" id="151" /> +<TGConnectingPoint num="21" id="152" /> +<TGConnectingPoint num="22" id="153" /> +<TGConnectingPoint num="23" id="154" /> <extraparam> <info stereotype="MEMORY" nodeName="Memory0" /> <attributes byteDataSize="4" memorySize="1024" clockRatio="1" bufferType="0" /> @@ -466,11 +454,23 @@ </COMPONENT> <CONNECTOR type="125" id="156" > +<cdparam x="417" y="431" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="417" y="431" id="92" /> +<P2 x="558" y="391" id="120" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> +<CONNECTOR type="125" id="157" > <cdparam x="799" y="286" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="{info}" /> -<P1 x="799" y="286" id="102" /> -<P2 x="683" y="341" id="72" /> +<P1 x="799" y="286" id="145" /> +<P2 x="683" y="341" id="115" /> <AutomaticDrawing data="true" /> <extraparam> <info priority="0" /> diff --git a/ttool/src/test/resources/tmltranslator/simulator/mono-RR-penalty.xml b/ttool/src/test/resources/tmltranslator/simulator/mono-RR-penalty.xml index 1d18a5bc39547d99ff786740cfc14c2a5bce91fd..fb8cc201c721ca9da33df0ffbbaa1f9b84bd6fa0 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/mono-RR-penalty.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/mono-RR-penalty.xml @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> diff --git a/ttool/src/test/resources/tmltranslator/simulator/mono-RR.xml b/ttool/src/test/resources/tmltranslator/simulator/mono-RR.xml index 1d18a5bc39547d99ff786740cfc14c2a5bce91fd..fb8cc201c721ca9da33df0ffbbaa1f9b84bd6fa0 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/mono-RR.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/mono-RR.xml @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> diff --git a/ttool/src/test/resources/tmltranslator/simulator/mono-RRPB-penalty.xml b/ttool/src/test/resources/tmltranslator/simulator/mono-RRPB-penalty.xml index 2d93550577cfbd31417bd0996bbb4edf668f2936..855fa12bf261e66fa28bef166b382ac96aa18066 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/mono-RRPB-penalty.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/mono-RRPB-penalty.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> <Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > <TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> diff --git a/ttool/src/test/resources/tmltranslator/simulator/mono-RRPB.xml b/ttool/src/test/resources/tmltranslator/simulator/mono-RRPB.xml index 2d93550577cfbd31417bd0996bbb4edf668f2936..855fa12bf261e66fa28bef166b382ac96aa18066 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/mono-RRPB.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/mono-RRPB.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> <Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > <TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> diff --git a/ttool/src/test/resources/tmltranslator/simulator/multi-RR-penalty.xml b/ttool/src/test/resources/tmltranslator/simulator/multi-RR-penalty.xml index 827033d74cb25e236455d800c2a22c47a8906ede..46bec07e259ad28735fe5e912368ab9e6c06bb21 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/multi-RR-penalty.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/multi-RR-penalty.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> <Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > <TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> diff --git a/ttool/src/test/resources/tmltranslator/simulator/multi-RR.xml b/ttool/src/test/resources/tmltranslator/simulator/multi-RR.xml index 827033d74cb25e236455d800c2a22c47a8906ede..46bec07e259ad28735fe5e912368ab9e6c06bb21 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/multi-RR.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/multi-RR.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> <Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > <TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> diff --git a/ttool/src/test/resources/tmltranslator/simulator/multi-RRPB-penalty.xml b/ttool/src/test/resources/tmltranslator/simulator/multi-RRPB-penalty.xml index 191a8e83310345354cb20e71528b8ff4dd5ceaaa..48ca59ac3f180efc56775ae2397eb5fecb93688c 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/multi-RRPB-penalty.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/multi-RRPB-penalty.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> <Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > <TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> @@ -307,87 +307,75 @@ <Modeling type="TML Architecture" nameTab="Architecture" > <TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > -<CONNECTOR type="125" id="184" > -<cdparam x="493" y="261" /> -<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> -<infoparam name="connector" value="{info}" /> -<P1 x="493" y="261" id="173" /> -<P2 x="558" y="341" id="114" /> -<AutomaticDrawing data="true" /> -<extraparam> -<info priority="0" /> -<spy value="false" /> -</extraparam> -</CONNECTOR> -<COMPONENT type="1100" id="159" > +<COMPONENT type="1100" id="105" > <cdparam x="243" y="111" /> <sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> <infoparam name="CPU0" value="name" /> -<TGConnectingPoint num="0" id="160" /> -<TGConnectingPoint num="1" id="161" /> -<TGConnectingPoint num="2" id="162" /> -<TGConnectingPoint num="3" id="163" /> -<TGConnectingPoint num="4" id="164" /> -<TGConnectingPoint num="5" id="165" /> -<TGConnectingPoint num="6" id="166" /> -<TGConnectingPoint num="7" id="167" /> -<TGConnectingPoint num="8" id="168" /> -<TGConnectingPoint num="9" id="169" /> -<TGConnectingPoint num="10" id="170" /> -<TGConnectingPoint num="11" id="171" /> -<TGConnectingPoint num="12" id="172" /> -<TGConnectingPoint num="13" id="173" /> -<TGConnectingPoint num="14" id="174" /> -<TGConnectingPoint num="15" id="175" /> -<TGConnectingPoint num="16" id="176" /> -<TGConnectingPoint num="17" id="177" /> -<TGConnectingPoint num="18" id="178" /> -<TGConnectingPoint num="19" id="179" /> -<TGConnectingPoint num="20" id="180" /> -<TGConnectingPoint num="21" id="181" /> -<TGConnectingPoint num="22" id="182" /> -<TGConnectingPoint num="23" id="183" /> +<TGConnectingPoint num="0" id="81" /> +<TGConnectingPoint num="1" id="82" /> +<TGConnectingPoint num="2" id="83" /> +<TGConnectingPoint num="3" id="84" /> +<TGConnectingPoint num="4" id="85" /> +<TGConnectingPoint num="5" id="86" /> +<TGConnectingPoint num="6" id="87" /> +<TGConnectingPoint num="7" id="88" /> +<TGConnectingPoint num="8" id="89" /> +<TGConnectingPoint num="9" id="90" /> +<TGConnectingPoint num="10" id="91" /> +<TGConnectingPoint num="11" id="92" /> +<TGConnectingPoint num="12" id="93" /> +<TGConnectingPoint num="13" id="94" /> +<TGConnectingPoint num="14" id="95" /> +<TGConnectingPoint num="15" id="96" /> +<TGConnectingPoint num="16" id="97" /> +<TGConnectingPoint num="17" id="98" /> +<TGConnectingPoint num="18" id="99" /> +<TGConnectingPoint num="19" id="100" /> +<TGConnectingPoint num="20" id="101" /> +<TGConnectingPoint num="21" id="102" /> +<TGConnectingPoint num="22" id="103" /> +<TGConnectingPoint num="23" id="104" /> <extraparam> <info stereotype="CPURRPB" nodeName="CPU0" /> <attributes nbOfCores="2" byteDataSize="4" schedulingPolicy="1" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> </extraparam> </COMPONENT> -<SUBCOMPONENT type="1101" id="80" > -<father id="159" num="0" /> +<SUBCOMPONENT type="1101" id="71" > +<father id="105" num="0" /> <cdparam x="284" y="238" /> <sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> <infoparam name="TGComponent" value="TestCycleEvt_wait::C1" /> -<TGConnectingPoint num="0" id="72" /> -<TGConnectingPoint num="1" id="73" /> -<TGConnectingPoint num="2" id="74" /> -<TGConnectingPoint num="3" id="75" /> -<TGConnectingPoint num="4" id="76" /> -<TGConnectingPoint num="5" id="77" /> -<TGConnectingPoint num="6" id="78" /> -<TGConnectingPoint num="7" id="79" /> +<TGConnectingPoint num="0" id="63" /> +<TGConnectingPoint num="1" id="64" /> +<TGConnectingPoint num="2" id="65" /> +<TGConnectingPoint num="3" id="66" /> +<TGConnectingPoint num="4" id="67" /> +<TGConnectingPoint num="5" id="68" /> +<TGConnectingPoint num="6" id="69" /> +<TGConnectingPoint num="7" id="70" /> <extraparam> <info value="TestCycleEvt_wait::C1" taskName="C1" referenceTaskName="TestCycleEvt_wait" priority="0" operationMEC="C1" fatherComponentMECType="0" /> </extraparam> </SUBCOMPONENT> -<SUBCOMPONENT type="1101" id="71" > -<father id="159" num="1" /> +<SUBCOMPONENT type="1101" id="80" > +<father id="105" num="1" /> <cdparam x="276" y="165" /> <sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> <infoparam name="TGComponent" value="TestCycleEvt_wait::C0" /> -<TGConnectingPoint num="0" id="63" /> -<TGConnectingPoint num="1" id="64" /> -<TGConnectingPoint num="2" id="65" /> -<TGConnectingPoint num="3" id="66" /> -<TGConnectingPoint num="4" id="67" /> -<TGConnectingPoint num="5" id="68" /> -<TGConnectingPoint num="6" id="69" /> -<TGConnectingPoint num="7" id="70" /> +<TGConnectingPoint num="0" id="72" /> +<TGConnectingPoint num="1" id="73" /> +<TGConnectingPoint num="2" id="74" /> +<TGConnectingPoint num="3" id="75" /> +<TGConnectingPoint num="4" id="76" /> +<TGConnectingPoint num="5" id="77" /> +<TGConnectingPoint num="6" id="78" /> +<TGConnectingPoint num="7" id="79" /> <extraparam> <info value="TestCycleEvt_wait::C0" taskName="C0" referenceTaskName="TestCycleEvt_wait" priority="0" operationMEC="C0" fatherComponentMECType="0" /> </extraparam> @@ -465,6 +453,18 @@ </extraparam> </COMPONENT> +<CONNECTOR type="125" id="156" > +<cdparam x="493" y="261" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="493" y="261" id="94" /> +<P2 x="558" y="341" id="114" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> <CONNECTOR type="125" id="157" > <cdparam x="799" y="286" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> diff --git a/ttool/src/test/resources/tmltranslator/simulator/multi-RRPB.xml b/ttool/src/test/resources/tmltranslator/simulator/multi-RRPB.xml index 191a8e83310345354cb20e71528b8ff4dd5ceaaa..48ca59ac3f180efc56775ae2397eb5fecb93688c 100644 --- a/ttool/src/test/resources/tmltranslator/simulator/multi-RRPB.xml +++ b/ttool/src/test/resources/tmltranslator/simulator/multi-RRPB.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="1" LAST_SELECTED_SUB_TAB="0"> +<TURTLEGMODELING version="1.0beta" ANIMATE_INTERACTIVE_SIMULATION="true" ACTIVATE_PENALTIES="false" UPDATE_INFORMATION_DIPLO_SIM="false" ANIMATE_WITH_INFO_DIPLO_SIM="true" OPEN_DIAG_DIPLO_SIM="false" LAST_SELECTED_MAIN_TAB="0" LAST_SELECTED_SUB_TAB="2"> <Modeling type="TML Component Design" nameTab="TestCycleEvt_wait" tabs="TML Component Task Diagram$C1$C0" > <TMLComponentTaskDiagramPanel name="TML Component Task Diagram" minX="10" maxX="2500" minY="10" maxY="1500" channels="true" events="true" requests="true" zoom="1.0" > @@ -8,8 +8,8 @@ <cdparam x="442" y="295" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="Connector between ports" /> -<P1 x="456" y="258" id="13" /> -<P2 x="613" y="277" id="2" /> +<P1 x="443" y="245" id="13" /> +<P2 x="626" y="264" id="2" /> <AutomaticDrawing data="true" /> </CONNECTOR> <COMPONENT type="1202" id="12" > @@ -172,12 +172,12 @@ </COMPONENT> <COMPONENT type="1020" id="42" > -<cdparam x="374" y="98" /> -<sizeparam width="106" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<cdparam x="378" y="98" /> +<sizeparam width="98" height="20" minWidth="30" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <enabled value="true" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> -<infoparam name="for loop" value="100" /> +<infoparam name="for loop" value="10" /> <TGConnectingPoint num="0" id="39" /> <TGConnectingPoint num="1" id="40" /> <TGConnectingPoint num="2" id="41" /> @@ -201,7 +201,7 @@ <cdrectangleparam minX="-75" maxX="30" minY="10" maxY="30" /> <infoparam name="value of the delay" value="1 us" /> <extraparam> -<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" unit="us" /> +<TimeDelay minDelay="1" maxDelay="nope" hasMaxDelay="false" isActiveDelay="true" unit="us" /> </extraparam> </SUBCOMPONENT> @@ -285,7 +285,7 @@ <cdparam x="476" y="99" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <infoparam name="connector" value="null" /> -<P1 x="480" y="112" id="40" /> +<P1 x="476" y="112" id="40" /> <P2 x="510" y="117" id="52" /> <AutomaticDrawing data="true" /> </CONNECTOR> @@ -307,87 +307,75 @@ <Modeling type="TML Architecture" nameTab="Architecture" > <TMLArchiDiagramPanel name="DIPLODOCUS architecture and mapping Diagram" minX="10" maxX="2500" minY="10" maxY="1500" attributes="0" masterClockFrequency="200" > -<CONNECTOR type="125" id="184" > -<cdparam x="493" y="261" /> -<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> -<infoparam name="connector" value="{info}" /> -<P1 x="493" y="261" id="173" /> -<P2 x="558" y="341" id="114" /> -<AutomaticDrawing data="true" /> -<extraparam> -<info priority="0" /> -<spy value="false" /> -</extraparam> -</CONNECTOR> -<COMPONENT type="1100" id="159" > +<COMPONENT type="1100" id="105" > <cdparam x="243" y="111" /> <sizeparam width="250" height="200" minWidth="150" minHeight="100" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="10" maxX="2500" minY="10" maxY="1500" /> <infoparam name="CPU0" value="name" /> -<TGConnectingPoint num="0" id="160" /> -<TGConnectingPoint num="1" id="161" /> -<TGConnectingPoint num="2" id="162" /> -<TGConnectingPoint num="3" id="163" /> -<TGConnectingPoint num="4" id="164" /> -<TGConnectingPoint num="5" id="165" /> -<TGConnectingPoint num="6" id="166" /> -<TGConnectingPoint num="7" id="167" /> -<TGConnectingPoint num="8" id="168" /> -<TGConnectingPoint num="9" id="169" /> -<TGConnectingPoint num="10" id="170" /> -<TGConnectingPoint num="11" id="171" /> -<TGConnectingPoint num="12" id="172" /> -<TGConnectingPoint num="13" id="173" /> -<TGConnectingPoint num="14" id="174" /> -<TGConnectingPoint num="15" id="175" /> -<TGConnectingPoint num="16" id="176" /> -<TGConnectingPoint num="17" id="177" /> -<TGConnectingPoint num="18" id="178" /> -<TGConnectingPoint num="19" id="179" /> -<TGConnectingPoint num="20" id="180" /> -<TGConnectingPoint num="21" id="181" /> -<TGConnectingPoint num="22" id="182" /> -<TGConnectingPoint num="23" id="183" /> +<TGConnectingPoint num="0" id="81" /> +<TGConnectingPoint num="1" id="82" /> +<TGConnectingPoint num="2" id="83" /> +<TGConnectingPoint num="3" id="84" /> +<TGConnectingPoint num="4" id="85" /> +<TGConnectingPoint num="5" id="86" /> +<TGConnectingPoint num="6" id="87" /> +<TGConnectingPoint num="7" id="88" /> +<TGConnectingPoint num="8" id="89" /> +<TGConnectingPoint num="9" id="90" /> +<TGConnectingPoint num="10" id="91" /> +<TGConnectingPoint num="11" id="92" /> +<TGConnectingPoint num="12" id="93" /> +<TGConnectingPoint num="13" id="94" /> +<TGConnectingPoint num="14" id="95" /> +<TGConnectingPoint num="15" id="96" /> +<TGConnectingPoint num="16" id="97" /> +<TGConnectingPoint num="17" id="98" /> +<TGConnectingPoint num="18" id="99" /> +<TGConnectingPoint num="19" id="100" /> +<TGConnectingPoint num="20" id="101" /> +<TGConnectingPoint num="21" id="102" /> +<TGConnectingPoint num="22" id="103" /> +<TGConnectingPoint num="23" id="104" /> <extraparam> <info stereotype="CPURRPB" nodeName="CPU0" /> <attributes nbOfCores="2" byteDataSize="4" schedulingPolicy="1" sliceTime="1" goIdleTime="10" maxConsecutiveIdleCycles="10" pipelineSize="5" taskSwitchingTime="20" branchingPredictionPenalty="2" cacheMiss="5" execiTime="1" execcTime="1" clockRatio="1" operation="" MECType="0" encryption="0"/> </extraparam> </COMPONENT> -<SUBCOMPONENT type="1101" id="80" > -<father id="159" num="0" /> +<SUBCOMPONENT type="1101" id="71" > +<father id="105" num="0" /> <cdparam x="284" y="238" /> <sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> <infoparam name="TGComponent" value="TestCycleEvt_wait::C1" /> -<TGConnectingPoint num="0" id="72" /> -<TGConnectingPoint num="1" id="73" /> -<TGConnectingPoint num="2" id="74" /> -<TGConnectingPoint num="3" id="75" /> -<TGConnectingPoint num="4" id="76" /> -<TGConnectingPoint num="5" id="77" /> -<TGConnectingPoint num="6" id="78" /> -<TGConnectingPoint num="7" id="79" /> +<TGConnectingPoint num="0" id="63" /> +<TGConnectingPoint num="1" id="64" /> +<TGConnectingPoint num="2" id="65" /> +<TGConnectingPoint num="3" id="66" /> +<TGConnectingPoint num="4" id="67" /> +<TGConnectingPoint num="5" id="68" /> +<TGConnectingPoint num="6" id="69" /> +<TGConnectingPoint num="7" id="70" /> <extraparam> <info value="TestCycleEvt_wait::C1" taskName="C1" referenceTaskName="TestCycleEvt_wait" priority="0" operationMEC="C1" fatherComponentMECType="0" /> </extraparam> </SUBCOMPONENT> -<SUBCOMPONENT type="1101" id="71" > -<father id="159" num="1" /> +<SUBCOMPONENT type="1101" id="80" > +<father id="105" num="1" /> <cdparam x="276" y="165" /> <sizeparam width="168" height="40" minWidth="100" minHeight="1" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> <hidden value="false" /> <cdrectangleparam minX="0" maxX="82" minY="0" maxY="160" /> <infoparam name="TGComponent" value="TestCycleEvt_wait::C0" /> -<TGConnectingPoint num="0" id="63" /> -<TGConnectingPoint num="1" id="64" /> -<TGConnectingPoint num="2" id="65" /> -<TGConnectingPoint num="3" id="66" /> -<TGConnectingPoint num="4" id="67" /> -<TGConnectingPoint num="5" id="68" /> -<TGConnectingPoint num="6" id="69" /> -<TGConnectingPoint num="7" id="70" /> +<TGConnectingPoint num="0" id="72" /> +<TGConnectingPoint num="1" id="73" /> +<TGConnectingPoint num="2" id="74" /> +<TGConnectingPoint num="3" id="75" /> +<TGConnectingPoint num="4" id="76" /> +<TGConnectingPoint num="5" id="77" /> +<TGConnectingPoint num="6" id="78" /> +<TGConnectingPoint num="7" id="79" /> <extraparam> <info value="TestCycleEvt_wait::C0" taskName="C0" referenceTaskName="TestCycleEvt_wait" priority="0" operationMEC="C0" fatherComponentMECType="0" /> </extraparam> @@ -465,6 +453,18 @@ </extraparam> </COMPONENT> +<CONNECTOR type="125" id="156" > +<cdparam x="493" y="261" /> +<sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" /> +<infoparam name="connector" value="{info}" /> +<P1 x="493" y="261" id="94" /> +<P2 x="558" y="341" id="114" /> +<AutomaticDrawing data="true" /> +<extraparam> +<info priority="0" /> +<spy value="false" /> +</extraparam> +</CONNECTOR> <CONNECTOR type="125" id="157" > <cdparam x="799" y="286" /> <sizeparam width="0" height="0" minWidth="0" minHeight="0" maxWidth="2000" maxHeight="2000" minDesiredWidth="0" minDesiredHeight="0" />