hdl.ast: give Assert and Assume their own src_loc.
authorwhitequark <whitequark@whitequark.org>
Sat, 19 Jan 2019 00:08:51 +0000 (00:08 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 19 Jan 2019 00:08:51 +0000 (00:08 +0000)
commitb50b47d9846e5b3da7d08a0c095a6dd66bbf91c1
tree8af80dacb5cd6554eaf478e5c1ddffcb3641573e
parent66466a8a0ec88afc7d5cde272cfe12fd044785ba
hdl.ast: give Assert and Assume their own src_loc.

This helps with patterns like `Assert(fsm.ongoing("IDLE"))`, which
would otherwise point into nMigen internals.
nmigen/back/rtlil.py
nmigen/hdl/ast.py
nmigen/hdl/xfrm.py