[RISC-V] Chisel Tutorials (Release branch)

김남일 2018.09.01 21:21 조회 수 : 50418

Chisel 사용법에 대한 정보를 하기와 같이 공유합니다.

 

Chisel 3 설치

         >>> Installation

                 ▶ Overview

                        Chisel3 (Scala) to Firrtl (this is your "Chisel RTL").
                       
Firrtl to Verilog (which can then be passed into FPGA or ASIC tools).
                       
Verilog to C++ for simulation and testing using Verilator.

 

Chisel Tutorials (Release branch)

         >>> Getting the Repo

$ git clone https://github.com/ucb-bar/chisel-tutorial.git
$ cd chisel-tutorial
$ git fetch origin
$ git checkout release

Note: ./run-problem.sh, ./run-solution.sh, ./run-examples.sh are convenience scripts to invoke tests

   $ ./run-examples.sh # shell script to execute one or more examples
   $ ./run-problem.sh  # shell script to execute one or more problems
   $ ./run-solution.sh   # shell script to execute one or more solutions
 
$ ./run-problem.sh all  or  $ ./run-problem.sh Accumulator
$ ./run-solution.sh all or   ./run-solution.sh Accumulator
$   ./run-examples.sh all    or   $  ./run-examples.sh Adder

 

The Basics

>>> Running the Chisel Simulation
     $ ./run-examples.sh GCD

                  or
     $ ./run-examples.sh all

 

>>> Generating Verilog

     $ ./run-examples.sh GCD --backend-name verilator

                  or
     $ ./run-examples.sh all --backend-name verilator

      

      ▷ GCD.v - Verilog representation of the Chisel circuit,

      ▷ GCD.vcd - waveform dump of the circuit signals during the simulation.

 

FullAdder_signalwave.png

 

 

FullAdder_scalar.png

FullAdder2.png

 

 

FullAdder.png

 

번호 제목 글쓴이 날짜 조회 수
공지 [공지] MPSoC 스터디 관련 Q&A 게시판 입니다. woos 2016.04.09 240
165 11월17일 23차 스터디 정리 myskan1 2018.11.17 33
164 [RISC-V] 12월 22일 26차 스터디 정리 김지성 2018.12.22 39
163 12월1일 24차 스터디 정리 myskan1 2018.12.01 44
162 [RISC-V] 12월 28일 27차 스터디 정리 myskan1 2018.12.29 48
161 [RISC-V] 9월 29일 17차 스터디 정리 김남일 2018.10.02 54
160 [RISC-V] 10월20일 20차 스터디 정리 김남일 2018.10.20 55
159 [RISC-V] 11월 3일 21차 / 11월10일 22차 스터디 정리 myskan1 2018.11.10 58
158 [RISC-V] 10월13일 19차 스터디 정리 [1] myskan1 2018.10.13 63
157 [RISC-V] 8월 04일 10차 스터디 정리 myskan1 2018.08.04 64
156 [RISC-V] 1월 12일 28차 스터디 정리 myskan1 2019.01.12 66
155 [RISC-V] 6월 16일 5차 스터디 정리 myskan1 2018.06.16 75
154 [RISC-V] 7월 28일 9차 스터디 정리 [1] myskan1 2018.07.28 79
153 [RISC-V] 7월 21일 8차 스터디 정리 김지성 2018.07.21 81
152 [RISC-V] 9월 15일 16차 스터디 정리 myskan1 2018.09.15 83
151 [RISC-V] 7월 14일 7차 스터디 정리 [1] myskan1 2018.07.14 87
150 [RISC-V] 12월8일 25차 스터디 정리 김지성 2018.12.08 88
149 [RISC-V] 6월 9일 4차 스터디 정리 myskan1 2018.06.09 92
148 [RISC-V] 7월 6일 6차 스터디 정리 myskan1 2018.07.07 93
147 [RISC-V] 6월 2일 3차 스터디 공지 [1] myskan1 2018.06.02 97
146 [RISC-V] 5월 26일 2차 스터디 정리 myskan1 2018.05.26 107
XE Login