summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authormergify[bot]2022-02-01 19:56:13 +0000
committerGitHub2022-02-01 19:56:13 +0000
commitea1ced34b5c9e42412cc0ac3e7431cd3194ccbc3 (patch)
tree2c51bccf3c954b85746e127bf9f7dccca9863a16 /build.sbt
parent91ad2312cab72442fcfec9c28576b5464669f8fd (diff)
Chisel plugin bundle elements handler (#2306) (#2380)
Adds generation of `Bundle.elements` method to the chores done by the compiler plugin For each `Bundle` find the relevant visible Chisel field members and construct a hard-coded list of the elements and their names implemented as `_elementsImpl` For more details: See plugins/README.md - Should be no change in API - Handles inheritance and mixins - Handles Seq[Data] - Tests in BundleElementSpec Co-authored-by: chick <chick.markley@sifive.com> Co-authored-by: Jack Koenig <koenig@sifive.com> (cherry picked from commit 237200a420581519f29149cbae9b3e968c0d01fc) Co-authored-by: Chick Markley <chick@qrhino.com>
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index b9406c8f..f5f178fd 100644
--- a/build.sbt
+++ b/build.sbt
@@ -198,6 +198,7 @@ lazy val chisel = (project in file(".")).
settings(
mimaPreviousArtifacts := Set("edu.berkeley.cs" %% "chisel3" % "3.5.0"),
libraryDependencies += defaultVersions("treadle") % "test",
+ Test / scalacOptions += "-P:chiselplugin:genBundleElements",
scalacOptions in Test ++= Seq("-language:reflectiveCalls"),
scalacOptions in Compile in doc ++= Seq(
"-diagrams",