Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
// See README.md for license details.
ThisBuild / organization := "com.carlosedp"
ThisBuild / description := "ChiselV is a RISC-V core written in Chisel"
ThisBuild / homepage := Some(url("https://carlosedp.com"))
ThisBuild / licenses := Seq("MIT" -> url("https://opensource.org/licenses/BSD-3-Clause"))
ThisBuild / scmInfo := Some(
ScmInfo(url("https://github.com/carlosedp/chiselv"), "git@github.com:carlosedp/chiselv.git")
)
ThisBuild / developers := List(
Developer("carlosedp", "Carlos Eduardo de Paula", "carlosedp@gmail.com", url("https://github.com/carlosedp"))
)
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % defaultVersions("organize-imports")
Global / semanticdbEnabled := true
Global / semanticdbVersion := defaultVersions("semanticdb")
Global / onChangedBuildSource := ReloadOnSourceChanges
Compile / run / mainClass := Some("chiselv.Toplevel")
Test / logBuffered := false
lazy val chiselv = (project in file("."))
.settings(
name := "chiselv",
version := "1.0.0",
scalaVersion := defaultVersions("scala")
)
// Default library versions
val defaultVersions = Map(
"scala" -> "2.13.6",
"chisel3" -> "3.5.0-RC1",
"chiseltest" -> "0.5-SNAPSHOT",
"scalatest" -> "3.2.10",
"scalautils" -> "0.7.2",
"semanticdb" -> "4.4.30",
"organize-imports" -> "0.6.0",
"os-lib" -> "0.7.8"
)
// Import libraries
libraryDependencies ++= Seq(
"edu.berkeley.cs" %% "chisel3" % defaultVersions("chisel3"),
"edu.berkeley.cs" %% "chiseltest" % defaultVersions("chiseltest") % "test",
"org.scalatest" %% "scalatest" % defaultVersions("scalatest") % "test",
"com.carlosedp" %% "scalautils" % defaultVersions("scalautils"),
"com.lihaoyi" %% "os-lib" % defaultVersions("os-lib"),
"edu.berkeley.cs" %% "firrtl" % "1.5-SNAPSHOT" // Force using SNAPSHOT until next RC is cut (memory synth)
)
addCompilerPlugin(("edu.berkeley.cs" % "chisel3-plugin" % defaultVersions("chisel3")) cross CrossVersion.full)
// Aliases
addCommandAlias("com", "all compile test:compile")
addCommandAlias("rel", "reload")
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll")
addCommandAlias("fix", "all Compile / scalafixAll; Test / scalafixAll")
addCommandAlias("lint", "fmt;fix")
addCommandAlias("deps", "dependencyUpdates")
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases"),
"Sonatype New OSS Snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots"
)
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-language:reflectiveCalls",
"-feature",
"-Xcheckinit",
"-Xfatal-warnings",
"-Ywarn-dead-code",
"-Ywarn-unused"
)
34a346a83This file is pinned to the selected release. Download the original to open it in your design tool.