mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-09 07:33:25 +00:00
Merge pull request #5109 from YosysHQ/emil/aiger-map-fix-outputs
aiger: fix -map and -vmap
This commit is contained in:
commit
c21cd300a0
2 changed files with 11 additions and 1 deletions
|
@ -713,7 +713,7 @@ struct AigerWriter
|
|||
}
|
||||
|
||||
if (wire->port_output) {
|
||||
int o = ordered_outputs.at(sig[i]);
|
||||
int o = ordered_outputs.at(SigSpec(wire, i));
|
||||
output_lines[o] += stringf("output %d %d %s\n", o, index, log_id(wire));
|
||||
}
|
||||
|
||||
|
|
10
tests/aiger/io.ys
Normal file
10
tests/aiger/io.ys
Normal file
|
@ -0,0 +1,10 @@
|
|||
read_verilog <<EOF
|
||||
module bad(
|
||||
input in,
|
||||
output reg [1:0] out
|
||||
);
|
||||
assign out = {in, 1'b0};
|
||||
endmodule
|
||||
EOF
|
||||
proc
|
||||
write_aiger -vmap /dev/null /dev/null
|
Loading…
Add table
Add a link
Reference in a new issue