migen.fhdl.structure: add Signal.like(other)
authorRobert Jordens <jordens@gmail.com>
Fri, 25 Jul 2014 05:45:41 +0000 (23:45 -0600)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Fri, 25 Jul 2014 05:52:59 +0000 (23:52 -0600)
commit44c6e524ba97bab1f491d1d56d0a66ac371761cf
tree0337949076e56449a5f76ed3e2e7aca173b25121
parent9fcea6e64a094408998b336dbf33cfa3a7ca3c00
migen.fhdl.structure: add Signal.like(other)

This is a convenience method. Signal(flen(other)) is used frequently but that
drops the signedness. Signal((other.nbits, other.signed)) would be correct but
is long.
migen/fhdl/structure.py