pulp-platform / snitch_cluster

An energy-efficient RISC-V floating-point compute cluster.
https://pulp-platform.github.io/snitch_cluster/
Apache License 2.0
52 stars 55 forks source link

make bin/snitch_cluster.vlt error #88

Closed ashuthosh-mr closed 10 months ago

ashuthosh-mr commented 10 months ago

I have built the docker and cloned the snitch_cluster repo in /repo. And then in the target/snitch_cluster, I use the command make bin/snitch_cluster.vlt

For which I get:

work-vlt/Vtestharness.h:11:10: fatal error: verilated_heavy.h: No such file or directory

What am I doing wrong here?

Commands I have used:

  1. In the snitch_cluster root, docker run -it -v $REPO_TOP:/repo -w /repo ghcr.io/pulp-platform/snitch_cluster:main
  2. In /repo of docker, git clone https://github.com/pulp-platform/snitch_cluster.git --recurse-submodules
  3. In /repo/snitch_cluster/target/snitch_cluster, make bin/snitch_cluster.vlt

Thanks in advance.

ashuthosh-mr commented 10 months ago

I changed the Makefile, common.mk and run.py to previous version of the update #78 in the /target/snitch_cluster/ and it worked this time. I am able to run an application i.e axpy.elf. I will update more on this issue.

ashuthosh-mr commented 10 months ago

I faced further issues while running an application that had floating division (illegal instruction error). After going through the dnn examples that were part of the repository, I found that to make it work I need to enable divsqrt. Everything works fine now, after enabling divsqrt in the config json file.

Thanks, I shall close this issue.