hdl.ast: give Assert and Assume their own src_loc.
authorwhitequark <cz@m-labs.hk>
Sat, 19 Jan 2019 00:08:51 +0000 (00:08 +0000)
committerwhitequark <cz@m-labs.hk>
Sat, 19 Jan 2019 00:08:51 +0000 (00:08 +0000)
commitc5bb1d3fca39670db7a7a9b1699f2d7f3a3c5749
tree8af80dacb5cd6554eaf478e5c1ddffcb3641573e
parent3155d9d21073606f2dadf17581d02ed6b63d9aae
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