Giter VIP home page Giter VIP logo

riscv-chisel-book's Introduction

Chadyuu's GitHub stats

riscv-chisel-book's People

Contributors

bokuweb avatar chadyuu avatar ciniml avatar rhysd avatar yuk1ty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

riscv-chisel-book's Issues

[info] - should work through hex *** FAILED ***

sbt "testOnly fetch.HexTest"
..
..
..
..

Elaborating design...
Done elaborating.
[info] HexTest:
[info] mycpu
[info] - should work through hex *** FAILED ***
[info] java.io.FileNotFoundException: src/hex/fetch.hex (No such file or directory)
[info] at java.base/java.io.FileInputStream.open0(Native Method)
[info] at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
[info] at java.base/java.io.FileInputStream.(FileInputStream.java:157)
[info] at scala.io.Source$.fromFile(Source.scala:94)
[info] at scala.io.Source$.fromFile(Source.scala:79)
[info] at firrtl.FileUtils$.getLines(FileUtils.scala:110)
[info] at firrtl.FileUtils$.getLines(FileUtils.scala:102)
[info] at treadle.executable.MemoryInitializer.doInitialize(Memory.scala:665)
[info] at treadle.executable.MemoryInitializer.$anonfun$initializeMemoriesFromFiles$1(Memory.scala:681)
[info] at treadle.executable.MemoryInitializer.$anonfun$initializeMemoriesFromFiles$1$adapted(Memory.scala:680)
[info] ...
[info] Run completed in 2 seconds, 828 milliseconds.
[info] Total number of tests run: 1
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 0, failed 1, canceled 0, ignored 0, pending 0
[info] *** 1 TEST FAILED ***
[error] Failed tests:
[error] fetch.HexTest
[error] (Test / testOnly) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 61 s (01:01), completed May 22, 2022, 6:13:32 AM

「第4章 環境構築」for M1 mac

私は、M1 mac上で本書を読みすすめたいと考えていました。
M1 mac 上での環境構築(特にdockerイメージの作成)はどのようにすればよいのでしょうか?

ちなみに、環境構築を試みて挫けた箇所は2点あります。

まず、Dockerfileからのビルドが失敗しました。その時のエラーメッセージは以下になります。

 => ERROR [4/7] RUN git clone -b rvv-0.9.x --single-branch https://github.com/riscv/riscv-gnu-toolchain.gi  0.7s 
------                                                                                                           
 > [4/7] RUN git clone -b rvv-0.9.x --single-branch https://github.com/riscv/riscv-gnu-toolchain.git &&         cd riscv-gnu-toolchain && git checkout 5842fde8ee5bb3371643b60ed34906eff7a5fa31 &&       git submodule update --init --recursive:                                                                                                  
#7 0.307 Cloning into 'riscv-gnu-toolchain'...                                                                   
#7 0.719 warning: Could not find remote branch rvv-0.9.x to clone.
#7 0.719 fatal: Remote branch rvv-0.9.x not found in upstream origin
------
executor failed running [/bin/sh -c git clone -b rvv-0.9.x --single-branch https://github.com/riscv/riscv-gnu-toolchain.git && 	cd riscv-gnu-toolchain && git checkout 5842fde8ee5bb3371643b60ed34906eff7a5fa31 && 	git submodule update --init --recursive]: exit code: 128

次にDockerHubからのpullをしましたが、

% docker run -it -v ~/mycpu:/src yutaronishiyama/riscv-chisel-book
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

という警告が出ました。動作確認まではしていませんが、環境の違いにより想定した動作をしないパターンが発生する可能性が高いと思いました。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.