amaranth/nmigen
whitequark 6aabdc0a73 hdl.ast: add an explicit Shape class, included in prelude.
Shapes have long been a part of nMigen, but represented using tuples.
This commit adds a Shape class (using namedtuple for backwards
compatibility), and accepts anything castable to Shape (including
enums, ranges, etc) anywhere a tuple was accepted previously.

In addition, `signed(n)` and `unsigned(n)` are added as aliases for
`Shape(n, signed=True)` and `Shape(n, signed=False)`, transforming
code such as `Signal((8, True))` to `Signal(signed(8))`.
These aliases are also included in prelude.

Preparation for #225.
2019-10-11 12:52:41 +00:00
..
back Consistently use {!r}, not '{!r}' in diagnostics. 2019-10-11 11:47:42 +00:00
build vendor.intel: add Quartus support. 2019-10-10 00:35:13 +00:00
compat hdl.ast: Value.{wrap→cast} 2019-10-11 10:49:34 +00:00
hdl hdl.ast: add an explicit Shape class, included in prelude. 2019-10-11 12:52:41 +00:00
lib Consistently use {!r}, not '{!r}' in diagnostics. 2019-10-11 11:47:42 +00:00
test hdl.ast: add an explicit Shape class, included in prelude. 2019-10-11 12:52:41 +00:00
vendor vendor.xilinx_ultrascale: new supported family. 2019-10-10 16:35:48 +00:00
__init__.py Remove nmigen.lib from prelude. 2019-09-06 06:53:06 +00:00
_toolchain.py _toolchain,build.plat,vendor.*: add required_tools list and checks. 2019-08-31 00:05:47 +00:00
asserts.py hdl.ast,back.rtlil: implement Cover. 2019-09-03 01:32:24 +00:00
cli.py hdl.ir: rename .get_fragment() to .elaborate(). 2019-01-26 02:31:12 +00:00
rpc.py rpc: add public Records as module ports. 2019-09-30 18:28:21 +00:00
tools.py hdl: make all public Value classes other than Record final. 2019-05-12 05:40:17 +00:00
tracer.py tracer: fix typo. 2019-08-19 20:20:18 +00:00