When creating new holes cell, inherit parameters too

This commit is contained in:
Eddie Hung 2019-06-03 12:30:54 -07:00
parent 4da25c76b3
commit 257f7ff5f6
1 changed files with 3 additions and 1 deletions

View 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)