hdl.ast: rename `nbits` to `width`.
authorwhitequark <cz@m-labs.hk>
Fri, 20 Sep 2019 15:35:55 +0000 (15:35 +0000)
committerwhitequark <cz@m-labs.hk>
Fri, 20 Sep 2019 15:36:25 +0000 (15:36 +0000)
commit00cd7ac7ba0332e634f9420d0eafea59fddf177a
tree3f5e921813ba5f1b41b0460495b1f775066b5ca4
parentc3908a3a4de6c8c7a9d6cf0c71c4c2968f001ad1
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