Repository navigation
Expand file tree
/
Copy pathbuild.sbt
More file actions
62 lines (58 loc) · 1.9 KB
/
Copy pathbuild.sbt
File metadata and controls
62 lines (58 loc) · 1.9 KB
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
// See README.md for license details.
ThisBuild / scalaVersion := "2.13.12"
ThisBuild / version := "0.1.0"
ThisBuild / organization := "com.github.codingplatelets"
val chiselVersion = "6.2.0"
lazy val commonChiselSettings = Seq(
libraryDependencies ++= Seq(
"org.chipsalliance" %% "chisel" % chiselVersion,
"edu.berkeley.cs" %% "chiseltest" % "6.0.0",
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4"
),
resolvers += "huaweiyun".at("https://repo.huaweicloud.com/repository/maven/"),
scalacOptions ++= Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
"-Ymacro-annotations"
),
addCompilerPlugin(("org.chipsalliance" % "chisel-plugin" % chiselVersion).cross(CrossVersion.full))
)
lazy val root = (project in file("."))
.dependsOn(fputil)
.dependsOn(fputilNopipe)
.dependsOn(hardfloat)
.settings(
name := "transformer_MM",
// fork := true,
// javaOptions += "-Xmx50G",
commonChiselSettings
)
lazy val fputil = Project("fputil", file("dependencies/fputil/src"))
.settings(
name := "fputil",
commonChiselSettings
)
.settings(
Compile / scalaSource := baseDirectory.value / "main" / "scala",
Compile / resourceDirectory := baseDirectory.value / "main" / "resources"
)
lazy val fputilNopipe = Project("fputilNopipe", file("dependencies/fputil-nopipe/src"))
.settings(
name := "fputilNopipe",
commonChiselSettings
)
.settings(
Compile / scalaSource := baseDirectory.value / "main" / "scala",
Compile / resourceDirectory := baseDirectory.value / "main" / "resources"
)
lazy val hardfloat = Project("hardfloat", file("dependencies/hardfloat/hardfloat/src"))
.settings(
name := "hardfloat",
commonChiselSettings
)
.settings(
Compile / scalaSource := baseDirectory.value / "main" / "scala",
Compile / resourceDirectory := baseDirectory.value / "main" / "resources"
)