mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 18:15:34 +00:00
Fixed handling of parameters and const functions in casex/casez pattern
This commit is contained in:
parent
f38ca3e18f
commit
5a09fa4553
5 changed files with 37 additions and 8 deletions
|
@ -1094,7 +1094,9 @@ case_body:
|
|||
|
||||
case_item:
|
||||
{
|
||||
AstNode *node = new AstNode(AST_COND);
|
||||
AstNode *node = new AstNode(
|
||||
case_type_stack.size() && case_type_stack.back() == 'x' ? AST_CONDX :
|
||||
case_type_stack.size() && case_type_stack.back() == 'z' ? AST_CONDZ : AST_COND);
|
||||
ast_stack.back()->children.push_back(node);
|
||||
ast_stack.push_back(node);
|
||||
} case_select {
|
||||
|
@ -1114,7 +1116,9 @@ gen_case_body:
|
|||
|
||||
gen_case_item:
|
||||
{
|
||||
AstNode *node = new AstNode(AST_COND);
|
||||
AstNode *node = new AstNode(
|
||||
case_type_stack.size() && case_type_stack.back() == 'x' ? AST_CONDX :
|
||||
case_type_stack.size() && case_type_stack.back() == 'z' ? AST_CONDZ : AST_COND);
|
||||
ast_stack.back()->children.push_back(node);
|
||||
ast_stack.push_back(node);
|
||||
} case_select {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue