deminout: prevent any constant assignment from demoting to input
authorMarcin Kościelnicki <mwk@0x04.net>
Mon, 30 Mar 2020 13:02:24 +0000 (15:02 +0200)
committerMarcin Kościelnicki <mwk@0x04.net>
Mon, 30 Mar 2020 13:04:31 +0000 (15:04 +0200)
commitf68985f997865acefef63c3cb15074ebe2882869
tree7fde6ea79ffb62d853ef05c45bbda897aab934ce
parent1dbc70172830c57cda22e4bc82d2db57a2067203
deminout: prevent any constant assignment from demoting to input

Before this patch,

```
module top(inout io);
assign io = 1'bx;
endmodule
```

would have the `io` pin demoted to input (same happens for `1'bz`,
but not for `1'b0` or `1'b1`), resulting in check failures later on.

Part of fix for #1841.
passes/techmap/deminout.cc