intel / intel/rohd

Long combinational chains of logic can reach stack size limit during simulation

Open
#194 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
489
Forks
88
Avg merge
3d 23h
Merged PRs (30d)
10

Description

### Describe the bug

The long chain of `Logic.put` for a very long combinational logic chain can reach the stack size limit leading to a stack overflow.

### To Reproduce

This example hit the issue:
https://github.com/stevenmburns/rohd_sklansky/pull/6

### Expected behavior

Simulation gracefully handles very large designs

### Actual behavior

Stack Overflow

### Additional: Dart SDK info

_No response_

### Additional: pubspec.yaml

```yaml
Reproduced on v0.4.0, Dart v2.18.4
```

### Additional: Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.