diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-16 09:34:26 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-16 09:34:26 -0700 |
commit | fb90d8c18c9e8bfad1356e3b4387d77eeb2e9377 (patch) | |
tree | fd84713fde0f2cadc67af95a9f3135711317d371 /frontends/aiger/aigerparse.cc | |
parent | bf312043d47c5ca99e26e25d153b49b3d3603ea4 (diff) | |
download | yosys-fb90d8c18c9e8bfad1356e3b4387d77eeb2e9377.tar.gz yosys-fb90d8c18c9e8bfad1356e3b4387d77eeb2e9377.tar.bz2 yosys-fb90d8c18c9e8bfad1356e3b4387d77eeb2e9377.zip |
Cleanup
Diffstat (limited to 'frontends/aiger/aigerparse.cc')
-rw-r--r-- | frontends/aiger/aigerparse.cc | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc index d378a07b7..3b53b0086 100644 --- a/frontends/aiger/aigerparse.cc +++ b/frontends/aiger/aigerparse.cc @@ -726,7 +726,7 @@ void AigerReader::parse_aiger_binary() void AigerReader::post_process() { pool<RTLIL::Module*> abc_carry_modules; - unsigned ci_count = 0, co_count = 0, flop_count = 0; + unsigned ci_count = 0, co_count = 0; for (auto cell : boxes) { RTLIL::Module* box_module = design->module(cell->type); log_assert(box_module); @@ -766,9 +766,6 @@ void AigerReader::post_process() } } - bool flop = box_module->attributes.count("\\abc_flop"); - log_assert(!flop || flop_count < flopNum); - // NB: Assume box_module->ports are sorted alphabetically // (as RTLIL::Module::fixup_ports() would do) for (auto port_name : box_module->ports) { @@ -783,13 +780,6 @@ void AigerReader::post_process() log_assert(wire); log_assert(wire->port_output); wire->port_output = false; - - if (flop && w->attributes.count("\\abc_flop_d")) { - RTLIL::Wire* d = outputs[outputs.size() - flopNum + flop_count]; - log_assert(d); - log_assert(d->port_output); - d->port_output = false; - } } if (w->port_output) { log_assert((piNum + ci_count) < inputs.size()); @@ -797,20 +787,11 @@ void AigerReader::post_process() log_assert(wire); log_assert(wire->port_input); wire->port_input = false; - - if (flop && w->attributes.count("\\abc_flop_q")) { - wire = inputs[piNum - flopNum + flop_count]; - log_assert(wire); - log_assert(wire->port_input); - wire->port_input = false; - } } rhs.append(wire); } cell->setPort(port_name, rhs); } - - if (flop) flop_count++; } dict<RTLIL::IdString, int> wideports_cache; |