amaranth/nmigen/test
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
..
compat lib.fifo: adjust properties to have consistent naming. 2019-09-13 12:33:41 +00:00
__init__.py hdl.ir: detect elaboratables that are created but not used. 2019-04-21 08:52:57 +00:00
test_build_dsl.py build.dsl: accept Pins(invert=True). 2019-10-03 02:44:43 +00:00
test_build_res.py build.res: simplify clock constraints. 2019-09-21 14:12:29 +00:00
test_compat.py compat.fhdl.module: CompatModule should be elaboratable. 2019-06-04 11:11:31 +00:00
test_examples.py test.test_examples: Convert pathlib-specific class to string. 2019-08-20 00:54:10 +00:00
test_hdl_ast.py hdl.ast: add an explicit Shape class, included in prelude. 2019-10-11 12:52:41 +00:00
test_hdl_cd.py hdl.cd: add negedge clock domains. 2019-08-31 22:05:48 +00:00
test_hdl_dsl.py Consistently use {!r}, not '{!r}' in diagnostics. 2019-10-11 11:47:42 +00:00
test_hdl_ir.py Consistently use {!r}, not '{!r}' in diagnostics. 2019-10-11 11:47:42 +00:00
test_hdl_mem.py Consistently use {!r}, not '{!r}' in diagnostics. 2019-10-11 11:47:42 +00:00
test_hdl_rec.py hdl.ast: add an explicit Shape class, included in prelude. 2019-10-11 12:52:41 +00:00
test_hdl_xfrm.py hdl.xfrm: lower resets in DomainLowerer as well. 2019-08-19 21:44:30 +00:00
test_lib_cdc.py Consistently use {!r}, not '{!r}' in diagnostics. 2019-10-11 11:47:42 +00:00
test_lib_coding.py formal→asserts 2019-08-19 20:23:24 +00:00
test_lib_fifo.py Consistently use {!r}, not '{!r}' in diagnostics. 2019-10-11 11:47:42 +00:00
test_lib_io.py Clean up imports. 2019-06-04 08:18:50 +00:00
test_sim.py Consistently use {!r}, not '{!r}' in diagnostics. 2019-10-11 11:47:42 +00:00
tools.py _toolchain,build.plat,vendor.*: add required_tools list and checks. 2019-08-31 00:05:47 +00:00