projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e468d4c
)
Ignore celldefine directive in verilog front-end
author
Clifford Wolf
<clifford@clifford.at>
Wed, 25 Mar 2015 18:46:12 +0000
(19:46 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Wed, 25 Mar 2015 18:46:12 +0000
(19:46 +0100)
frontends/verilog/verilog_lexer.l
patch
|
blob
|
history
diff --git
a/frontends/verilog/verilog_lexer.l
b/frontends/verilog/verilog_lexer.l
index 3a57514aa2ccab0d15f21c21d383481b3d07aba4..8fbaa953d7973d53b5a2d7a5a8282da1f59a17ba 100644
(file)
--- a/
frontends/verilog/verilog_lexer.l
+++ b/
frontends/verilog/verilog_lexer.l
@@
-116,6
+116,9
@@
YOSYS_NAMESPACE_END
"`timescale"[ \t]+[^ \t\r\n/]+[ \t]*"/"[ \t]*[^ \t\r\n]* /* ignore timescale directive */
+"`celldefine"[^\n]* /* ignore `celldefine */
+"`endcelldefine"[^\n]* /* ignore `endcelldefine */
+
"`default_nettype"[ \t]+[^ \t\r\n/]+ {
char *p = yytext;
while (*p != 0 && *p != ' ' && *p != '\t') p++;