aboutsummaryrefslogtreecommitdiffstats
path: root/backends/aiger
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-15 11:25:20 -0800
committerEddie Hung <eddie@fpgeh.com>2020-01-15 11:25:20 -0800
commitd6da9c0c0f3b59706f509b7fd96ea793491a2307 (patch)
tree931ae1ed487fb1a576a141da40184f88d1f7dcb3 /backends/aiger
parent1c41dc6b95c4c0261db96c15dd1b3cce8de6491f (diff)
downloadyosys-d6da9c0c0f3b59706f509b7fd96ea793491a2307.tar.gz
yosys-d6da9c0c0f3b59706f509b7fd96ea793491a2307.tar.bz2
yosys-d6da9c0c0f3b59706f509b7fd96ea793491a2307.zip
write_xaiger: skip abc9_flop only if abc_box_seq present
Diffstat (limited to 'backends/aiger')
-rw-r--r--backends/aiger/xaiger.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/aiger/xaiger.cc b/backends/aiger/xaiger.cc
index c3fc61e3b..a9b75ecc7 100644
--- a/backends/aiger/xaiger.cc
+++ b/backends/aiger/xaiger.cc
@@ -226,7 +226,7 @@ struct XAigerWriter
}
if (inst_module) {
- bool abc9_flop = inst_module->get_bool_attribute("\\abc9_flop");
+ bool abc9_flop = false;
auto it = cell->attributes.find("\\abc9_box_seq");
if (it != cell->attributes.end()) {
int abc9_box_seq = it->second.as_int();
@@ -234,6 +234,7 @@ struct XAigerWriter
box_list.resize(abc9_box_seq+1);
box_list[abc9_box_seq] = cell;
// Only flop boxes may have arrival times
+ abc9_flop = inst_module->get_bool_attribute("\\abc9_flop");
if (!abc9_flop)
continue;
}