mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Implemented correct handling of signed module parameters
This commit is contained in:
parent
1e6836933d
commit
609caa23b5
8 changed files with 19 additions and 8 deletions
|
@ -150,7 +150,7 @@ static bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool fla
|
|||
if (design->modules.at(cell->type)->get_bool_attribute("\\blackbox"))
|
||||
continue;
|
||||
RTLIL::Module *mod = design->modules[cell->type];
|
||||
cell->type = mod->derive(design, cell->parameters);
|
||||
cell->type = mod->derive(design, cell->parameters, cell->signed_parameters);
|
||||
cell->parameters.clear();
|
||||
did_something = true;
|
||||
}
|
||||
|
|
|
@ -239,7 +239,7 @@ static bool techmap_module(RTLIL::Design *design, RTLIL::Module *module, RTLIL::
|
|||
tpl = techmap_cache[key];
|
||||
} else {
|
||||
if (cell->parameters.size() != 0) {
|
||||
derived_name = tpl->derive(map, parameters);
|
||||
derived_name = tpl->derive(map, parameters, cell->signed_parameters);
|
||||
tpl = map->modules[derived_name];
|
||||
log_continue = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue