hdl.rec: fix using Enum subclass as shape if direction is specified.
authorwhitequark <cz@m-labs.hk>
Sun, 22 Sep 2019 17:23:32 +0000 (17:23 +0000)
committerwhitequark <cz@m-labs.hk>
Sun, 22 Sep 2019 17:23:32 +0000 (17:23 +0000)
commit5f216a624870f2e77ac2f4dbd6aa0bb8f7383e89
tree416e1a1c31fa25fa37154a83009390ab21ed6017
parent97ad2716bd6ef448a661cfa57d01b39dec204656
hdl.rec: fix using Enum subclass as shape if direction is specified.

Also improves error messages.

Fixes #224.
nmigen/hdl/rec.py
nmigen/test/test_hdl_rec.py