hdl.rec: preserve shapes when constructing a layout.
authorShawn Anastasio <shawnanastasio@yahoo.com>
Fri, 5 Jun 2020 03:19:46 +0000 (22:19 -0500)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2020 03:19:46 +0000 (03:19 +0000)
commit2f7c3bf443537c4cb931f30695385378233c0d47
treeb9fd9ff23b5ce7716da671d67845c92708977650
parent9c80c32c306c4cd9483821e3503141111ed7ffde
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