-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1424 from ucb-bar/new-cfg-finder
New Scala-based Config Finder
- Loading branch information
Showing
5 changed files
with
29 additions
and
86 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package chipyard | ||
|
||
import org.reflections.Reflections | ||
import org.reflections.scanners.Scanners.SubTypes | ||
import scala.jdk.CollectionConverters._ | ||
import scala.collection.{SortedSet} | ||
|
||
import freechips.rocketchip.config.{Config} | ||
|
||
object ConfigFinder { | ||
def main(args: Array[String]) = { | ||
val reflections = new Reflections() | ||
val classes = reflections.get(SubTypes.of(classOf[Config]).asClass()).asScala | ||
val sortedClasses = SortedSet[String]() ++ classes.map(_.getName) | ||
for (cls <- sortedClasses) { | ||
println(cls) | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.