mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #664 from tklam/ignore-verilog-protect
Ignore protect endprotect
This commit is contained in:
commit
93d99559ef
|
@ -135,6 +135,9 @@ YOSYS_NAMESPACE_END
|
||||||
frontend_verilog_yyerror("Unsupported default nettype: %s", p);
|
frontend_verilog_yyerror("Unsupported default nettype: %s", p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"`protect"[^\n]* /* ignore `protect*/
|
||||||
|
"`endprotect"[^\n]* /* ignore `endprotect*/
|
||||||
|
|
||||||
"`"[a-zA-Z_$][a-zA-Z0-9_$]* {
|
"`"[a-zA-Z_$][a-zA-Z0-9_$]* {
|
||||||
frontend_verilog_yyerror("Unimplemented compiler directive or undefined macro %s.", yytext);
|
frontend_verilog_yyerror("Unimplemented compiler directive or undefined macro %s.", yytext);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue