back.rtlil: don't cache wires for legalized switch tests.
authorwhitequark <cz@m-labs.hk>
Wed, 2 Oct 2019 07:51:49 +0000 (07:51 +0000)
committerwhitequark <cz@m-labs.hk>
Wed, 2 Oct 2019 07:51:49 +0000 (07:51 +0000)
commit031735c48c30cda66198108f8cb2a99168287095
tree6ad8d7ba96231a9021fd52cf142675d76c4d3e59
parent59dd3466bec4e5bb344255590e517796d829b3be
back.rtlil: don't cache wires for legalized switch tests.

This causes miscompilation of code such as:

  r = Array([self.a, self.b])
  m = Module()
  with m.If(r[self.s]):
      m.d.comb += self.o.eq(1)
  return m
nmigen/back/rtlil.py