back.rtlil: fix guard for division by zero.
authorwhitequark <whitequark@whitequark.org>
Wed, 15 Jul 2020 04:09:58 +0000 (04:09 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 15 Jul 2020 04:14:34 +0000 (04:14 +0000)
commitd06add0aab5abb386a6d07a0430ca7a7a8373fe4
tree6394ea39b7213c81b52e5783fd9b9c05b108c0c0
parentd714d78de1338a1af9136328cba99a1ae334f1e5
back.rtlil: fix guard for division by zero.

Oops... that should be checking the divisor, not the dividend. This
was discovered by running the test suite on cxxsim.
nmigen/back/rtlil.py