This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
// FF | |
module test_ff( | |
input wire clk | |
,input wire rst_n | |
,input wire [31:0] i_data | |
,input wire wren | |
,output reg [31:0] o_data | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Getting org.scala-sbt sbt 1.2.1 (this may take some time)... | |
downloading file:////home/dnn-admin/.sbt/preloaded/org.scala-sbt/sbt/1.2.1/jars/sbt.jar ... | |
[SUCCESSFUL ] org.scala-sbt#sbt;1.2.1!sbt.jar (2ms) | |
downloading file:////home/dnn-admin/.sbt/preloaded/org.scala-lang/scala-library/2.12.6/jars/scala-library.jar ... | |
[SUCCESSFUL ] org.scala-lang#scala-library;2.12.6!scala-library.jar (53ms) | |
downloading file:////home/dnn-admin/.sbt/preloaded/org.scala-sbt/main_2.12/1.2.1/jars/main_2.12.jar ... | |
[SUCCESSFUL ] org.scala-sbt#main_2.12;1.2.1!main_2.12.jar (15ms) | |
downloading file:////home/dnn-admin/.sbt/preloaded/org.scala-sbt/logic_2.12/1.2.1/jars/logic_2.12.jar ... | |
[SUCCESSFUL ] org.scala-sbt#logic_2.12;1.2.1!logic_2.12.jar (2ms) | |
downloading file:////home/dnn-admin/.sbt/preloaded/org.scala-sbt/actions_2.12/1.2.1/jars/actions_2.12.jar ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[info] Updated file /home/dnn-admin/workspace/hw/study/2000_chisel/sandbox/project/build.properties: set sbt.version to 1.2.1 | |
[info] Loading settings for project global-plugins from idea.sbt ... | |
[info] Loading global plugins from /home/dnn-admin/.sbt/1.0/plugins | |
[info] Loading project definition from /home/dnn-admin/workspace/hw/study/2000_chisel/sandbox/project | |
[info] Updating ProjectRef(uri("file:/home/dnn-admin/workspace/hw/study/2000_chisel/sandbox/project/"), "sandbox-build")... | |
[info] Done updating. | |
/home/dnn-admin/workspace/hw/study/2000_chisel/sandbox/build.sbt:3: error: not found: value scalaOptions | |
scalaOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlint") | |
^ | |
[error] Type error in expression |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer