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.64k stars 650 forks source link

[help] An "Error: Option --top-module failed" error occurs when performing "Prototyping Flow" #1617

Closed luming-xyz closed 1 year ago

luming-xyz commented 1 year ago

Background Work

Chipyard Version and Hash

Release: 1.10.0 CentOS Linux release 7.9.2009

OS Setup

cd fpga _make SUBPROJECT=vcu118 bitstream

(/data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/.conda-env) [luming@ming fpga]$ make SUB_PROJECT=vcu118 bitstream
Running with RISCV=/data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/.conda-env/riscv-tools
mkdir -p /data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/fpga/generated-src/chipyard.fpga.vcu118.VCU118FPGATestHarness.RocketVCU118Config
(set -o pipefail &&     cd /data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard && java -cp /data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/.classpath_cache/chipyard.jar chipyard.Generator  --target-dir /data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/fpga/generated-src/chipyard.fpga.vcu118.VCU118FPGATestHarness.RocketVCU118Config --name chipyard.fpga.vcu118.VCU118FPGATestHarness.RocketVCU118Config --top-module chipyard.fpga.vcu118.VCU118FPGATestHarness --legacy-configs chipyard.fpga.vcu118:RocketVCU118Config  | tee /data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/fpga/generated-src/chipyard.fpga.vcu118.VCU118FPGATestHarness.RocketVCU118Config/chipyard.fpga.vcu118.VCU118FPGATestHarness.RocketVCU118Config.chisel.log)
Picked up JAVA_TOOL_OPTIONS: -Xmx8G -Xss8M -Djava.io.tmpdir=/data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/.java_tmp
------------------------------------------------------------------------------
Error: Option --top-module failed when given 'chipyard.fpga.vcu118.VCU118FPGATestHarness'. chipyard.fpga.vcu118.VCU118FPGATestHarness
Try --help for more information.
------------------------------------------------------------------------------
make: *** [/data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/common.mk:132: /data/prj/2_rocket_chip/1_learn/chipyard_try0926/chipyard/fpga/generated-src/chipyard.fpga.vcu118.VCU118FPGATestHarness.RocketVCU118Config/chipyard.fpga.vcu118.VCU118FPGATestHarness.RocketVCU118Config.fir] Error 1

Other Setup

No response

Current Behavior

------------------------------------------------------------------------------
Error: Option --top-module failed when given 'chipyard.fpga.vcu118.VCU118FPGATestHarness'. chipyard.fpga.vcu118.VCU118FPGATestHarness
Try --help for more information.
------------------------------------------------------------------------------

Expected Behavior

I have searched the relevant materials but failed to find a solution. May I ask how I should troubleshoot this problem :)

Other Information

No response

luming-xyz commented 1 year ago

Added: Command to use dhrystone test environment:

cd sims/verilator
make CONFIG=RocketConfig
./simulator-chipyard.harness-RocketConfig $RISCV/riscv64-unknown-elf/share/riscv-tests/benchmarks/dhrystone.riscv

thank you

jerryz123 commented 1 year ago

Delete Chipyard/.classpath_cache and retry?

luming-xyz commented 1 year ago

Delete Chipyard/.classpath_cache and retry? It works, and now vivado is compiling, thank you very much!!!