ucb-bar / chipyard

An Agile RISC-V SoC Design Framework with in-order cores, out-of-order cores, accelerators, and more
https://chipyard.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
1.68k stars 657 forks source link

vlsi flow can not run correcttly when i excute command "make buildfile CONFIG=TinyRocketConfig" #1277

Closed zhpeasd closed 2 years ago

zhpeasd commented 2 years ago

Background Work

Chipyard Version and Hash

Release: 1.8.1 Hash: a6a6a6

OS Setup

[root@xxx home]# conda --version conda 22.9.0 [root@xxx home]# git clone https://github.com/ucb-bar/chipyard.git [root@xxx home]# cd chipyard [root@xxx chipyard]# git checkout 1.8.1 [root@xxx chipyard]# ./build-setup.sh riscv-tools [root@xxx chipyard]# conda env list #

[root@xxx chipyard]# ./scripts/init-vlsi.sh asap7 [root@xxx chipyard]# cd vlsi [root@xxx vlsi]# export HAMMER_HOME=$PWD/hammer [root@xxx vlsi]# source $HAMMER_HOME/sourceme.sh [root@xxx vlsi]# make buildfile CONFIG=TinyRocketConfig

Other Setup

Ex: Prior steps taken / Documentation Followed / etc...

Current Behavior

Running with RISCV=/home/chipyard/.conda-env/riscv-tools

cd /home/chipyard/vlsi && ./example-vlsi -e /home/chipyard/vlsi/env.yml -p example-tools.yml -p example-asap7.yml) -p /home/chipyard/vlsi/build/chipyard.TestHarness.TinyRocketConfig-ChipTop/sram_generator-input.yml --obj_dir /home/chipyard/vlsi/generated-src/chipyard.TestHarness.TinyRocketConfig sram_generator /bin/bash: -c: line 0: syntax error near unexpected token `)'

/bin/bash: -c: line 0: `cd /home/chipyard/vlsi && ./example-vlsi -e /home/chipyard/vlsi/env.yml -p example-tools.yml -p example-asap7.yml) -p /home/chipyard/vlsi/build/chipyard.TestHarness.TinyRocketConfig-ChipTop/sram_generator-input.yml --obj_dir /home/chipyard/vlsi/generated-src/chipyard.TestHarness.TinyRocketConfig sram_generator'

make: *** No rule to make target '/home/chipyard/vlsi/build/chipyard.TestHarness.TinyRocketConfig-ChipTop/sram_generator-output.json', needed by '/home/chipyard/vlsi/build/chipyard.TestHarness.TinyRocketConfig-ChipTop/hammer.d'. Stop.

Expected Behavior

this flow can run completely and correctly without error note

Other Information

can developer solve this problem and give me the answer please ?

zhpeasd commented 2 years ago

Give me a solution to the problem, please ? waiting online...

harrisonliew commented 2 years ago

Sorry, we had a bug on 1.8.1 release with that extra parentheses that you see after example-asap7.yml that was fixed in #1261. Please pull the latest Chipyard commit (instead of release) for vlsi flow.

zhpeasd commented 2 years ago

[root@xxx home]# conda --version conda 22.9.0 [root@xxx home]# git clone https://github.com/ucb-bar/chipyard.git [root@xxx home]# cd chipyard [root@xxx chipyard]# ./build-setup.sh riscv-tools [root@xxx chipyard]# conda env list

  • /home/chipyard/.conda-env /home/miniconda3 [root@xxx chipyard]# source ./env.sh [root@xxx chipyard]# ./scripts/init-vlsi.sh asap7 [root@xxx chipyard]# cd vlsi [root@xxx vlsi]# export HAMMER_HOME=$PWD/hammer [root@xxx vlsi]# source $HAMMER_HOME/sourceme.sh [root@xxx vlsi]# make buildfile CONFIG=TinyRocketConfig

And i want to ensure that is the commands shown above correct to run the vlsi flow ?

harrisonliew commented 2 years ago

Yes, looks correct.

zhpeasd commented 2 years ago

Yes, looks correct.

thanks, get an answer is so hard, is there any way to contact you directly ? email or other way?

zhpeasd commented 2 years ago

make buildfile CONFIG=TinyRocketConfig after runing this command, errors come up as following:

(/home/chipyard/.conda-env) [zhpeasd@xxx vlsi]$ make buildfile CONFIG=TinyRocketConfig Running with RISCV=/home/chipyard/.conda-env/riscv-tools mkdir -p /home/chipyard/vlsi/generated-src/chipyard.TestHarness.TinyRocketConfig cd /home/chipyard && java -jar /home/chipyard/generators/rocket-chip/sbt-launch.jar ";project chipyard; runMain chipyard.Generator --target-dir /home/chipyard/vlsi/generated-src/chipyard.TestHarness.TinyRocketConfig --name chipyard.TestHarness.TinyRocketConfig --top-module chipyard.TestHarness --legacy-configs chipyard:TinyRocketConfig " Picked up JAVA_TOOL_OPTIONS: -Xmx8G -Xss8M -Djava.io.tmpdir=/home/chipyard/.java_tmp WARNING: A terminally deprecated method in java.lang.System has been called WARNING: System::setSecurityManager has been called by sbt.TrapExit$ (file:/home/.sbt/boot/scala-2.12.14/org.scala-sbt/sbt/1.5.5/run_2.12-1.5.5.jar) WARNING: Please consider reporting this to the maintainers of sbt.TrapExit$ WARNING: System::setSecurityManager will be removed in a future release [info] welcome to sbt 1.5.5 (N/A Java 17.0.3-internal) [info] loading settings for project chipyard-build from plugins.sbt ... [info] loading project definition from /home/chipyard/project [info] loading settings for project chipyardRoot from build.sbt ... [info] loading settings for project hardfloat from build.sbt ... [info] loading settings for project rocketConfig from build.sbt ... [info] loading settings for project testchipip from build.sbt ... [info] loading settings for project constellation from build.sbt ... [info] loading settings for project hwacha from build.sbt ... [info] loading settings for project boom from build.sbt ... [info] loading settings for project gemmini from build.sbt ... [info] loading settings for project sim-build from plugins.sbt ... [info] loading project definition from /home/chipyard/sims/firesim/sim/project [info] loading settings for project firesim from build.sbt ... [info] loading settings for project targetutils from build.sbt ... [info] loading settings for project midas from build.sbt ... [info] resolving key references (36668 settings) ... [info] set current project to chipyardRoot (in build file:/home/chipyard/) [info] set current project to chipyard (in build file:/home/chipyard/) [info] compiling 25 Scala sources to /home/chipyard/generators/testchipip/target/scala-2.12/classes ... [error] /home/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:9:30: object spi is not a member of package sifive.blocks.devices [error] import sifive.blocks.devices.spi.{PeripherySPIFlashKey} [error] ^ [error] /home/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:78:15: not found: value PeripherySPIFlashKey [error] spi.zip(p(PeripherySPIFlashKey)).zipWithIndex.foreach { case ((port, params), i) => [error] ^ [error] /home/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:79:56: value fSize is not a member of Any [error] val spi_mem = Module(new SimSPIFlashModel(params.fSize, i, rdOnly)) [error] ^ [error] /home/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:79:63: type mismatch; [error] found : Any [error] required: Int [error] val spi_mem = Module(new SimSPIFlashModel(params.fSize, i, rdOnly)) [error] ^ [error] /home/chipyard/generators/testchipip/src/main/scala/SPIFlash.scala:82:22: value csWidth is not a member of Any [error] require(params.csWidth == 1, "I don't know what to do with your extra CS bits. Fix me please.") [error] ^ [error] /home/chipyard/generators/testchipip/src/main/scala/UARTAdapter.scala:29:28: not found: type UARTPortIO [error] val uart = Flipped(new UARTPortIO(UARTParams(address = 0))) // We do not support the four wire variant [error] ^ [error] /home/chipyard/generators/testchipip/src/main/scala/UARTAdapter.scala:29:39: not found: value UARTParams [error] val uart = Flipped(new UARTPortIO(UARTParams(address = 0))) // We do not support the four wire variant

harrisonliew commented 2 years ago

Odd. It looks like the submodule in generators/sifive-blocks is not init-ed. Where there any submodules that failed to clone when you ran build-setup.sh?