mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Merge pull request #1842 from YosysHQ/mwk/fix-deminout-xz
deminout: prevent any constant assignment from demoting to input
This commit is contained in:
commit
22ef5701c0
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ 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)
|
||||
if (!bit.wire)
|
||||
new_output = true;
|
||||
if (bits_written.count(bit)) {
|
||||
new_output = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue