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.list
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
sudo apt-get update
sudo 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 LED
o
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
复制代码
参考
划线
评论
复制
发布于: 刚刚阅读数: 3
贾献华
关注
及时当勉励 岁月不待人 2018.06.04 加入
https://2022.iosdevlog.com
评论