build.dsl: clean up inversion logic.
authorwhitequark <whitequark@whitequark.org>
Mon, 26 Oct 2020 19:50:21 +0000 (19:50 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:16:16 +0000 (15:16 +0000)
commita44bc97c62c8898a092154fca589ece56bfa3796
treef063106b0f51511c40c85bba123dfd526fc2766b
parent3e167f73d3510cccdea81b86bcb1b33e7be0cc2a
build.dsl: clean up inversion logic.

  * Add invert= argument to DiffPairs() constructor, like in Pins().
  * Make PinsN() and DiffPairsN() pass invert= to the corresponding
    construtor instead of mutating.
nmigen/build/dsl.py
tests/test_build_dsl.py