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目錄下)