hdl.{ast,dsl}: add Signal.enum; coerce Enum to Value; accept Enum patterns.
authorwhitequark <whitequark@whitequark.org>
Mon, 16 Sep 2019 18:59:28 +0000 (18:59 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 16 Sep 2019 19:22:12 +0000 (19:22 +0000)
commit4777a7b3a2c4cbf449169b23b6b138de64ec1b3f
tree24439ad4ffa75116b5e4d6f5d7732e59d02d3215
parente8f79c5539a5988ab26c521b6e170eba6ab10a69
hdl.{ast,dsl}: add Signal.enum; coerce Enum to Value; accept Enum patterns.

Fixes #207.
nmigen/hdl/ast.py
nmigen/hdl/dsl.py
nmigen/test/test_hdl_ast.py
nmigen/test/test_hdl_dsl.py