Skip to content
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

Vivado simulation issue: multiplying "x" with "0" #17

Open
sgherbst opened this issue Mar 9, 2021 · 0 comments
Open

Vivado simulation issue: multiplying "x" with "0" #17

sgherbst opened this issue Mar 9, 2021 · 0 comments

Comments

@sgherbst
Copy link
Owner

sgherbst commented Mar 9, 2021

Looks like the Vivado simulator outputs "x" when "x" is multiplied by "0". For that reason, we might want to have mul_real check for that condition and output "0" if either input is zero, e.g.

assign prod = ((a == 0) || (b == 0)) ? 0 : (a * b);

This can otherwise cause x's to propagate during some startup scenarios.

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

No branches or pull requests

1 participant