mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-29 23:43:16 +00:00
Replaced signed_parameters API with CONST_FLAG_SIGNED
This commit is contained in:
parent
93a70959f3
commit
f4b46ed31e
10 changed files with 11 additions and 16 deletions
|
@ -1304,12 +1304,8 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
|||
if (child->str.size() == 0) {
|
||||
char buf[100];
|
||||
snprintf(buf, 100, "$%d", ++para_counter);
|
||||
if (child->children[0]->is_signed)
|
||||
cell->signed_parameters.insert(buf);
|
||||
cell->parameters[buf] = child->children[0]->asParaConst();
|
||||
} else {
|
||||
if (child->children[0]->is_signed)
|
||||
cell->signed_parameters.insert(child->str);
|
||||
cell->parameters[child->str] = child->children[0]->asParaConst();
|
||||
}
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue