projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b9bb85
)
deminout: Don't demote constant-driven inouts to inputs
author
David Shah
<dave@ds0.me>
Wed, 12 Dec 2018 16:50:46 +0000
(16:50 +0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/passes/techmap/deminout.cc
b/passes/techmap/deminout.cc
index 9f0c7bf675d4c302d75654d960ccc36ec69326c7..0cc3df2af6ec286411b1c28784c65d35dcd38c43 100644
(file)
--- 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))