aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-12-12 16:50:46 +0000
committerDavid Shah <dave@ds0.me>2018-12-12 16:50:46 +0000
commitd3fe9465f3efc30daf54926d6b3d2743b5fb3e51 (patch)
tree876a696d30b3a65b34ce82d58b8218d22cc308f3 /passes
parent0b9bb852c66ec2a6e9b4b510b3e2e32b8c6a6b16 (diff)
downloadyosys-d3fe9465f3efc30daf54926d6b3d2743b5fb3e51.tar.gz
yosys-d3fe9465f3efc30daf54926d6b3d2743b5fb3e51.tar.bz2
yosys-d3fe9465f3efc30daf54926d6b3d2743b5fb3e51.zip
deminout: Don't demote constant-driven inouts to inputs
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'passes')
-rw-r--r--passes/techmap/deminout.cc3
1 files changed, 2 insertions, 1 deletions
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))