Closed T-K-233 closed 1 year ago
Delete chipyard/.classpath_cache and retry.
Oh I'm dumb...
For FPGA it should be SUB_PROJECT=[arty|arty100t]
so
make SUB_PROJECT=arty bitstream
Then it raises the following error
> make SUB_PROJECT=arty100t bitstream
Running with RISCV=/home/tk/Desktop/chipyard/.conda-env/riscv-tools
mkdir -p /home/tk/Desktop/chipyard/fpga/generated-src/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig
cp -f /home/tk/Desktop/chipyard/generators/testchipip/src/main/resources/testchipip/bootrom/bootrom.rv64.img /home/tk/Desktop/chipyard/fpga/generated-src/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig/bootrom.rv64.img
cp -f /home/tk/Desktop/chipyard/generators/testchipip/src/main/resources/testchipip/bootrom/bootrom.rv32.img /home/tk/Desktop/chipyard/fpga/generated-src/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig/bootrom.rv32.img
mkdir -p /home/tk/Desktop/chipyard/fpga/generated-src/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig
(set -o pipefail && cd /home/tk/Desktop/chipyard && java -cp /home/tk/Desktop/chipyard/.classpath_cache/chipyard.jar chipyard.Generator --target-dir /home/tk/Desktop/chipyard/fpga/generated-src/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig --name chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig --top-module chipyard.fpga.arty100t.Arty100THarness --legacy-configs chipyard.fpga.arty100t:RocketArty100TConfig | tee /home/tk/Desktop/chipyard/fpga/generated-src/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig.chisel.log)
Picked up JAVA_TOOL_OPTIONS: -Xmx8G -Xss8M -Djava.io.tmpdir=/home/tk/Desktop/chipyard/.java_tmp
------------------------------------------------------------------------------
Error: Option --top-module failed when given 'chipyard.fpga.arty100t.Arty100THarness'. chipyard.fpga.arty100t.Arty100THarness
Try --help for more information.
------------------------------------------------------------------------------
make: *** [/home/tk/Desktop/chipyard/common.mk:137: /home/tk/Desktop/chipyard/fpga/generated-src/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig/chipyard.fpga.arty100t.Arty100THarness.RocketArty100TConfig.fir] Error 1
And deleting the .classpath_cache directory solves the error:
rm -rf ./chipyard/.classpath_cache
Background Work
Chipyard Version and Hash
Release: 1.5.0 Hash: a6a6a6
OS Setup
Ex: Output of
uname -a
+lsb_release -a
+printenv
+conda list
Other Setup
Ex: Prior steps taken / Documentation Followed / etc...
Current Behavior
Expected Behavior
Chipyard should compile the chip source code and generate FPGA bitstream
Other Information
No response