Skip to content

Commit 8832740

Browse files
committed
initial commit
1 parent 94919b9 commit 8832740

24 files changed

+2387
-0
lines changed

.gitignore

Lines changed: 341 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,341 @@
1+
### Project Specific stuff
2+
test_run_dir/*
3+
.metals/*
4+
### XilinxISE template
5+
# intermediate build files
6+
*.bgn
7+
*.bit
8+
*.bld
9+
*.cmd_log
10+
*.drc
11+
*.ll
12+
*.lso
13+
*.msd
14+
*.msk
15+
*.ncd
16+
*.ngc
17+
*.ngd
18+
*.ngr
19+
*.pad
20+
*.par
21+
*.pcf
22+
*.prj
23+
*.ptwx
24+
*.rbb
25+
*.rbd
26+
*.stx
27+
*.syr
28+
*.twr
29+
*.twx
30+
*.unroutes
31+
*.ut
32+
*.xpi
33+
*.xst
34+
*_bitgen.xwbt
35+
*_envsettings.html
36+
*_map.map
37+
*_map.mrp
38+
*_map.ngm
39+
*_map.xrpt
40+
*_ngdbuild.xrpt
41+
*_pad.csv
42+
*_pad.txt
43+
*_par.xrpt
44+
*_summary.html
45+
*_summary.xml
46+
*_usage.xml
47+
*_xst.xrpt
48+
49+
# project-wide generated files
50+
*.gise
51+
par_usage_statistics.html
52+
usage_statistics_webtalk.html
53+
webtalk.log
54+
webtalk_pn.xml
55+
56+
# generated folders
57+
iseconfig/
58+
xlnx_auto_0_xdb/
59+
xst/
60+
_ngo/
61+
_xmsgs/
62+
### Eclipse template
63+
*.pydevproject
64+
.metadata
65+
.gradle
66+
bin/
67+
tmp/
68+
*.tmp
69+
*.bak
70+
*.swp
71+
*~.nib
72+
local.properties
73+
.settings/
74+
.loadpath
75+
76+
# Eclipse Core
77+
.project
78+
79+
# External tool builders
80+
.externalToolBuilders/
81+
82+
# Locally stored "Eclipse launch configurations"
83+
*.launch
84+
85+
# CDT-specific
86+
.cproject
87+
88+
# JDT-specific (Eclipse Java Development Tools)
89+
.classpath
90+
91+
# Java annotation processor (APT)
92+
.factorypath
93+
94+
# PDT-specific
95+
.buildpath
96+
97+
# sbteclipse plugin
98+
.target
99+
100+
# TeXlipse plugin
101+
.texlipse
102+
### C template
103+
# Object files
104+
*.o
105+
*.ko
106+
*.obj
107+
*.elf
108+
109+
# Precompiled Headers
110+
*.gch
111+
*.pch
112+
113+
# Libraries
114+
*.lib
115+
*.a
116+
*.la
117+
*.lo
118+
119+
# Shared objects (inc. Windows DLLs)
120+
*.dll
121+
*.so
122+
*.so.*
123+
*.dylib
124+
125+
# Executables
126+
*.exe
127+
*.out
128+
*.app
129+
*.i*86
130+
*.x86_64
131+
*.hex
132+
133+
# Debug files
134+
*.dSYM/
135+
### SBT template
136+
# Simple Build Tool
137+
# http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control
138+
139+
target/
140+
lib_managed/
141+
src_managed/
142+
project/boot/
143+
.history
144+
.cache
145+
### Emacs template
146+
# -*- mode: gitignore; -*-
147+
*~
148+
\#*\#
149+
/.emacs.desktop
150+
/.emacs.desktop.lock
151+
*.elc
152+
auto-save-list
153+
tramp
154+
.\#*
155+
156+
# Org-mode
157+
.org-id-locations
158+
*_archive
159+
160+
# flymake-mode
161+
*_flymake.*
162+
163+
# eshell files
164+
/eshell/history
165+
/eshell/lastdir
166+
167+
# elpa packages
168+
/elpa/
169+
170+
# reftex files
171+
*.rel
172+
173+
# AUCTeX auto folder
174+
/auto/
175+
176+
# cask packages
177+
.cask/
178+
### Vim template
179+
[._]*.s[a-w][a-z]
180+
[._]s[a-w][a-z]
181+
*.un~
182+
Session.vim
183+
.netrwhist
184+
*~
185+
### JetBrains template
186+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
187+
188+
*.iml
189+
190+
## Directory-based project format:
191+
.idea/
192+
# if you remove the above rule, at least ignore the following:
193+
194+
# User-specific stuff:
195+
# .idea/workspace.xml
196+
# .idea/tasks.xml
197+
# .idea/dictionaries
198+
199+
# Sensitive or high-churn files:
200+
# .idea/dataSources.ids
201+
# .idea/dataSources.xml
202+
# .idea/sqlDataSources.xml
203+
# .idea/dynamic.xml
204+
# .idea/uiDesigner.xml
205+
206+
# Gradle:
207+
# .idea/gradle.xml
208+
# .idea/libraries
209+
210+
# Mongo Explorer plugin:
211+
# .idea/mongoSettings.xml
212+
213+
## File-based project format:
214+
*.ipr
215+
*.iws
216+
217+
## Plugin-specific files:
218+
219+
# IntelliJ
220+
/out/
221+
222+
# mpeltonen/sbt-idea plugin
223+
.idea_modules/
224+
225+
# JIRA plugin
226+
atlassian-ide-plugin.xml
227+
228+
# Crashlytics plugin (for Android Studio and IntelliJ)
229+
com_crashlytics_export_strings.xml
230+
crashlytics.properties
231+
crashlytics-build.properties
232+
### C++ template
233+
# Compiled Object files
234+
*.slo
235+
*.lo
236+
*.o
237+
*.obj
238+
239+
# Precompiled Headers
240+
*.gch
241+
*.pch
242+
243+
# Compiled Dynamic libraries
244+
*.so
245+
*.dylib
246+
*.dll
247+
248+
# Fortran module files
249+
*.mod
250+
251+
# Compiled Static libraries
252+
*.lai
253+
*.la
254+
*.a
255+
*.lib
256+
257+
# Executables
258+
*.exe
259+
*.out
260+
*.app
261+
### OSX template
262+
.DS_Store
263+
.AppleDouble
264+
.LSOverride
265+
266+
# Icon must end with two \r
267+
Icon
268+
269+
# Thumbnails
270+
._*
271+
272+
# Files that might appear in the root of a volume
273+
.DocumentRevisions-V100
274+
.fseventsd
275+
.Spotlight-V100
276+
.TemporaryItems
277+
.Trashes
278+
.VolumeIcon.icns
279+
280+
# Directories potentially created on remote AFP share
281+
.AppleDB
282+
.AppleDesktop
283+
Network Trash Folder
284+
Temporary Items
285+
.apdisk
286+
### Xcode template
287+
# Xcode
288+
#
289+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
290+
291+
## Build generated
292+
build/
293+
DerivedData
294+
295+
## Various settings
296+
*.pbxuser
297+
!default.pbxuser
298+
*.mode1v3
299+
!default.mode1v3
300+
*.mode2v3
301+
!default.mode2v3
302+
*.perspectivev3
303+
!default.perspectivev3
304+
xcuserdata
305+
306+
## Other
307+
*.xccheckout
308+
*.moved-aside
309+
*.xcuserstate
310+
### Scala template
311+
*.class
312+
*.log
313+
314+
# sbt specific
315+
.cache
316+
.history
317+
.lib/
318+
dist/*
319+
target/
320+
lib_managed/
321+
src_managed/
322+
project/boot/
323+
project/plugins/project/
324+
325+
# Scala-IDE specific
326+
.scala_dependencies
327+
.worksheet
328+
### Java template
329+
*.class
330+
331+
# Mobile Tools for Java (J2ME)
332+
.mtj.tmp/
333+
334+
# Package Files #
335+
*.jar
336+
*.war
337+
*.ear
338+
339+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
340+
hs_err_pid*
341+

build.sbt

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// See README.md for license details.
2+
3+
def scalacOptionsVersion(scalaVersion: String): Seq[String] = {
4+
Seq() ++ {
5+
// If we're building with Scala > 2.11, enable the compile option
6+
// switch to support our anonymous Bundle definitions:
7+
// https://github.com/scala/bug/issues/10047
8+
CrossVersion.partialVersion(scalaVersion) match {
9+
case Some((2, scalaMajor: Long)) if scalaMajor < 12 => Seq()
10+
case _ => Seq("-Xsource:2.11")
11+
}
12+
}
13+
}
14+
15+
def javacOptionsVersion(scalaVersion: String): Seq[String] = {
16+
Seq() ++ {
17+
// Scala 2.12 requires Java 8. We continue to generate
18+
// Java 7 compatible code for Scala 2.11
19+
// for compatibility with old clients.
20+
CrossVersion.partialVersion(scalaVersion) match {
21+
case Some((2, scalaMajor: Long)) if scalaMajor < 12 =>
22+
Seq("-source", "1.7", "-target", "1.7")
23+
case _ =>
24+
Seq("-source", "1.8", "-target", "1.8")
25+
}
26+
}
27+
}
28+
29+
name := "chisel-module-template"
30+
31+
version := "3.2.0"
32+
33+
scalaVersion := "2.12.10"
34+
35+
crossScalaVersions := Seq("2.12.10", "2.11.12")
36+
37+
resolvers ++= Seq(
38+
Resolver.sonatypeRepo("snapshots"),
39+
Resolver.sonatypeRepo("releases")
40+
)
41+
42+
// Provide a managed dependency on X if -DXVersion="" is supplied on the command line.
43+
val defaultVersions = Map(
44+
"chisel3" -> "3.2.+",
45+
"chisel-iotesters" -> "1.3.+"
46+
)
47+
48+
libraryDependencies ++= Seq("chisel3","chisel-iotesters").map {
49+
dep: String => "edu.berkeley.cs" %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep)) }
50+
51+
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"
52+
53+
scalacOptions ++= scalacOptionsVersion(scalaVersion.value)
54+
55+
javacOptions ++= javacOptionsVersion(scalaVersion.value)

project/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version = 1.3.10

0 commit comments

Comments
 (0)