Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
d32c94ff
Commit
d32c94ff
authored
May 17, 2017
by
Jens Korinth
Browse files
Closes
#72
- Rename .bit file
* changed to better name reflecting composition, target and freq
parent
f149a3d0
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/scala/tapasco/activity/composers/Composer.scala
View file @
d32c94ff
...
...
@@ -24,6 +24,7 @@
**/
package
de.tu_darmstadt.cs.esa.tapasco.activity.composers
import
de.tu_darmstadt.cs.esa.tapasco.base._
import
de.tu_darmstadt.cs.esa.tapasco.dse._
import
de.tu_darmstadt.cs.esa.tapasco.reports._
/** Wrapper trait for synthesis tools: basic interface to synthesise compositions
...
...
@@ -78,6 +79,12 @@ object Composer {
case
Implementation
.
Vivado
=>
new
VivadoComposer
()(
cfg
,
maxThreads
)
}
/** Make a name for the Composer project. */
def
mkProjectName
(
c
:
Composition
,
t
:
Target
,
f
:
Heuristics.Frequency
)
:
String
=
"%s--%s--%s"
.
format
(
"%s-%s"
.
format
(
t
.
ad
.
name
,
t
.
pd
.
name
),
c
.
composition
map
(
ce
=>
"%s_%d"
.
format
(
ce
.
kernel
.
replaceAll
(
" "
,
"-"
),
ce
.
count
))
mkString
(
"_"
),
"%05.1f"
.
format
(
f
))
/** Extended result with additional information as provided by the tool. **/
final
case
class
Result
(
result
:
ComposeResult
,
...
...
src/main/scala/tapasco/activity/composers/VivadoComposer.scala
View file @
d32c94ff
...
...
@@ -54,7 +54,7 @@ class VivadoComposer()(implicit cfg: Configuration, maxThreads: Option[Int]) ext
// create Tcl script
mkTclScript
(
fromTemplate
=
Common
.
commonDir
.
resolve
(
"design.master.tcl.template"
),
to
=
files
.
tclFile
,
projectName
=
bd
.
id
,
projectName
=
Composer
.
mkProjectName
(
bd
,
target
,
f
)
,
header
=
makeHeader
(
bd
,
target
,
f
,
archFeatures
,
platformFeatures
),
target
=
target
,
composition
=
composition
(
bd
,
target
))
...
...
Jens Korinth
@jk
mentioned in commit
a831b501
·
Jul 14, 2017
mentioned in commit
a831b501
mentioned in commit a831b5015df6bd8f8d23ddd334a3b1159392de92
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment