From: David Shah Date: Wed, 12 Dec 2018 16:50:46 +0000 (+0000) Subject: deminout: Don't demote constant-driven inouts to inputs X-Git-Tag: yosys-0.9~375^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3fe9465f3efc30daf54926d6b3d2743b5fb3e51;p=yosys.git deminout: Don't demote constant-driven inouts to inputs Signed-off-by: David Shah --- diff --git a/passes/techmap/deminout.cc b/passes/techmap/deminout.cc index 9f0c7bf67..0cc3df2af 100644 --- a/passes/techmap/deminout.cc +++ b/passes/techmap/deminout.cc @@ -113,7 +113,8 @@ struct DeminoutPass : public Pass { { if (bits_numports[bit] > 1 || bits_inout.count(bit)) new_input = true, new_output = true; - + if (bit == State::S0 || bit == State::S1) + new_output = true; if (bits_written.count(bit)) { new_output = true; if (bits_tribuf.count(bit))