DeadLoop Bug in GSim SplitArray on Tilelink

Open
#103 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@Wolf-Tungsten is already working on this.

Since Apr 7, 2026.

Assessment

This issue has not been assessed yet.

Description

Hi:

While running GSim on SonicBoom V3 + Chipyard, we found a bug in graph::splitArray() function.
When s.size() == 0 && partialVisited.size() != 0, what is left in partialVisited is not necessarily array components. It could also be another case shown in the diagram below:

Image

In this case, d.ready will never be fully visited, so do d.opcode. This will cause malfunction in the following splitArray functionality.
An testing FIR is attached here in google drive

One need to slightly modifiy the chipyard config to be compatible with GSIM. If you need the detail let me know.
The GSIM cmd I am using: ./gsim/build/gsim/gsim --supernode-max-size=15 --cpp-max-size-KB=8192 --sep-mod=. --sep-aggr=. --dir ./gsim_test_output ./SimTopBoomV3.fir

Thank you
Jerry

Dominant language
C++
Stars
93
Forks
16
Avg merge
2d 7h
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenXiangShan/gsim

All issues in OpenXiangShan/gsim

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.