hdl.rec: allow providing fields during construction.
authorwhitequark <whitequark@whitequark.org>
Sat, 25 May 2019 21:57:07 +0000 (21:57 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 25 May 2019 22:06:56 +0000 (22:06 +0000)
commit2b7dc37ffe9b6717530134ac136400f5a4e8efb6
tree8915f1a21b08e46d0391f0d7b237276768881ecc
parent3392708e2b42aa334dc7bbccd13630557a1eaae0
hdl.rec: allow providing fields during construction.

This allows creating records populated with e.g. signals with custom
names, or sub-records that are instances of Record subclasses.
nmigen/hdl/rec.py
nmigen/test/test_hdl_rec.py
nmigen/test/test_lib_io.py