compat.fhdl.bitcontainer: update Value.wrap call.
authorwhitequark <cz@m-labs.hk>
Sun, 13 Oct 2019 01:37:11 +0000 (01:37 +0000)
committerwhitequark <cz@m-labs.hk>
Sun, 13 Oct 2019 01:37:11 +0000 (01:37 +0000)
nmigen/compat/fhdl/bitcontainer.py

index a7c44e93069a3de2db6f17fb898ddeaf0f17d70f..b52887d2e3b50dfb23bac67c7f7b0140b4504fe6 100644 (file)
@@ -18,4 +18,4 @@ def bits_for(n, require_sign_bit=False):
 
 @deprecated("instead of `value_bits_sign(v)`, use `v.shape()`")
 def value_bits_sign(v):
-    return ast.Value.wrap(v).shape()
+    return ast.Value.cast(v).shape()