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("BSD 3-Clause" -> url("https://github.com/carlosedp/chiselv/blob/main/LICENSE"))
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" % "0.5.0"
Global / semanticdbEnabled := true
Global / semanticdbVersion := scalafixSemanticdb.revision
Global / onChangedBuildSource := ReloadOnSourceChanges
Compile / run / mainClass := Some("chiselv.Toplevel")
lazy val chiselv = (project in file("."))
.settings(
name := "chiselv",
version := "1.0.0",
scalaVersion := "2.13.7"
)
// Default library versions
lazy val versions = new {
val chisel3 = "3.5-SNAPSHOT"
val chiseltest = "0.5.0-RC2"
val scalatest = "3.2.10"
val organizeimports = "0.5.0"
val scalautils = "0.8.0"
val oslib = "0.8.0"
}
// Import libraries
libraryDependencies ++= Seq(
"edu.berkeley.cs" %% "chisel3" % versions.chisel3,
"edu.berkeley.cs" %% "chiseltest" % versions.chiseltest % "test",
"org.scalatest" %% "scalatest" % versions.scalatest % "test",
"com.carlosedp" %% "scalautils" % versions.scalautils,
"com.lihaoyi" %% "os-lib" % versions.oslib
)
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % versions.organizeimports
addCompilerPlugin(("edu.berkeley.cs" % "chisel3-plugin" % versions.chisel3).cross(CrossVersion.full))
// Aliases
addCommandAlias("com", "all compile test:compile")
addCommandAlias("rel", "reload")
addCommandAlias("fmt", "all scalafmtSbt scalafmtAll;all Compile / scalafix; Test / scalafix")
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"
)
d676295d9This file is pinned to the selected release. Download the original to open it in your design tool.