hdl.ast: rename `nbits` to `width`.
authorwhitequark <whitequark@whitequark.org>
Fri, 20 Sep 2019 15:35:55 +0000 (15:35 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 20 Sep 2019 15:36:25 +0000 (15:36 +0000)
commit378e9242807806b2dc698729847c871f44dd66b3
tree3f5e921813ba5f1b41b0460495b1f775066b5ca4
parentaf7224de5dba324a06cce51e9fa9f5503f9e8e9e
hdl.ast: rename `nbits` to `width`.

Also, replace `bits, sign = x.shape()` with more idiomatic
`width, signed = x.shape()`.

This unifies all properties corresponding to `len(x)` to `x.width`.
(Not all values have a `width` property.)

Fixes #210.
nmigen/back/pysim.py
nmigen/back/rtlil.py
nmigen/hdl/ast.py
nmigen/hdl/dsl.py
nmigen/hdl/mem.py
nmigen/hdl/xfrm.py
nmigen/test/test_build_res.py
nmigen/test/test_hdl_ast.py
nmigen/test/test_hdl_mem.py