-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.sbt
89 lines (76 loc) · 2.66 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* Copyright (C) 2020-2023 by phantom
* Email: [email protected]
* This file is under MIT License, see https://www.phvntom.tech/LICENSE.txt
*/
Global / lintUnusedKeysOnLoad := false
val chiselVersion = "3.6.0"
lazy val commonSettings = Seq(
organization := "zjv",
version := "0.2",
scalaVersion := "2.13.10",
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:reflectiveCalls",
"-Ymacro-annotations"
),
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % chiselVersion cross CrossVersion.full),
libraryDependencies ++= Seq(
"com.github.scopt" %% "scopt" % "3.7.1",
"edu.berkeley.cs" %% "chisel3" % chiselVersion,
"com.lihaoyi" %% "mainargs" % "0.5.4",
),
resolvers ++=
Resolver.sonatypeOssRepos("snapshots") ++
Resolver.sonatypeOssRepos("releases") :+
Resolver.mavenLocal
)
lazy val cde = (project in file("repo/rocket-chip/cde"))
.settings(
commonSettings,
Compile / scalaSource := baseDirectory.value / "cde/src/chipsalliance/rocketchip"
)
lazy val rocket_macros = (project in file("repo/rocket-chip/macros"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
"org.json4s" %% "json4s-jackson" % "4.0.6",
)
)
lazy val ucb_hardfloat = (project in file("repo/rocket-chip/hardfloat/hardfloat"))
.settings(commonSettings)
lazy val rocket_chip = (project in file("repo/rocket-chip"))
.dependsOn(cde, rocket_macros, ucb_hardfloat)
.settings(commonSettings)
lazy val peripheral_blocks = (project in file("repo/rocket-chip-blocks"))
.dependsOn(rocket_chip, cde)
.settings(commonSettings)
lazy val fpga_shells = (project in file("repo/rocket-chip-fpga-shells"))
.dependsOn(rocket_chip, peripheral_blocks, cde)
.settings(
commonSettings,
Compile / unmanagedBase := baseDirectory.value,
Compile / resourceDirectory := baseDirectory.value
)
lazy val ucb_testchipip = (project in file("repo/testchipip/src"))
.dependsOn(rocket_chip, peripheral_blocks)
.settings(
commonSettings,
Compile / scalaSource := baseDirectory.value / "main/scala",
Compile / resourceDirectory := baseDirectory.value / "main/resources"
)
lazy val ucb_boom = (project in file("repo/riscv-boom/src"))
.dependsOn(rocket_chip, ucb_testchipip)
.settings(
commonSettings,
Compile / scalaSource := baseDirectory.value / "main/scala",
Compile / resourceDirectory := baseDirectory.value / "main/resources"
)
lazy val starship = (project in file("repo/starship"))
.dependsOn(rocket_chip, cde, peripheral_blocks, fpga_shells, ucb_boom)
.settings(commonSettings)
lazy val root = (project in file("."))
.dependsOn(starship)
.settings(commonSettings)