写点什么

Ubuntu 20.04 安装 Chisel

作者:贾献华
  • 2022 年 7 月 05 日
  • 本文字数:751 字

    阅读完需:约 2 分钟

JDK

$ sudo apt install openjdk-8-jdk

Chisel


echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.listecho "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.listcurl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key addsudo apt-get updatesudo apt-get install sbt
复制代码


Getting the Examples

$ git clone https://github.com/schoeberl/chisel-examples.git

$ git clone https://github.com/schoeberl/chisel-examples.git$ cd chisel-examples/hello-world$ make$ sbt test[info] welcome to sbt 1.6.2 (Private Build Java 1.8.0_312)[info] loading project definition from /home/ubuntu/Develop/Chisel/chisel-examples/hello-world/project[info] loading settings for project hello-world from build.sbt ...[info] set current project to hello-world (in build file:/home/ubuntu/Develop/Chisel/chisel-examples/hello-world/)[info] compiling 1 Scala source to /home/ubuntu/Develop/Chisel/chisel-examples/hello-world/target/scala-2.12/test-classes ...Start the blinking LEDo
End the blinking LED[info] HelloTest:[info] Hello[info] - should pass[info] Run completed in 32 seconds, 147 milliseconds.[info] Total number of tests run: 1[info] Suites: completed 1, aborted 0[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0[info] All tests passed.[success] Total time: 40 s, completed Jul 5, 2022 6:39:59 PM
复制代码

参考

  1. sbt - Download (scala-sbt.org)

用户头像

贾献华

关注

及时当勉励 岁月不待人 2018.06.04 加入

https://2022.iosdevlog.com

评论

发布
暂无评论
Ubuntu 20.04 安装 Chisel_7月月更_贾献华_InfoQ写作社区