Skip to content

Commit

Permalink
[ChiselSim] Remove LayerControl filter
Browse files Browse the repository at this point in the history
Remove `LayerControl`'s filter as this is no longer load-bearing.

Signed-off-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
seldridge committed Dec 11, 2024
1 parent 327aca1 commit d116f79
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/main/scala-2/chisel3/simulator/LayerControl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ object LayerControl {
/** The type of all layer control variations */
sealed trait Type {

/** Return true if a file should be included in the build. This will always
* return true for any non-layer file.
* @param file the file to check
*/
final def filter(file: File): Boolean = file.getName match {
case nonLayer if !nonLayer.startsWith("layers-") => true
case layer => shouldEnable(layer)
}

/** Return true if a layer should be included in the build.
* @param layerFilename the filename of a layer
*/
protected def shouldEnable(layerFilename: String): Boolean

/** Return the layers that should be enabled in a circuit. The layers must exist in the design.
*
* @param design an Annotation that contains an elaborated design used to check that the requested layers exist
Expand Down Expand Up @@ -82,7 +68,6 @@ object LayerControl {

/** Enable all layers */
final case object EnableAll extends Type {
override protected def shouldEnable(layerFilename: String) = true

override protected def getLayerSubset(module: ElaboratedModule[_]): Seq[Layer] = module.layers
}
Expand All @@ -103,7 +88,6 @@ object LayerControl {
re.matches(_)
}
}
override protected def shouldEnable(filename: String) = _shouldEnable(filename)

override protected def getLayerSubset(module: ElaboratedModule[_]): Seq[Layer] = {
val definedLayers = module.layers
Expand Down

0 comments on commit d116f79

Please sign in to comment.