Skip to content

rtl: Add missing reset to PC carry-in flops - #172

Open
devtyagi3909 wants to merge 1 commit into
olofk:mainfrom
devtyagi3909:fix-x-prop-reset
Open

rtl: Add missing reset to PC carry-in flops#172
devtyagi3909 wants to merge 1 commit into
olofk:mainfrom
devtyagi3909:fix-x-prop-reset

Conversation

@devtyagi3909

Copy link
Copy Markdown

Fixes #151.

The registers pc_plus_offset_cy_r and pc_plus_4_cy_r are used in carry feedback paths. Without an explicit reset, they propagate X states during the first cycle of computation in gate-level simulations.

This PR explicitly zeros them during reset (and via initial block when RESET_STRATEGY == "NONE"), preventing undefined behavior on startup.

Fixes olofk#151.
The registers `pc_plus_offset_cy_r` and `pc_plus_4_cy_r` are used in carry feedback paths. Without an explicit reset, they propagate `X` states during the first cycle of computation in gate-level simulations.

This commit explicitly zeros them based on the `RESET_STRATEGY` parameter.
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.

Recommend explicitly resetting pc_plus_offset_cy_r and pc_plus_4_cy_r in serv_ctrl

1 participant