back.rtlil: mask memory init values.
authorwhitequark <cz@m-labs.hk>
Tue, 11 Jun 2019 03:43:09 +0000 (03:43 +0000)
committerwhitequark <cz@m-labs.hk>
Tue, 11 Jun 2019 03:43:09 +0000 (03:43 +0000)
commit3b2673eae2f46eb5f7a3933df7bd48e6b40f1cb3
tree3f0c2de714140f835d2837ae6903dee43f5fc6ad
parent14c60a071a565b2da62bba14ad5d369540b80e3f
back.rtlil: mask memory init values.

This handles both init values that are too wide, which happens if
their magnitude is too high, or if they're negative.

Fixes #96.
nmigen/back/rtlil.py