gemmini icon indicating copy to clipboard operation
gemmini copied to clipboard

Error running build-verilator.sh --debug

Open chauhanjoy opened this issue 2 years ago • 1 comments

Hi, I have followed this commands,

git clone https://github.com/ucb-bar/chipyard.git
cd chipyard
git checkout 117624d8eea27bafd613eec09e9b9b3e31239e08
./scripts/init-submodules-no-riscv-tools.sh
./scripts/build-toolchains.sh esp-tools

source env.sh

cd generators/gemmini
git fetch && git checkout v0.6.4
git submodule update

cd -
cd toolchains/esp-tools/riscv-isa-sim/build
git fetch && git checkout 090e82c473fd28b4eb2011ffcd771ead6076faab
make && make install

cd chipyard/generators/gemmini
./scripts/setup-paths.sh

cd chipyard/generators/gemmini/software/gemmini-rocc-tests
./build.sh

after that, I've tried running the script ./scripts/build-verilator.sh --debug demonstrated in the tutorial ( with all the relevant environment settings sourced ). I got the following error:

Screenshot from 2022-06-02 12-29-37

chauhanjoy avatar Jun 02 '22 07:06 chauhanjoy

I suspect you may not be on Gemmini's correct commit.

The line which failed in the error message is supposed to look like this:

https://github.com/ucb-bar/gemmini/blob/master/src/main/scala/gemmini/PixelRepeater.scala#L87

whereas in your error message, it reads:

when(reset.toBool()) {

Can you check that your Gemmini repo is actually on the v0.6.4 tag?

hngenc avatar Jun 06 '22 01:06 hngenc