Skip to content

fix: Remove race in crossbar - #67

Merged
aolofsson merged 1 commit into
zeroasiccorp:mainfrom
coastalwhite:patch-1
Sep 19, 2026
Merged

aolofsson merged 1 commit into
zeroasiccorp:mainfrom
coastalwhite:patch-1

Conversation

@coastalwhite

@coastalwhite coastalwhite commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

The crossbar benchmark has a hazard that shows in both Icarus Verilog and Vogls, where both always @(*) are sensitive to i and updating i. This causes a loop of update and evaluation events and never progresses past t=0.

This commit fixes it by introducing a k which is used in the second always @(*).

The `crossbar` benchmark has a hazard that shows in both Icarus Verilog and Vogls, where both `always @(*)` are sensitive to the `i` and updating `i`. This causes a loop of update and evaluation events and never progresses past `t=0`.

This commit fixes it by introducing a `k` which is used in the second `always @(*)`.
@gadfort
gadfort requested a review from aolofsson September 10, 2026 17:31
@aolofsson

Copy link
Copy Markdown
Member

Thanks, nice catch!

@aolofsson
aolofsson merged commit f71bb54 into zeroasiccorp:main Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants