加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sc 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
yecr 提交于 2022-10-16 15:22 . add src and make verilog success
// import Mill dependency
import mill._
import mill.scalalib._
import mill.scalalib.scalafmt.ScalafmtModule
import mill.scalalib.TestModule.ScalaTest
// support BSP
import mill.bsp._
object ysyx extends SbtModule { m =>
override def millSourcePath = os.pwd
override def scalaVersion = "2.12.13"
override def scalacOptions = Seq(
"-Xsource:2.11",
"-language:reflectiveCalls",
"-deprecation",
"-feature",
"-Xcheckinit",
// Enables autoclonetype2 in 3.4.x (on by default in 3.5)
"-P:chiselplugin:useBundlePlugin"
)
override def ivyDeps = Agg(
ivy"edu.berkeley.cs::chisel3:3.4.3"
)
override def scalacPluginIvyDeps = Agg(
ivy"edu.berkeley.cs:::chisel3-plugin:3.4.3",
ivy"org.scalamacros:::paradise:2.1.1"
)
object test extends Tests with ScalaTest {
override def ivyDeps = m.ivyDeps() ++ Agg(
ivy"edu.berkeley.cs::chiseltest:0.3.3"
)
}
override def moduleDeps = super.moduleDeps ++ Seq(difftest)
}
object difftest extends ScalaModule {
override def scalaVersion = "2.12.13"
override def millSourcePath = os.pwd / "difftest"
override def ivyDeps = Agg(
ivy"edu.berkeley.cs::chisel3:3.4.3"
)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化