Install jdkgit
仅适用于OS: Ubuntu 16github
首先要安装jdk。ubuntu
sudo apt-get install openjdk-8-jdk
Install sbt缓存
Ubuntu和其余基于Debian的发行版使用DEB格式,但一般你不从本地的DEB文件安装软件。相反,他们由程序包管理器安装,经过命令行(如apt-get,aptitude)或图形用户界面 (如Synaptic)。 从终端运行下面的命令安装sbt(你须要超级用户权限,所以须要sudo)。bash
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 –recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update sudo apt-get install sbt
软件包管理器将检查若干个提供安装软件包的配置存储库。sbt 二进制文件发布到 Bintray,而Bintray 方便地提供了APT资源库。你只须要将存储库添加到你的软件包管理器将检查的地方。 一旦安装了sbt,你会可以在aptitude或Synaptic的包缓存更新后管理了。你也应该可以看到添加的存储库,在底部的System Settings -> Software & Updates -> Other Software工具
Install Verilator测试
安装Verilator,能够将Verilog转换成C++用于仿真。Chisel3 推荐使用版本3.992.fetch
1. 安装一些必要依赖(若是没有的话)flex
sudo apt-get install git make autoconf g++ flex bison
2. Clone the verilator repospa
git clone http://git.veripool.org/git/verilator
3. 在repo中检查合适的版本3.992
git pull
git checkout verilator_3_922
4. 在verilator目录中编译并安装。(注意编译过程当中会有提示作check,能够按提示步骤来)
unset VERILATOR_ROOT # For bash, unsetenv for csh autoconf # Create ./configure script ./configure make
sudo make install
Install chisel-tutorial
Repo
$ git clone https://github.com/ucb-bar/chisel-tutorial.git $ cd chisel-tutorial $ git fetch origin $ git checkout release
测试系统保证成功安装sbt
sbt run
该过程会生成并测试Hello模块(always outputs the number 42 (aka 0x2a))。
能够在命令窗口最后一行看到 [success] or [successful],而且有PASSED在倒数几行。若是是第一次执行该命令,sbt会自动下载合适的chisel3版本,包括测试工具和scala,并放在cache中(一般是在~/.Ivy2目录下)