Added SV "restrict" keyword
authorClifford Wolf <clifford@clifford.at>
Wed, 24 Aug 2016 13:30:08 +0000 (15:30 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 24 Aug 2016 13:30:08 +0000 (15:30 +0200)
frontends/verilog/verilog_lexer.l

index aafdbbf03091d0dc32e0cda877bd6c45208f978c..0c974d39296f4bae3e4389ac5d246a4140a477a4 100644 (file)
@@ -177,7 +177,8 @@ YOSYS_NAMESPACE_END
 
 "assert"   { if (formal_mode) return TOK_ASSERT; SV_KEYWORD(TOK_ASSERT); }
 "assume"   { if (formal_mode) return TOK_ASSUME; SV_KEYWORD(TOK_ASSUME); }
-"predict"   { if (formal_mode) return TOK_PREDICT; NON_KEYWORD(); }
+"restrict" { if (formal_mode) return TOK_ASSUME; SV_KEYWORD(TOK_ASSUME); }
+"predict"  { if (formal_mode) return TOK_PREDICT; NON_KEYWORD(); }
 "property" { if (formal_mode) return TOK_PROPERTY; SV_KEYWORD(TOK_PROPERTY); }
 "logic"    { SV_KEYWORD(TOK_REG); }
 "bit"      { SV_KEYWORD(TOK_REG); }