diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-11-04 14:25:13 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-11-04 14:25:13 +0100 |
commit | 5110a34dd74bc96c47d4aef47bc155110de2d87e (patch) | |
tree | 530d82f073ee9c4858f666b91e7bf2a7a9fca3bb /backends/aiger | |
parent | 81876a3734dacde199446343ce338b24e9b2796f (diff) | |
download | yosys-5110a34dd74bc96c47d4aef47bc155110de2d87e.tar.gz yosys-5110a34dd74bc96c47d4aef47bc155110de2d87e.tar.bz2 yosys-5110a34dd74bc96c47d4aef47bc155110de2d87e.zip |
Fix write_aiger bug added in 524af21
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'backends/aiger')
-rw-r--r-- | backends/aiger/aiger.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/aiger/aiger.cc b/backends/aiger/aiger.cc index 3e8b14dee..44718baae 100644 --- a/backends/aiger/aiger.cc +++ b/backends/aiger/aiger.cc @@ -91,6 +91,9 @@ struct AigerWriter } else if (alias_map.count(bit)) { a = bit2aig(alias_map.at(bit)); + } else + if (initstate_bits.count(bit)) { + a = initstate_ff; } if (bit == State::Sx || bit == State::Sz) |