deminout: Don't demote constant-driven inouts to inputs
authorDavid Shah <dave@ds0.me>
Wed, 12 Dec 2018 16:50:46 +0000 (16:50 +0000)
committerDavid Shah <dave@ds0.me>
Wed, 12 Dec 2018 16:50:46 +0000 (16:50 +0000)
Signed-off-by: David Shah <dave@ds0.me>
passes/techmap/deminout.cc

index 9f0c7bf675d4c302d75654d960ccc36ec69326c7..0cc3df2af6ec286411b1c28784c65d35dcd38c43 100644 (file)
@@ -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))