hdl.ast: fix shape calculation for *.
authorwhitequark <cz@m-labs.hk>
Sat, 26 Jan 2019 00:54:02 +0000 (00:54 +0000)
committerwhitequark <cz@m-labs.hk>
Sat, 26 Jan 2019 00:56:40 +0000 (00:56 +0000)
commit4e5bbed8f35411fcd854616a886ab2459677dbd9
treed713d553e1ebcaae1baeeec5ec85861ef213148b
parent32aa7a2fec98631e2bab5790b5cb3296b0f10913
hdl.ast: fix shape calculation for *.

This was carried over from Migen, and is wrong there too.
Counterexample: 1'sd-1 * 4'sd-4 = 4'sd-4 (but should be 5'sd4).
nmigen/hdl/ast.py
nmigen/test/test_hdl_ast.py