mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 06:43:41 +00:00
Cleanup
This commit is contained in:
parent
58dbb28fd3
commit
399e1ec870
1 changed files with 1 additions and 7 deletions
|
@ -756,7 +756,6 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
|
||||||
log_assert(driving_lut);
|
log_assert(driving_lut);
|
||||||
RTLIL::SigBit a_bit = not_cell->getPort("\\A");
|
RTLIL::SigBit a_bit = not_cell->getPort("\\A");
|
||||||
RTLIL::SigBit y_bit = not_cell->getPort("\\Y");
|
RTLIL::SigBit y_bit = not_cell->getPort("\\Y");
|
||||||
driving_lut = module->cell(remap_name(driving_lut->name));
|
|
||||||
log_assert(driving_lut);
|
log_assert(driving_lut);
|
||||||
RTLIL::Const driver_lut = driving_lut->getParam("\\LUT");
|
RTLIL::Const driver_lut = driving_lut->getParam("\\LUT");
|
||||||
for (auto &b : driver_lut.bits) {
|
for (auto &b : driver_lut.bits) {
|
||||||
|
@ -772,11 +771,6 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
|
||||||
if (sink_cell->type != "$lut")
|
if (sink_cell->type != "$lut")
|
||||||
goto duplicate_lut;
|
goto duplicate_lut;
|
||||||
|
|
||||||
//static int count = 0;
|
|
||||||
//log_warning("%d\n", count);
|
|
||||||
//if (count++ >= 41)
|
|
||||||
// goto duplicate_lut;
|
|
||||||
|
|
||||||
for (auto sink_cell : it->second) {
|
for (auto sink_cell : it->second) {
|
||||||
SigSpec A = sink_cell->getPort("\\A");
|
SigSpec A = sink_cell->getPort("\\A");
|
||||||
RTLIL::Const mask = sink_cell->getParam("\\LUT");
|
RTLIL::Const mask = sink_cell->getParam("\\LUT");
|
||||||
|
@ -805,7 +799,7 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
|
||||||
duplicate_lut:
|
duplicate_lut:
|
||||||
auto not_cell_name = not_cell->name;
|
auto not_cell_name = not_cell->name;
|
||||||
module->remove(not_cell);
|
module->remove(not_cell);
|
||||||
#if 0
|
#if 1
|
||||||
auto driver_a = driving_lut->getPort("\\A").chunks();
|
auto driver_a = driving_lut->getPort("\\A").chunks();
|
||||||
for (auto &chunk : driver_a)
|
for (auto &chunk : driver_a)
|
||||||
chunk.wire = module->wires_[remap_name(chunk.wire->name)];
|
chunk.wire = module->wires_[remap_name(chunk.wire->name)];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue