hdl.rec: preserve shapes when constructing a layout.
authorShawn Anastasio <shawnanastasio@yahoo.com>
Fri, 5 Jun 2020 03:19:46 +0000 (22:19 -0500)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 13:39:38 +0000 (13:39 +0000)
commitd99f04a380235c0094858bff5466dab577429452
tree01d105455b9830f2571f22599dd77851f1114f8f
parentb11cafd78686780b388866ff6009853ced001c76
hdl.rec: preserve shapes when constructing a layout.

Preserve the original user-provided shape, while still checking
its validity. This allows Enum decoders to work when specifying
record fields with Enums.

Fixes #393.
nmigen/hdl/rec.py
nmigen/test/test_hdl_rec.py
nmigen/test/test_lib_io.py