Skip to content

Commit

Permalink
Update build.sbt to use X.5-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbiancolin authored and abejgonzalez committed Jan 17, 2022
1 parent 8172f7a commit 71ea647
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,19 @@ def isolateAllTests(tests: Seq[TestDefinition]) = tests map { test =>
new Group(test.name, Seq(test), SubProcess(options))
} toSeq

val chiselVersion = "3.4.4"
val chiselVersion = "3.5.0-RC1"

lazy val chiselSettings = Seq(
libraryDependencies ++= Seq("edu.berkeley.cs" %% "chisel3" % chiselVersion),
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % chiselVersion cross CrossVersion.full))

val firrtlVersion = "1.4.4"
val firrtlVersion = "1.5.0-RC1"

lazy val firrtlSettings = Seq(libraryDependencies ++= Seq("edu.berkeley.cs" %% "firrtl" % firrtlVersion))

// In some projects we override the default versions of Chisel and friends.
// This map captures the expected defaults used by projects under Chipyard.
lazy val chipyardMandatedVersions = Map(
"chisel-iotesters" -> "1.5.4",
"firrtl-interpreter" -> "1.4.4",
"treadle" -> "1.3.4",
"chisel3" -> chiselVersion,
"firrtl" -> firrtlVersion
)
val chiselTestVersion = "2.5.0-RC1"

lazy val chiselTestSettings = Seq(libraryDependencies ++= Seq("edu.berkeley.cs" %% "chisel-iotesters" % chiselTestVersion))

// Subproject definitions begin

Expand Down Expand Up @@ -138,19 +132,6 @@ lazy val rocketLibDeps = (rocketchip / Keys.libraryDependencies)

// -- Chipyard-managed External Projects --

// Because we're not using a release version of iotesters to work around a
// scala test version problem, override it's libdeps to prevent using snapshots
lazy val chisel_testers = (project in file("tools/chisel-testers"))
.settings(chiselSettings)
.settings(
allDependencies := allDependencies.value.map {
case dep if chipyardMandatedVersions.isDefinedAt(dep.name) =>
dep.organization %% dep.name % chipyardMandatedVersions(dep.name)
case o => o
})

// -- Normal Projects --

// Contains annotations & firrtl passes you may wish to use in rocket-chip without
// introducing a circular dependency between RC and MIDAS
lazy val midasTargetUtils = ProjectRef(firesimDir, "targetutils")
Expand Down Expand Up @@ -204,13 +185,15 @@ lazy val sodor = (project in file("generators/riscv-sodor"))
.settings(commonSettings)

lazy val sha3 = (project in file("generators/sha3"))
.dependsOn(rocketchip, chisel_testers, midasTargetUtils)
.dependsOn(rocketchip, midasTargetUtils)
.settings(libraryDependencies ++= rocketLibDeps.value)
.settings(chiselTestSettings)
.settings(commonSettings)

lazy val gemmini = (project in file("generators/gemmini"))
.dependsOn(testchipip, rocketchip, chisel_testers)
.dependsOn(testchipip, rocketchip)
.settings(libraryDependencies ++= rocketLibDeps.value)
.settings(chiselTestSettings)
.settings(commonSettings)

lazy val nvdla = (project in file("generators/nvdla"))
Expand All @@ -223,7 +206,8 @@ lazy val iocell = (project in file("./tools/barstools/iocell/"))
.settings(commonSettings)

lazy val tapeout = (project in file("./tools/barstools/tapeout/"))
.dependsOn(chisel_testers, chipyard) // must depend on chipyard to get scala resources
.dependsOn(chipyard) // must depend on chipyard to get scala resources
.settings(chiselTestSettings)
.settings(commonSettings)

lazy val mdf = (project in file("./tools/barstools/mdf/scalalib/"))
Expand All @@ -236,7 +220,7 @@ lazy val barstoolsMacros = (project in file("./tools/barstools/macros/"))
.settings(commonSettings)

lazy val dsptools = freshProject("dsptools", file("./tools/dsptools"))
.dependsOn(chisel_testers)
.settings(chiselTestSettings)
.settings(
commonSettings,
libraryDependencies ++= Seq(
Expand Down

0 comments on commit 71ea647

Please sign in to comment.