hdl.{ast,dsl}: add Signal.enum; coerce Enum to Value; accept Enum patterns.
authorwhitequark <cz@m-labs.hk>
Mon, 16 Sep 2019 18:59:28 +0000 (18:59 +0000)
committerwhitequark <cz@m-labs.hk>
Mon, 16 Sep 2019 19:22:12 +0000 (19:22 +0000)
commitb668f2811adb14a18673f569ec6c28c65c745060
tree24439ad4ffa75116b5e4d6f5d7732e59d02d3215
parent1a47729a8a229f0d21bdec84454b1196bd614433
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