Skip to content

Add br_cdc_stable_data_autoupdate module#999

Closed
zhemao-openai wants to merge 2 commits intomainfrom
spr/main/91823ccd
Closed

Add br_cdc_stable_data_autoupdate module#999
zhemao-openai wants to merge 2 commits intomainfrom
spr/main/91823ccd

Conversation

@zhemao-openai
Copy link
Copy Markdown
Contributor

@zhemao-openai zhemao-openai commented Mar 10, 2026

Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93914fc62a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +34 to +36
`BR_REGLIX(src_data_reg, src_data, src_valid, InitValue, src_clk, src_rst)

assign src_valid = src_data != src_data_reg;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Hold pending source changes until CDC channel is ready

This logic can drop updates whenever src_data changes while br_cdc_stable_data is backpressured: src_data_reg is updated on any src_valid, but src_valid itself is just src_data != src_data_reg, so a change that occurs when src_ready is low is consumed into the shadow register and then deasserted before a transfer happens. In that case the destination never receives the new value (and with assertions enabled, no_reg_overflow_A can also fire), so two source updates within one CDC transfer interval can leave dst_data permanently stale.

Useful? React with 👍 / 👎.

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.

1 participant