mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-30 16:03:17 +00:00
Fixes and improvements in AST const folding
This commit is contained in:
parent
db98a18edb
commit
59dd02baa2
2 changed files with 11 additions and 1 deletions
|
@ -647,7 +647,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint)
|
|||
current_module->wires[str] = wire;
|
||||
}
|
||||
else if (id2ast->type == AST_PARAMETER || id2ast->type == AST_LOCALPARAM) {
|
||||
chunk = RTLIL::Const(id2ast->bits);
|
||||
chunk = RTLIL::Const(id2ast->children[0]->bits);
|
||||
goto use_const_chunk;
|
||||
}
|
||||
else if (!id2ast || (id2ast->type != AST_WIRE && id2ast->type != AST_AUTOWIRE &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue