Skip to content

dfflibmap: propagate negated next_state to output correctly #5190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

widlarizer
Copy link
Collaborator

@widlarizer widlarizer commented Jun 20, 2025

Fixes #5186. Prior to this PR, a negation in next_state was considered equivalent to an inverter on the output port. However, flops with set or reset need swapping.

  • add test covering original report
  • ensure flop kinds other than _DFFSR_* with set or reset are still mapped correctly as well

@widlarizer widlarizer force-pushed the emil/dfflibmap-fix-negated-next_state branch from 71afe0c to 5d8fa56 Compare June 24, 2025 09:43
@widlarizer widlarizer force-pushed the emil/dfflibmap-fix-negated-next_state branch from 5d8fa56 to 778079b Compare June 24, 2025 10:01
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.

Invalid mapping of ASAP7 FFs
1 participant