Commit b0724575 authored by Jens Korinth's avatar Jens Korinth
Browse files

Closes #99 - Allow selective Core building in itapasco

* as requested, HLS runs will only be initiated for Platforms and
  Architectures selected in the corresponding tabs
parent 2dd2b14f
...@@ -71,10 +71,10 @@ class CorePanelController extends { ...@@ -71,10 +71,10 @@ class CorePanelController extends {
_logger.trace("starting HLS execution in background ...") _logger.trace("starting HLS execution in background ...")
Future { Future {
HighLevelSynthesisJob( HighLevelSynthesisJob(
_implementation = "VivadoHLS", // Vivado HLS by default _implementation = "VivadoHLS", // Vivado HLS by default
_architectures = None, // all Architectures _architectures = Job.job.architectureNames, // all selected Architectures
_platforms = None, // all Platforms _platforms = Job.job.platformNames, // all selected Platforms
_kernels = Some(Seq(k.name)) // only Kernel k _kernels = Some(Seq(k.name)) // only Kernel k
).execute ).execute
} }
_logger.trace("HLS running for {}", k) _logger.trace("HLS running for {}", k)
......
...@@ -130,10 +130,16 @@ final case class DesignSpaceExplorationJob( ...@@ -130,10 +130,16 @@ final case class DesignSpaceExplorationJob(
def architectures: Set[Architecture] = def architectures: Set[Architecture] =
FileAssetManager.entities.architectures filter (a => _architectures map (_.contains(a.name)) getOrElse true) FileAssetManager.entities.architectures filter (a => _architectures map (_.contains(a.name)) getOrElse true)
/** Returns the name filter for [[base.Architecture]] instances. */
def architectureNames = _architectures
/** Returns the list of [[base.Platform]] instances selected in this job. */ /** Returns the list of [[base.Platform]] instances selected in this job. */
def platforms: Set[Platform] = def platforms: Set[Platform] =
FileAssetManager.entities.platforms filter (p => _platforms map (_.contains(p.name)) getOrElse true) FileAssetManager.entities.platforms filter (p => _platforms map (_.contains(p.name)) getOrElse true)
/** Returns the name filter for [[base.Platform]] instances. */
def platformNames = _platforms
/** Returns the first target (alphabetically Arch - Platform). */ /** Returns the first target (alphabetically Arch - Platform). */
def target: Target = targets.head def target: Target = targets.head
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment