back.rtlil: fix guard for division by zero.
authorwhitequark <whitequark@whitequark.org>
Wed, 15 Jul 2020 04:09:58 +0000 (04:09 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 14:53:34 +0000 (14:53 +0000)
commit9388dae4ed03a8bb3433d82f5c8ea54d1808bb18
tree1781770ecc16f6a442dcbbbb3cdc8cf47bf69cb1
parent617a52a192d430c36ef45eb0bfaad6a3de1efe49
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