aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-20 18:16:37 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-20 18:16:37 -0700
commit091bf4a18b2f4bf84fe62b61577c88d961468b3c (patch)
treeb70212f67f6007e7f82574f0ec4542b46c00309c /frontends
parentbbab6086918f8af3a8a09c2be56208fc29ef7068 (diff)
downloadyosys-091bf4a18b2f4bf84fe62b61577c88d961468b3c.tar.gz
yosys-091bf4a18b2f4bf84fe62b61577c88d961468b3c.tar.bz2
yosys-091bf4a18b2f4bf84fe62b61577c88d961468b3c.zip
Remove sequential extension
Diffstat (limited to 'frontends')
-rw-r--r--frontends/aiger/aigerparse.cc35
1 files changed, 2 insertions, 33 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc
index 7a467b91e..e8ee487e5 100644
--- a/frontends/aiger/aigerparse.cc
+++ b/frontends/aiger/aigerparse.cc
@@ -732,19 +732,12 @@ void AigerReader::parse_aiger_binary()
void AigerReader::post_process()
{
pool<IdString> seen_boxes;
- pool<IdString> flops;
- 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);
- bool is_flop = false;
if (seen_boxes.insert(cell->type).second) {
- if (box_module->attributes.count("\\abc_flop")) {
- log_assert(flop_count < flopNum);
- flops.insert(cell->type);
- is_flop = true;
- }
auto it = box_module->attributes.find("\\abc_carry");
if (it != box_module->attributes.end()) {
RTLIL::Wire *carry_in = nullptr, *carry_out = nullptr;
@@ -784,8 +777,6 @@ void AigerReader::post_process()
carry_out->port_id = ports.size();
}
}
- else
- is_flop = flops.count(cell->type);
// NB: Assume box_module->ports are sorted alphabetically
// (as RTLIL::Module::fixup_ports() would do)
@@ -812,25 +803,7 @@ void AigerReader::post_process()
rhs.append(wire);
}
- if (!is_flop || port_name != "\\$pastQ")
- cell->setPort(port_name, rhs);
- }
-
- if (is_flop) {
- RTLIL::Wire *d = outputs[outputs.size() - flopNum + flop_count];
- log_assert(d);
- log_assert(d->port_output);
- d->port_output = false;
-
- RTLIL::Wire *q = inputs[piNum - flopNum + flop_count];
- log_assert(q);
- log_assert(q->port_input);
- q->port_input = false;
-
- flop_count++;
- module->connect(q, d);
- cell->set_bool_attribute("\\abc_flop");
- continue;
+ cell->setPort(port_name, rhs);
}
}
@@ -934,10 +907,6 @@ void AigerReader::post_process()
}
}
log_debug(" -> %s\n", log_id(wire));
- int init;
- mf >> init;
- if (init < 2)
- wire->attributes["\\init"] = init;
}
else if (type == "box") {
RTLIL::Cell* cell = module->cell(stringf("$__box%d__", variable));