mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Merge pull request #3733 from AdamHillier/aiger-inputs
Add outputs before inputs to the sigmap in the AIGER backend.
This commit is contained in:
commit
5fb1223861
|
@ -119,16 +119,16 @@ struct AigerWriter
|
||||||
if (wire->name.isPublic())
|
if (wire->name.isPublic())
|
||||||
sigmap.add(wire);
|
sigmap.add(wire);
|
||||||
|
|
||||||
// promote input wires
|
|
||||||
for (auto wire : module->wires())
|
|
||||||
if (wire->port_input)
|
|
||||||
sigmap.add(wire);
|
|
||||||
|
|
||||||
// promote output wires
|
// promote output wires
|
||||||
for (auto wire : module->wires())
|
for (auto wire : module->wires())
|
||||||
if (wire->port_output)
|
if (wire->port_output)
|
||||||
sigmap.add(wire);
|
sigmap.add(wire);
|
||||||
|
|
||||||
|
// promote input wires
|
||||||
|
for (auto wire : module->wires())
|
||||||
|
if (wire->port_input)
|
||||||
|
sigmap.add(wire);
|
||||||
|
|
||||||
for (auto wire : module->wires())
|
for (auto wire : module->wires())
|
||||||
{
|
{
|
||||||
if (wire->attributes.count(ID::init)) {
|
if (wire->attributes.count(ID::init)) {
|
||||||
|
|
Loading…
Reference in a new issue