Bump rocket, make possible to use published deps (#47)
* Use published rocketchip * Simulator works! * Gitignore was masking csrc * Fix broken submodules * Update gitignore * Fix things up * Some more cleanup * Clean up so that using maven works * Incorporate feedback * Oops * Add workaround for some of csrc * Forgot dtm and jtag * Make name better and add comment * Extraneous comment * Fix includes. After running a clean build, I realized old build state was masking this problem. verisim/csrc needs to be in the include path until we find a more permanent solution to our problem. * Add target to generate verilator-specific files. * Ignore DS_Store * Generate bootrom from testchipip * Oops * Add extraneous rocket-dsptools reference
This commit is contained in:
23
build.sbt
23
build.sbt
@@ -12,6 +12,7 @@ lazy val commonSettings = Seq(
|
||||
libraryDependencies += "org.json4s" %% "json4s-native" % "3.5.3",
|
||||
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
|
||||
libraryDependencies += "edu.berkeley.cs" %% "firrtl-interpreter" % "1.2-SNAPSHOT",
|
||||
libraryDependencies += "com.github.scopt" %% "scopt" % "3.7.1",
|
||||
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
|
||||
resolvers ++= Seq(
|
||||
Resolver.sonatypeRepo("snapshots"),
|
||||
@@ -23,18 +24,28 @@ lazy val rocketchip = RootProject(file("rocket-chip"))
|
||||
lazy val testchipip = project.settings(commonSettings)
|
||||
.dependsOn(rocketchip)
|
||||
|
||||
lazy val example = (project in file("."))
|
||||
// Checks for -DROCKET_USE_MAVEN.
|
||||
// If it's there, use a maven dependency.
|
||||
// Else, depend on subprojects in git submodules.
|
||||
def conditionalDependsOn(prj: Project): Project = {
|
||||
if (sys.props.contains("ROCKET_USE_MAVEN")) {
|
||||
prj.settings(Seq(
|
||||
libraryDependencies += "edu.berkeley.cs" %% "testchipip" % "1.0-020719-SNAPSHOT",
|
||||
))
|
||||
} else {
|
||||
prj.dependsOn(testchipip)
|
||||
}
|
||||
}
|
||||
lazy val example = conditionalDependsOn(project in file("."))
|
||||
.settings(commonSettings)
|
||||
.dependsOn(testchipip)
|
||||
|
||||
lazy val tapeout = (project in file("./barstools/tapeout/"))
|
||||
lazy val tapeout = conditionalDependsOn(project in file("./barstools/tapeout/"))
|
||||
.settings(commonSettings)
|
||||
.dependsOn(rocketchip)
|
||||
|
||||
lazy val mdf = (project in file("./barstools/mdf/scalalib/"))
|
||||
|
||||
lazy val `barstools-macros` = (project in file("./barstools/macros/"))
|
||||
lazy val `barstools-macros` = conditionalDependsOn(project in file("./barstools/macros/"))
|
||||
.enablePlugins(sbtassembly.AssemblyPlugin)
|
||||
.settings(commonSettings)
|
||||
.dependsOn(rocketchip, mdf)
|
||||
.dependsOn(mdf)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user