joe 发表于 2021-7-28 13:59:08

手把手教你开始搭建Risc-v Rocket环境(8)

25:因为前面出现了问题,所以我想全部重新开始。

joe@joe-Inspiron-7460:~/rocketchip/rocket-chip$ git branch --list
* master
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip$ git pull
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 18 (delta 9), reused 10 (delta 9), pack-reused 7
展开对象中: 100% (18/18), 完成.
来自 https://github.com/ucb-bar/rocket-chip
   304e5506..ef4963d1master      -> origin/master
   a88865ae..c4dc3b43plic-option -> origin/plic-option
+ 9ca9f0b5...068a76fd ssp-timing-> origin/ssp-timing(强制更新)
更新 304e5506..ef4963d1
Fast-forward
chisel3                                        |2 +-
src/main/scala/devices/tilelink/Plic.scala   | 13 +++++++-----
src/main/scala/interrupts/NullIntSource.scala| 24 +++++++++++++++++++++
src/main/scala/subsystem/Configs.scala         |1 +
src/main/scala/subsystem/HasTiles.scala      | 29 +++++++++++++-------------
src/main/scala/subsystem/RocketSubsystem.scala |4 ++--
6 files changed, 50 insertions(+), 23 deletions(-)
create mode 100644 src/main/scala/interrupts/NullIntSource.scala
26: 根据chiset3目录中的readme

joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/chisel3$ ls
bin             coreMacrosMakefile   root-doc.txt                src
build.sbt       doc         project    scalastyle-config.xml       target
chiselFrontendlib         README.mdscalastyle-test-config.xml
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/chisel3$ cd bin
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/chisel3/bin$ ls
appall.sh    buildtest.shfir2flo.shfloall.sh   to-fir.sh
buildall.shfilter      firall.sh   testall.sh
build.sh   filter.cpp    flo2app.shtest.sh
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/chisel3/bin$ cd ..
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/chisel3$ sbt compile
Loading settings from plugins.sbt ...
Loading project definition from /home/joe/rocketchip/rocket-chip/chisel3/project
Updating ProjectRef(uri("file:/home/joe/rocketchip/rocket-chip/chisel3/project/"), "chisel3-build")...
Done updating.
Loading settings from build.sbt ...
Set current project to chisel3 (in build file:/home/joe/rocketchip/rocket-chip/chisel3/)
Executing in batch mode. For better performance use sbt's shell
Updating coreMacros...
Done updating.
Updating chiselFrontend...
Done updating.
Updating ...
Done updating.
Compiling 4 Scala sources to /home/joe/rocketchip/rocket-chip/chisel3/coreMacros/target/scala-2.11/classes ...
Done compiling.
Compiling 14 Scala sources to /home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/target/scala-2.11/classes ...
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala:81:24: method flatten in class Data is deprecated: pending removal once all instances replaced
   SeqUtils.do_asUInt(flatten.map(_.asUInt()))
                        ^
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala:87:15: method flatten in class Data is deprecated: pending removal once all instances replaced
   for (x <- flatten) {
               ^
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Annotation.scala:47:30: method apply in object Annotation is deprecated: This returns a LegacyAnnotation, use an explicit Annotation type
   def toFirrtl: Annotation = Annotation(component.toNamed, transformClass, value)
                              ^
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Assert.scala:41:57: method lineContent in trait Position is deprecated: Removed from the public API
   val condStr = s"${p.source.file.name}:${p.line} ${p.lineContent.trim}"
                                                         ^
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Assert.scala:49:57: method lineContent in trait Position is deprecated: Removed from the public API
   val condStr = s"${p.source.file.name}:${p.line} ${p.lineContent.trim}"
                                                         ^
5 warnings found
Done compiling.
Compiling 28 Scala sources to /home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/target/scala-2.11/classes ...
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala:81:24: method flatten in class Data is deprecated: pending removal once all instances replaced
   SeqUtils.do_asUInt(flatten.map(_.asUInt()))
                        ^
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala:87:15: method flatten in class Data is deprecated: pending removal once all instances replaced
   for (x <- flatten) {
               ^
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Annotation.scala:47:30: method apply in object Annotation is deprecated: This returns a LegacyAnnotation, use an explicit Annotation type
   def toFirrtl: Annotation = Annotation(component.toNamed, transformClass, value)
                              ^
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Assert.scala:41:57: method lineContent in trait Position is deprecated: Removed from the public API
   val condStr = s"${p.source.file.name}:${p.line} ${p.lineContent.trim}"
                                                         ^
/home/joe/rocketchip/rocket-chip/chisel3/chiselFrontend/src/main/scala/chisel3/core/Assert.scala:49:57: method lineContent in trait Position is deprecated: Removed from the public API
   val condStr = s"${p.source.file.name}:${p.line} ${p.lineContent.trim}"
                                                         ^
5 warnings found
Done compiling.
Compiling 29 Scala sources to /home/joe/rocketchip/rocket-chip/chisel3/target/scala-2.11/classes ...
Done compiling.
Total time: 34 s, completed 2018-6-23 21:12:55
27:因为RISCV等环境变量都已存在,所以不需要再定义,直接执行如下命令


joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/riscv-tools$ ./build.sh
。。。。。。
。。。。。。
Installing project riscv-tests

RISC-V Toolchain installation completed!
28:

joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/riscv-tools$ cd ../emulator/
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/emulator$ make
。。。。。。
。。。。。。
make: Leaving directory '/home/joe/rocketchip/rocket-chip/emulator/generated-src/freechips.rocketchip.system.DefaultConfig'


页: [1]
查看完整版本: 手把手教你开始搭建Risc-v Rocket环境(8)