chadyuu / riscv-chisel-book Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
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
私は、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
という警告が出ました。動作確認まではしていませんが、環境の違いにより想定した動作をしないパターンが発生する可能性が高いと思いました。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.