Skip to content

Instantly share code, notes, and snippets.

😆
Learning Chisel!!

diningyo diningyo

😆
Learning Chisel!!
Block or report user

Report or block diningyo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@diningyo
diningyo / iotester_option
Created Jun 20, 2019
chisel3.iotesters.Driverの引数
View iotester_option
[info] Running chisel3.iotesters.Driver
Usage: chisel-testers [options] [<arg>...]
common options
-tn, --top-name <top-level-circuit-name>
This options defines the top level circuit, defaults to dut when possible
-td, --target-dir <target-directory>
This options defines a work directory for intermediate files, default is .
-ll, --log-level <Error|Warn|Info|Debug|Trace>
This options defines a work directory for intermediate files, default is .
@diningyo
diningyo / SampleBundleRegInit2.v
Created Apr 27, 2019
BundleとRegInitで作る初期化済みレジスタ(コンパニオン・オブジェクト版)から生成したRTL
View SampleBundleRegInit2.v
module SampleBundleRegInit2(
input clock,
input reset,
input io_en,
input [31:0] io_data,
output [3:0] io_out1_a,
output [3:0] io_out1_b,
output [3:0] io_out2_a,
output [3:0] io_out2_b
);
@diningyo
diningyo / Top.dot.svg
Created Feb 24, 2019
Sodor 1st stage のトップブロックの構造
View Top.dot.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@diningyo
diningyo / Top_hierarchy.dot.svg
Created Feb 24, 2019
diagrammerで作ったSodor 1st-stage版のトップ階層図
View Top_hierarchy.dot.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@diningyo
diningyo / build.sbt
Created Feb 23, 2019
ChiselのRTL生成&テスト実行の際のsbtの設定ファイル
View build.sbt
scalaVersion := "2.11.12"
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
)
libraryDependencies += "edu.berkeley.cs" %% "chisel3" % "3.0-SNAPSHOT"
libraryDependencies += "edu.berkeley.cs" %% "chisel-iotesters" % "[1.2.5,1.3-SNAPSHOT["
@diningyo
diningyo / Top.scala
Created Feb 23, 2019
ChiselのRTL生成&テストの実装サンプル
View Top.scala
import chisel3._
import chisel3.iotesters
import chisel3.iotesters.PeekPokeTester
class Top(in0Bits: Int, in1Bits: Int) extends Module {
val io = IO(new Bundle {
val in0 = Input(UInt(in0Bits.W))
val in1 = Input(UInt(in0Bits.W))
val out = Output(UInt((in0Bits+1).W))
@diningyo
diningyo / module_3.2_exercise_regfile.v
Created Dec 2, 2018
Module3.2練習問題のレジスタファイルのRTL
View module_3.2_exercise_regfile.v
module cmd5HelperRegisterFile( // @[:@3.2]
input clock, // @[:@4.4]
input reset, // @[:@5.4]
input io_wen, // @[:@6.4]
input [4:0] io_waddr, // @[:@6.4]
input [31:0] io_wdata, // @[:@6.4]
input [4:0] io_raddr_0, // @[:@6.4]
input [4:0] io_raddr_1, // @[:@6.4]
output [31:0] io_rdata_0, // @[:@6.4]
output [31:0] io_rdata_1 // @[:@6.4]
@diningyo
diningyo / Chisel_setup.log
Created Oct 13, 2018
Chiselのセットアップ実行時のダウンロードログ
View Chisel_setup.log
Downloading https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.11/3.1.0/chisel3_2.11-3.1.0.pom.sha1
Downloading https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.11/3.1.0/chisel3_2.11-3.1.0.pom
Downloaded https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.11/3.1.0/chisel3_2.11-3.1.0.pom.sha1
Downloaded https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.11/3.1.0/chisel3_2.11-3.1.0.pom
Downloading https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.11/3.1.0/
Downloaded https://repo1.maven.org/maven2/edu/berkeley/cs/chisel3_2.11/3.1.0/
Downloading https://repo1.maven.org/maven2/edu/berkeley/cs/firrtl_2.11/1.1.0/firrtl_2.11-1.1.0.pom
Downloading https://repo1.maven.org/maven2/edu/berkeley/cs/firrtl_2.11/1.1.0/firrtl_2.11-1.1.0.pom.sha1
Downloaded https://repo1.maven.org/maven2/edu/berkeley/cs/firrtl_2.11/1.1.0/firrtl_2.11-1.1.0.pom
Downloaded https://repo1.maven.org/maven2/edu/berkeley/cs/firrtl_2.11/1.1.0/firrtl_2.11-1.1.0.pom.sha1
@diningyo
diningyo / Chisel_Bootcamp_setup.log
Last active Oct 13, 2018
Chisel Bootcamp環境構築の際のコマンドログ
View Chisel_Bootcamp_setup.log
dnn-admin@dnn:~$ uname -a
Linux dnn 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 08:59:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
dnn-admin@dnn:~$ conda create -n jupyter-scala python=3
Fetching package metadata ...........
Solving package specifications: .
Package plan for installation in environment /usr/local/src/app/pyenv/versions/miniconda3-4.3.11/envs/jupyter-scala:
The following NEW packages will be INSTALLED:
View make_scr1_run_vcs.log
dnn-admin@dnn:~/workspace/hw/study/1000_scr1/scr1$ make run_vcs BUS=AHB RVM=1
rm -f /home/dnn-admin/workspace/hw/study/1000_scr1/scr1/build/*.hex
make -C /home/dnn-admin/workspace/hw/study/1000_scr1/scr1/tests/riscv_isa
make[1]: ディレクトリ '/home/dnn-admin/workspace/hw/study/1000_scr1/scr1/tests/riscv_isa' に入ります
mkdir -p /home/dnn-admin/workspace/hw/study/1000_scr1/scr1/build/riscv_objs
riscv32-unknown-elf-gcc -c /home/dnn-admin/workspace/hw/study/1000_scr1/scr1/riscv-tests/isa/rv32ui/add.S -I/home/dnn-admin/workspace/hw/study/1000_scr1/scr1/tests/common -I/home/dnn-admin/workspace/hw/study/1000_scr1/scr1/tests/riscv_isa -DASM -Wa,-march=rv32imfc -march=rv32imfc -mabi=ilp32f -D__riscv_xlen=32 -o /home/dnn-admin/workspace/hw/study/1000_scr1/scr1/build/riscv_objs/add.o
riscv32-unknown-elf-gcc /home/dnn-admin/workspace/hw/study/1000_scr1/scr1/build/riscv_objs/add.o -static -fvisibility=hidden -nostdlib -nostartfiles -T/home/dnn-admin/workspace/hw/study/1000_scr1/scr1/tests/common/link.ld -march=rv32imfc -mabi=ilp32
You can’t perform that action at this time.