-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sc
41 lines (35 loc) · 1.06 KB
/
build.sc
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
// import Mill dependency
import mill._
import mill.scalalib._
import mill.scalalib.scalafmt.ScalafmtModule
import mill.scalalib.TestModule.Utest
// support BSP
import mill.bsp._
trait BaseScalaModule extends ScalaModule with ScalafmtModule {
override def scalaVersion = "2.13.12"
override def scalacOptions = Seq(
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit"
)
override def ivyDeps = Agg(
ivy"org.chipsalliance::chisel:7.0.0-M1"
)
override def scalacPluginIvyDeps = Agg(
ivy"org.chipsalliance:::chisel-plugin:7.0.0-M1"
)
}
object sim extends BaseScalaModule {
override def moduleDeps = super.moduleDeps ++ Seq(cpu, peripheral, external)
}
object cpu extends BaseScalaModule {
override def moduleDeps = super.moduleDeps ++ Seq(peripheral, utils, external)
}
object peripheral extends BaseScalaModule {
override def moduleDeps = super.moduleDeps ++ Seq(utils, external)
}
object utils extends BaseScalaModule {
override def moduleDeps = super.moduleDeps ++ Seq(external)
}
object external extends BaseScalaModule