-
Notifications
You must be signed in to change notification settings - Fork 196
/
build.sbt
75 lines (64 loc) · 2.58 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
val chiselVersion = "3.6.1"
lazy val commonSettings = Seq(
organization := "edu.berkeley.cs",
version := "1.0",
scalaVersion := "2.13.10",
parallelExecution in Global := false,
scalacOptions ++= Seq("-deprecation","-unchecked"),
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % chiselVersion cross CrossVersion.full),
libraryDependencies ++= Seq("edu.berkeley.cs" %% "chisel3" % chiselVersion),
libraryDependencies ++= Seq("org.json4s" %% "json4s-jackson" % "4.0.5"))
lazy val vivado = (project in file("."))
.dependsOn(cde)
.dependsOn(boom)
.dependsOn(rocketchip)
.dependsOn(sifive_cache)
.dependsOn(gemmini)
.settings(commonSettings)
.settings(assemblyJarName in assembly := "system.jar")
.settings(assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
})
lazy val hardfloat = (project in file("rocket-chip/hardfloat"))
.settings(commonSettings)
lazy val rocket_macros = (project in file("rocket-chip/macros"))
.settings(commonSettings)
lazy val rocketchip = (project in file("rocket-chip"))
.dependsOn(cde)
.dependsOn(hardfloat)
.dependsOn(rocket_macros)
.settings(commonSettings)
.settings( // Settings for scalafix
semanticdbEnabled := true,
semanticdbVersion := scalafixSemanticdb.revision,
scalacOptions += "-Ywarn-unused"
)
.settings(libraryDependencies ++= Seq("com.lihaoyi" %% "mainargs" % "0.5.0"))
lazy val testchipip = (project in file("generators/testchipip"))
.dependsOn(cde)
.dependsOn(rocketchip)
.settings(commonSettings)
.settings(includeFilter in unmanagedSources := { "Util.scala" || "TraceIO.scala" || "Serdes.scala" })
lazy val boom = Project(id = "boom", base = file("generators/riscv-boom") / "src")
.dependsOn(cde)
.dependsOn(rocketchip)
.dependsOn(testchipip)
.settings(commonSettings)
.settings(scalaSource in Compile := baseDirectory.value / "main/scala")
lazy val sifive_cache = (project in file("generators/sifive-cache"))
.dependsOn(cde)
.dependsOn(rocketchip)
.settings(commonSettings)
.settings(scalaSource in Compile := baseDirectory.value / "design/craft")
lazy val gemmini = (project in file("generators/gemmini"))
.dependsOn(cde)
.dependsOn(rocketchip)
.dependsOn(testchipip)
.dependsOn(targetutils)
.settings(commonSettings)
lazy val targetutils = (project in file("generators/targetutils"))
.settings(commonSettings)
lazy val cde = (project in file("rocket-chip/cde"))
.settings(commonSettings)
.settings(scalaSource in Compile := baseDirectory.value / "cde/src/chipsalliance/rocketchip")