mirror of https://github.com/YosysHQ/yosys.git
Fix gcc error, due to dict invalidation during recursion
This commit is contained in:
parent
06bf2ea562
commit
d2076aa659
4
Makefile
4
Makefile
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
CONFIG := clang
|
# CONFIG := clang
|
||||||
# CONFIG := gcc
|
CONFIG := gcc
|
||||||
# CONFIG := gcc-4.8
|
# CONFIG := gcc-4.8
|
||||||
# CONFIG := afl-gcc
|
# CONFIG := afl-gcc
|
||||||
# CONFIG := emcc
|
# CONFIG := emcc
|
||||||
|
|
|
@ -101,12 +101,13 @@ struct XAigerWriter
|
||||||
aig_map[bit] = mkgate(a0, a1);
|
aig_map[bit] = mkgate(a0, a1);
|
||||||
} else
|
} else
|
||||||
if (alias_map.count(bit)) {
|
if (alias_map.count(bit)) {
|
||||||
aig_map[bit] = bit2aig(alias_map.at(bit));
|
int a = bit2aig(alias_map.at(bit));
|
||||||
|
aig_map[bit] = a;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bit == State::Sx || bit == State::Sz) {
|
if (bit == State::Sx || bit == State::Sz) {
|
||||||
log_debug("Bit '%s' contains 'x' or 'z' bits. Treating as 1'b0.\n", log_signal(bit));
|
log_debug("Bit '%s' contains 'x' or 'z' bits. Treating as 1'b0.\n", log_signal(bit));
|
||||||
aig_map[bit] = 0;
|
aig_map[bit] = aig_map.at(State::S0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue