fhdl.ast: bits_sign→shape.

This commit is contained in:
whitequark 2018-12-13 02:06:49 +00:00
parent dc486ad8b9
commit f0f4c0ce61
5 changed files with 125 additions and 125 deletions

View file

@ -16,6 +16,6 @@ def bits_for(n, require_sign_bit=False):
return tools.bits_for(n, require_sign_bit)
@deprecated("instead of `value_bits_sign(v)`, use `v.bits_sign()`")
@deprecated("instead of `value_bits_sign(v)`, use `v.shape()`")
def value_bits_sign(v):
return ast.Value.wrap(v).bits_sign()
return ast.Value.wrap(v).shape()