diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-11-20 11:44:09 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-11-20 11:44:09 +0100 |
commit | 0f04738f40aa0fa6400ab55f4a1f5f0c3b384fa8 (patch) | |
tree | 4f1717d316d04eaa8dd9a52dd9fee22e65235073 /frontends/verilog/lexer.l | |
parent | ac2be2d892e3311b89744306e8c29445f588f590 (diff) | |
download | yosys-0f04738f40aa0fa6400ab55f4a1f5f0c3b384fa8.tar.gz yosys-0f04738f40aa0fa6400ab55f4a1f5f0c3b384fa8.tar.bz2 yosys-0f04738f40aa0fa6400ab55f4a1f5f0c3b384fa8.zip |
Added "synthesis" in (synopsys|synthesis) comment support
Diffstat (limited to 'frontends/verilog/lexer.l')
-rw-r--r-- | frontends/verilog/lexer.l | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/frontends/verilog/lexer.l b/frontends/verilog/lexer.l index 6b9c9e4cc..fea383cf4 100644 --- a/frontends/verilog/lexer.l +++ b/frontends/verilog/lexer.l @@ -192,25 +192,25 @@ supply1 { return TOK_SUPPLY1; } return TOK_ID; } -"/*"[ \t]*synopsys[ \t]*translate_off[ \t]*"*/" { - log("Warning: Found one of those horrible `synopsys translate_off' comments.\n"); +"/*"[ \t]*(synopsys|synthesis)[ \t]*translate_off[ \t]*"*/" { + log("Warning: Found one of those horrible `(synopsys|synthesis) translate_off' comments.\n"); log("It is strongly suggested to use `ifdef constructs instead!\n"); BEGIN(SYNOPSYS_TRANSLATE_OFF); } <SYNOPSYS_TRANSLATE_OFF>. /* ignore synopsys translate_off body */ <SYNOPSYS_TRANSLATE_OFF>\n /* ignore synopsys translate_off body */ -<SYNOPSYS_TRANSLATE_OFF>"/*"[ \t]*"synopsys"[ \t]*"translate_on"[ \t]*"*/" { BEGIN(0); } +<SYNOPSYS_TRANSLATE_OFF>"/*"[ \t]*(synopsys|synthesis)[ \t]*"translate_on"[ \t]*"*/" { BEGIN(0); } -"/*"[ \t]*"synopsys"[ \t]+ { +"/*"[ \t]*(synopsys|synthesis)[ \t]+ { BEGIN(SYNOPSYS_FLAGS); } <SYNOPSYS_FLAGS>full_case { - log("Warning: Found one of those horrible `synopsys full_case' comments.\n"); + log("Warning: Found one of those horrible `(synopsys|synthesis) full_case' comments.\n"); log("It is strongly suggested to use verilog x-values and default branches instead!\n"); return TOK_SYNOPSYS_FULL_CASE; } <SYNOPSYS_FLAGS>parallel_case { - log("Warning: Found one of those horrible `synopsys parallel_case' comments.\n"); + log("Warning: Found one of those horrible `(synopsys|synthesis) parallel_case' comments.\n"); log("It is strongly suggested to use verilog `parallel_case' attributes instead!\n"); return TOK_SYNOPSYS_PARALLEL_CASE; } |