Skip to content

Change suggestion (operator precedence): pzbcm_edge_detector.sv#12

Merged
taichi-ishitani merged 1 commit into
pezy-computing:masterfrom
githubhjs:patch-1
Aug 25, 2025
Merged

Change suggestion (operator precedence): pzbcm_edge_detector.sv#12
taichi-ishitani merged 1 commit into
pezy-computing:masterfrom
githubhjs:patch-1

Conversation

@githubhjs

Copy link
Copy Markdown
Contributor

Change suggestion (operator precedence):

What: ^ and & precedence makes o_edge compute i_d ^ (d & ~i_clear) instead of (i_d ^ d) & ~i_clear.
Impact: False edge detections when i_clear is asserted.
Fix: Add parentheses to gate the XOR result.

Change suggestion (operator precedence):

What: ^ and & precedence makes o_edge compute i_d ^ (d & ~i_clear) instead of (i_d ^ d) & ~i_clear.
Impact: False edge detections when i_clear is asserted.
Fix: Add parentheses to gate the XOR result.
@taichi-ishitani taichi-ishitani merged commit 774f8a5 into pezy-computing:master Aug 25, 2025
1 check passed
@taichi-ishitani

Copy link
Copy Markdown
Member

Thank you for your PR.
LGTM!

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