-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SemanticsExporter to easily access Semantics info
- Loading branch information
1 parent
129079c
commit 5616745
Showing
10 changed files
with
278 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ala/onera/pmlanalyzer/views/interference/examples/mySys/MySysInterferenceGeneration.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023. ONERA | ||
* This file is part of PML Analyzer | ||
* | ||
* PML Analyzer is free software ; | ||
* you can redistribute it and/or modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation ; | ||
* either version 2 of the License, or (at your option) any later version. | ||
* | ||
* PML Analyzer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY ; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License along with this program ; | ||
* if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
******************************************************************************/ | ||
|
||
package onera.pmlanalyzer.views.interference.examples.mySys | ||
|
||
import onera.pmlanalyzer.pml.examples.mySys.MySysExport.* | ||
import onera.pmlanalyzer.views.interference.operators.* | ||
|
||
import scala.concurrent.duration.* | ||
import scala.language.postfixOps | ||
|
||
/** | ||
* Compute the interference of the SimpleKeystone defined in [[pml.examples.mySys.MySysExport]] | ||
*/ | ||
object MySysInterferenceGeneration extends App { | ||
// Compute only up to 2-ite and 2-free | ||
MySys.computeKInterference(2, 2 hours) | ||
|
||
// Compute all ite and itf for benchmarks | ||
MySys.computeAllInterference( 2 hours, ignoreExistingAnalysisFiles = true) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/scala/onera/pmlanalyzer/views/interference/examples/mySys/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023. ONERA | ||
* This file is part of PML Analyzer | ||
* | ||
* PML Analyzer is free software ; | ||
* you can redistribute it and/or modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation ; | ||
* either version 2 of the License, or (at your option) any later version. | ||
* | ||
* PML Analyzer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY ; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License along with this program ; | ||
* if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
******************************************************************************/ | ||
|
||
package onera.pmlanalyzer.views.interference.examples | ||
|
||
/** | ||
* Package containing an example on a simplification of a TI Keystone platform | ||
* @see [[MyProcPhysicalTableBasedInterferenceSpecification]] provides an example of hardware interference assumption modelling | ||
* @see [[MySysInterferenceSpecification]] provides an example of application interference assumption modelling | ||
* @see [[MySysInterferenceGeneration]] provides an example of interference analysis for the simplified | ||
* Keystone platform | ||
*/ | ||
package object mySys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/main/scala/onera/pmlanalyzer/views/interference/exporters/SemanticsExporter.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023. ONERA | ||
* This file is part of PML Analyzer | ||
* | ||
* PML Analyzer is free software ; | ||
* you can redistribute it and/or modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation ; | ||
* either version 2 of the License, or (at your option) any later version. | ||
* | ||
* PML Analyzer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY ; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License along with this program ; | ||
* if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
******************************************************************************/ | ||
|
||
package onera.pmlanalyzer.views.interference.exporters | ||
|
||
import onera.pmlanalyzer.pml.model.hardware.{Hardware, Platform} | ||
import onera.pmlanalyzer.pml.operators.Provided | ||
import onera.pmlanalyzer.views.interference.operators.* | ||
import onera.pmlanalyzer.pml.exporters.FileManager | ||
|
||
import java.io.{File, FileWriter} | ||
|
||
object SemanticsExporter { | ||
trait Ops { | ||
extension[T<: Platform](self:T) { | ||
def exportSemanticsSize()(using ev: Analyse[T],p:Provided[T,Hardware]): File = { | ||
val file = FileManager.exportDirectory.getFile(self.fullName + "SemanticsSize.txt") | ||
val writer = new FileWriter(file) | ||
val semantics = self.getSemanticsSize | ||
writer.write("Multi-transaction cardinal, Number\n") | ||
for( (i,n) <- semantics) | ||
writer.write(s"$i, $n\n") | ||
writer.close() | ||
file | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.