mirror of https://github.com/YosysHQ/yosys.git
write_xaiger: fix case of PI and CI and (* keep *)
This commit is contained in:
parent
2c65e1abac
commit
eb7dd7d374
|
@ -356,6 +356,11 @@ struct XAigerWriter
|
||||||
alias_map[O] = b;
|
alias_map[O] = b;
|
||||||
ci_bits.emplace_back(b);
|
ci_bits.emplace_back(b);
|
||||||
undriven_bits.erase(O);
|
undriven_bits.erase(O);
|
||||||
|
// If PI and CI, then must be a (* keep *) wire
|
||||||
|
if (input_bits.erase(O)) {
|
||||||
|
log_assert(output_bits.count(O));
|
||||||
|
log_assert(O.wire->get_bool_attribute(ID::keep));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue