Skip to content

[fpga] Fix ROM corruption on async reset assertion#649

Merged
marnovandermaas merged 1 commit into
lowRISC:mainfrom
raylau1:fix_reset_freeze
Jul 8, 2026
Merged

[fpga] Fix ROM corruption on async reset assertion#649
marnovandermaas merged 1 commit into
lowRISC:mainfrom
raylau1:fix_reset_freeze

Conversation

@raylau1

@raylau1 raylau1 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

The asynchronous Mocha reset assertion on FPGA can cause timing violations for BRAM control/address input signals, and corrupt the content of the ROM.

This PR adds a synchroniser to ensure both assertion and deassertion of the Mocha top reset on FPGA are synchronous to the clock, which prevents this issue.

Closes #639.

The async Mocha reset assertion can cause timing violations for BRAM
control/address input signals, and corrupt the content of the ROM.

This bug does not affect the ASIC implementation.

This commit ensures both assertion and deassertion of the Mocha top
reset on FPGA are synchronous to the clock, which prevents the issue.
@raylau1 raylau1 self-assigned this Jul 6, 2026
@raylau1 raylau1 requested a review from marnovandermaas July 6, 2026 12:56

@marnovandermaas marnovandermaas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find! I was wondering about one alteration.

Comment thread hw/top_chip/rtl/chip_mocha_genesys2.sv

@marnovandermaas marnovandermaas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks good to me. I re-ran the CI three times to make sure the FPGA test runs reliably now, and it does. So I think this is good to merge.

@marnovandermaas marnovandermaas added this pull request to the merge queue Jul 8, 2026
Merged via the queue into lowRISC:main with commit 564a289 Jul 8, 2026
15 checks passed
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.

FPGA top unresponsive after repeated external reset

2 participants