-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·159 lines (146 loc) · 6.52 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
* File: build.sbt *
* Created Date: 2023-02-25 01:11:34 pm *
* Author: Mathieu Escouteloup *
* ----- *
* Last Modified: 2023-04-12 11:01:30 am *
* Modified By: Mathieu Escouteloup *
* ----- *
* License: See LICENSE.md *
* Copyright (c) 2023 HerdWare *
* ----- *
* Description: *
*/
// ******************************
// PARAMETERS
// ******************************
ThisBuild / scalaVersion := "2.12.13"
ThisBuild / version := "0.1.0"
ThisBuild / organization := "herdware"
val libDep = Seq(
"edu.berkeley.cs" %% "chisel3" % "3.4.3",
"edu.berkeley.cs" %% "chiseltest" % "0.3.3" % "test",
"edu.berkeley.cs" %% "chisel-iotesters" % "1.5.3"
// "com.sifive" %% "chisel-circt" % "0.8.0"
)
val scalacOpt = Seq(
"-Xsource:2.11",
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
// Enables autoclonetype2 in 3.4.x (on by default in 3.5)
"-P:chiselplugin:useBundlePlugin"
)
// ******************************
// PROJECTS
// ******************************
lazy val main = (project in file("."))
.settings(
name := "main",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
.dependsOn( common % "test->test;compile->compile",
draft % "test->test;compile->compile",
aubrac % "test->test;compile->compile",
salers % "test->test;compile->compile",
abondance % "test->test;compile->compile",
hay % "test->test;compile->compile",
io % "test->test;compile->compile",
cheese % "test->test;compile->compile"
)
.aggregate( common, draft, aubrac, salers, abondance, hay, io, cheese)
lazy val common = (project in file("hw/common"))
.settings(
name := "common",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
lazy val draft = (project in file("hw/draft"))
.settings(
name := "draft",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
.dependsOn( common % "test->test;compile->compile",
aubrac % "test->test;compile->compile")
.aggregate( common, aubrac)
lazy val aubrac = (project in file("hw/core/aubrac"))
.settings(
name := "aubrac",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
.dependsOn( common % "test->test;compile->compile",
hay % "test->test;compile->compile",
io % "test->test;compile->compile")
.aggregate( common, hay, io)
lazy val salers = (project in file("hw/core/salers"))
.settings(
name := "salers",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
.dependsOn( common % "test->test;compile->compile",
aubrac % "test->test;compile->compile",
hay % "test->test;compile->compile",
io % "test->test;compile->compile")
.aggregate( common, aubrac, hay, io)
lazy val abondance = (project in file("hw/core/abondance"))
.settings(
name := "abondance",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
.dependsOn( common % "test->test;compile->compile",
aubrac % "test->test;compile->compile",
hay % "test->test;compile->compile",
io % "test->test;compile->compile")
.aggregate( common, aubrac, hay, io)
lazy val hay = (project in file("hw/mem/hay"))
.settings(
name := "hay",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
.dependsOn( common % "test->test;compile->compile")
.aggregate( common)
lazy val io = (project in file("hw/io"))
.settings(
name := "io",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
.dependsOn( common % "test->test;compile->compile")
.aggregate( common)
lazy val cheese = (project in file("hw/pltf/cheese"))
.settings(
name := "cheese",
libraryDependencies ++= libDep,
scalacOptions ++= scalacOpt,
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.4.3" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
)
.dependsOn( common % "test->test;compile->compile",
aubrac % "test->test;compile->compile",
salers % "test->test;compile->compile",
abondance % "test->test;compile->compile",
io % "test->test;compile->compile")
.aggregate( common, aubrac, salers, abondance, io)