mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
verilog: error out when non-ANSI task/func arguments
This commit is contained in:
parent
e5ce5a4fd5
commit
1f3003be7d
|
@ -853,7 +853,11 @@ task_func_port:
|
||||||
}
|
}
|
||||||
if (astbuf2 && astbuf2->children.size() != 2)
|
if (astbuf2 && astbuf2->children.size() != 2)
|
||||||
frontend_verilog_yyerror("task/function argument range must be of the form: [<expr>:<expr>], [<expr>+:<expr>], or [<expr>-:<expr>]");
|
frontend_verilog_yyerror("task/function argument range must be of the form: [<expr>:<expr>], [<expr>+:<expr>], or [<expr>-:<expr>]");
|
||||||
} wire_name | wire_name;
|
} wire_name |
|
||||||
|
{
|
||||||
|
if (!astbuf1)
|
||||||
|
frontend_verilog_yyerror("Non-ANSI style task/function arguments not currently supported");
|
||||||
|
} wire_name;
|
||||||
|
|
||||||
task_func_body:
|
task_func_body:
|
||||||
task_func_body behavioral_stmt |
|
task_func_body behavioral_stmt |
|
||||||
|
|
Loading…
Reference in a new issue