hdl.ast: fix shape calculation for *.
authorwhitequark <whitequark@whitequark.org>
Sat, 26 Jan 2019 00:54:02 +0000 (00:54 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 26 Jan 2019 00:56:40 +0000 (00:56 +0000)
commitf71e0fffbbe7e2a5269e4944316ac7246ea4a986
treed713d553e1ebcaae1baeeec5ec85861ef213148b
parent7b25665fde81be7c08a0996f2bff5035680b7ebd
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