3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-02 08:33:46 +00:00

Don't raise DZ when left is inf

This commit is contained in:
Krystine Sherwin 2026-03-11 12:58:55 +13:00
parent 7b270a79c0
commit b4186e2295
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -228,9 +228,8 @@ module edges();
`ifdef DIV
assume (c_zero);
// a = finite, b = 0
if ((a_norm || a_subnorm) && b_unsigned == '0)
assert (DZ);
// div/zero when a = finite, b = 0
assert (!DZ || ((a_norm || a_subnorm) && b_unsigned == '0));
// 0/0 or inf/inf
if ((a_zero && b_zero) || (a_inf && b_inf))
assert (NV);