hdl.rec: allow providing fields during construction.
authorwhitequark <cz@m-labs.hk>
Sat, 25 May 2019 21:57:07 +0000 (21:57 +0000)
committerwhitequark <cz@m-labs.hk>
Sat, 25 May 2019 22:06:56 +0000 (22:06 +0000)
commitcca53053f6662259b93512cbe6e026e3fb8d69e4
tree8915f1a21b08e46d0391f0d7b237276768881ecc
parent2553f667173a52146e21553a352c6aeb09e667b5
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