hdl.ast: experimentally add Value._as_const.
authorwhitequark <cz@m-labs.hk>
Tue, 1 Jan 2019 09:50:39 +0000 (09:50 +0000)
committerwhitequark <cz@m-labs.hk>
Tue, 1 Jan 2019 09:50:39 +0000 (09:50 +0000)
commit3a1010f27d610818f6d1f88dc3184e43a352f30f
treee1433c12913922aeb70d87726497ad422edb6063
parenteade34a4c82b96f49889dac453030e390d8cd04c
hdl.ast: experimentally add Value._as_const.

Useful for writing e.g. decoders that accept Cat, etc as argument.
nmigen/hdl/ast.py