actorlib/structuring: add Converter
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 31 Oct 2014 12:06:47 +0000 (13:06 +0100)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 1 Nov 2014 13:43:52 +0000 (21:43 +0800)
commit8db549a23d6d579b3ac8be32dc9da412359b640b
tree1dc08752c101c731a6c7a429afd8033a3d67cc8f
parenta7e490772432ab06d2c6a08cb56e1f8d574700fe
actorlib/structuring: add Converter

Converter enables easy conversions of data width on dataflows.
It handles the 3 possibles cases:
- downconverter
- upconverter
- direct connection when data width are identical.
migen/actorlib/structuring.py