When creating new holes cell, inherit parameters too
authorEddie Hung <eddie@fpgeh.com>
Mon, 3 Jun 2019 19:30:54 +0000 (12:30 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 3 Jun 2019 19:30:54 +0000 (12:30 -0700)
backends/aiger/xaiger.cc

index 90fea2db1f767aa7c454aa6afd0d33db9f23c057..818caebbae4412f4544dfda789b7242f1f25d53e 100644 (file)
@@ -796,8 +796,10 @@ struct XAigerWriter
                                RTLIL::Module* box_module = module->design->module(cell->type);
                                int box_inputs = 0, box_outputs = 0;
                                Cell *holes_cell = nullptr;
-                               if (box_module->get_bool_attribute("\\whitebox"))
+                               if (box_module->get_bool_attribute("\\whitebox")) {
                                        holes_cell = holes_module->addCell(cell->name, cell->type);
+                                       holes_cell->parameters = cell->parameters;
+                               }
 
                                // NB: Assume box_module->ports are sorted alphabetically
                                //     (as RTLIL::Module::fixup_ports() would do)