back.rtlil: attach source locations to switches, not processes.
authorwhitequark <whitequark@whitequark.org>
Mon, 8 Jul 2019 09:09:40 +0000 (09:09 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 8 Jul 2019 09:10:09 +0000 (09:10 +0000)
commit70f3563b5fd101668570e7851876b3d3e7b8f347
tree1cdb3ac6fcf734a1d62b0fb917c1557f0b095fa1
parent2492f490f563142d7c602cae652df1f0b4d71c38
back.rtlil: attach source locations to switches, not processes.

This effectively reverts and reimplements half of commit 82903e49.
I was confused and did not realize that RTLIL does, in fact, have
attributes on switches.

After this commit, processes no longer have any source locations.
This is semantically fine, as the processes we emit are purely
artificial (because of LHS grouping), but I have not checked how
downstream tooling handles this.
nmigen/back/rtlil.py