projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0835a86
)
Support optional labels at the end of module definition
author
Lukasz Dalek
<ldalek@antmicro.com>
Tue, 19 May 2020 14:58:48 +0000
(16:58 +0200)
committer
Kamil Rakoczy
<krakoczy@antmicro.com>
Wed, 24 Jun 2020 09:57:45 +0000
(11:57 +0200)
Signed-off-by: Lukasz Dalek <ldalek@antmicro.com>
frontends/verilog/verilog_parser.y
patch
|
blob
|
history
diff --git
a/frontends/verilog/verilog_parser.y
b/frontends/verilog/verilog_parser.y
index 15c231f3b98b1b02f4724b0b2df14ced514259a5..6687a195e6f27df79048dddd1882248f69a80627 100644
(file)
--- a/
frontends/verilog/verilog_parser.y
+++ b/
frontends/verilog/verilog_parser.y
@@
-435,7
+435,7
@@
module:
mod->str = *$4;
append_attr(mod, $1);
delete $4;
- } module_para_opt module_args_opt ';' module_body TOK_ENDMODULE {
+ } module_para_opt module_args_opt ';' module_body TOK_ENDMODULE
opt_label
{
if (port_stubs.size() != 0)
frontend_verilog_yyerror("Missing details for module port `%s'.",
port_stubs.begin()->first.c_str());