chipyard icon indicating copy to clipboard operation
chipyard copied to clipboard

a error i meet when run vlsi flow

Open 1bing2 opened this issue 3 years ago • 12 comments

Background Work

Chipyard Version and Hash

Release: 1.5.0 Hash: a6a6a6

OS Setup

Ex: Output of uname -a and lsb_release -a

Other Setup

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

Current Behavior

when i run vlsi flow on chipyard,i get a error. i run the command :make buildfile CONFIG=TinyRocketConfig

error:Total time: 59 s, completed Apr 28, 2022 9:41:02 PM /home/lee/Desktop/riscv-boom/verilator/chipyard/common.mk:110: recipe for target 'generator_temp' failed make: *** [generator_temp] Error 1

Expected Behavior

i have tried a lot of methods.but they don't work.

Other Information

No response

1bing2 avatar Apr 29 '22 09:04 1bing2

It looks like you had trouble running the Chisel Generator itself, and this is not related to the VLSI flow. Did you satisfy the environment requirements? If so, can you post the stack trace from sbt?

harrisonliew avatar Apr 29 '22 17:04 harrisonliew

It looks like you had trouble running the Chisel Generator itself, and this is not related to the VLSI flow. Did you satisfy the environment requirements? If so, can you post the stack trace from sbt?

i have satisfy the environment requirements.but when i run make CONFIG=SmallBoomConfig .it have this error error:Total time: 26 s, completed Apr 30, 2022 4:37:08 PM /home/lee/Desktop/riscv-boom/verilator/chipyard/common.mk:110: recipe for target 'generator_temp' failed make: *** [generator_temp] Error 1

1bing2 avatar Apr 30 '22 08:04 1bing2

We need to know what failed, not just that the Make target failed to help you. If you look at the generator_temp target: https://github.com/ucb-bar/chipyard/blob/main/common.mk#L109-L116 you can see that it just runs a mkdir and then sbt. Can you post the sbt stack trace/error log? Or do you have trouble even running mkdir or sbt?

harrisonliew avatar Apr 30 '22 17:04 harrisonliew

ok! My Error Log put into attachment Thank you! MY error.txt

1bing2 avatar May 01 '22 02:05 1bing2

Thanks for attaching the log.

So it looks like you do not have the correct dsptools and testchipip submodules. Did you run the scripts/init-submodules-no-riscv-tools.sh script? If so, can you check that the commits of those submodules match the ones you see here: https://github.com/ucb-bar/chipyard/tree//tools (replace <tag> with whichever release of Chipyard you are using)?

harrisonliew avatar May 01 '22 04:05 harrisonliew

i have run the scripts/init-submodules-no-riscv-tools.sh script and it comes the results are: Setting up official Chipyard release: 1.6.2 Skipping submodule 'fpga/fpga-shells' Skipping submodule 'generators/gemmini' Skipping submodule 'generators/sha3' Skipping submodule 'sims/firesim' Skipping submodule 'software/coremark' Skipping submodule 'software/firemarshal' Skipping submodule 'software/nvdla-workload' Skipping submodule 'software/spec2017' Skipping submodule 'toolchains/esp-tools/riscv-gnu-toolchain' Skipping submodule 'toolchains/esp-tools/riscv-isa-sim' Skipping submodule 'toolchains/esp-tools/riscv-pk' Skipping submodule 'toolchains/esp-tools/riscv-tests' Skipping submodule 'toolchains/libgloss' Skipping submodule 'toolchains/qemu' Skipping submodule 'toolchains/riscv-tools/riscv-gnu-toolchain' Skipping submodule 'toolchains/riscv-tools/riscv-gnu-toolchain-prebuilt' Skipping submodule 'toolchains/riscv-tools/riscv-isa-sim' Skipping submodule 'toolchains/riscv-tools/riscv-openocd' Skipping submodule 'toolchains/riscv-tools/riscv-pk' Skipping submodule 'toolchains/riscv-tools/riscv-tests' Skipping submodule 'vlsi/hammer-cadence-plugins' Skipping submodule 'vlsi/hammer-mentor-plugins' Skipping submodule 'vlsi/hammer-synopsys-plugins'

1bing2 avatar May 02 '22 08:05 1bing2

Can you verify that you have the correct commit for your dsptools and testchipip submodules? Also, it looks like you are trying to elaborate the included FFT generator, is that correct?

harrisonliew avatar May 03 '22 04:05 harrisonliew

i have verified these modules,but these modules don't loss anything and my FFT generator is correct . i have compare my generator with the generator on the https://github.com/ucb-bar/chipyard/tree/main/generators.but they both same.

1bing2 avatar May 04 '22 06:05 1bing2

Did you try building anything in your cloned directory before changing commits or running any initialization scripts? That can impact the whole cloned directory. Since Chipyard doesn't really have a proper clean rule at this time, you can try cloning a fresh repo and running the init script again. You shouldn't need to rebuild the toolchain if you leave that as built in the stale repo.

michael-etzkorn avatar May 04 '22 12:05 michael-etzkorn

nce Chipyard doesn't really have a proper clean rule at this time, you can try cloning a fresh repo and running the init script again. You shouldn't need to rebuild the toolchain if you leave that as built in the stale repo.

Can you describe it in detail.I don't konw it very well

1bing2 avatar May 05 '22 07:05 1bing2

My suggestion is to remove any doubt that it is an issue with the setup ordering. It's possible to confuse the initialization script if you start running make rules before the set-up scripts. Chipyard also doesn't support switching versions without a fresh repo. If you're confident you didn't checkout to different commits between build attempts or didn't attempt to run a build before running the initialization scripts, this probably will not fix your build issue, but it can help remove doubt that there was a problem with ordering during setup.

Since you believe you already followed requirements correctly:

follow repo setup, but with a second clone of the repo. Your riscv-tools will still be set-up in the first repo (or you can remove that and start over completely).

git clone https://github.com/ucb-bar/chipyard.git chipyard2
cd chipyard2
# checkout latest official chipyard release
# note: this may not be the latest release if the documentation version != "stable"
git checkout 1.6.2
./scripts/init-submodules-no-riscv-tools.sh

Only after the script tool finishes, run make CONFIG=SmallBoomConfig within the verilator sim folder.

You can then look to set-up the VLSI flow and run that: https://chipyard.readthedocs.io/en/stable/VLSI/ASAP7-Tutorial.html#initial-setup

michael-etzkorn avatar May 05 '22 16:05 michael-etzkorn

Thank you a lot! I will have a try

1bing2 avatar May 09 '22 06:05 1bing2