mirror of https://github.com/YosysHQ/yosys.git
[YOSYS] Issue #3498 - Fix Synopsys style unquoted Liberty style function body parsing with unittest
This commit is contained in:
parent
4251d37f4f
commit
17cfc969dd
|
@ -236,10 +236,13 @@ LibertyAst *LibertyParser::parse()
|
|||
|
||||
if (tok == ':' && ast->value.empty()) {
|
||||
tok = lexer(ast->value);
|
||||
if (tok != 'v')
|
||||
error();
|
||||
tok = lexer(str);
|
||||
while (tok == '+' || tok == '-' || tok == '*' || tok == '/') {
|
||||
if (tok != 'v') {
|
||||
//Synopsys-style unquoted identifiers issue#3498
|
||||
} else {
|
||||
//Liberty canonical identifier including double quotes
|
||||
tok = lexer(str);
|
||||
}
|
||||
while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') {
|
||||
ast->value += tok;
|
||||
tok = lexer(str);
|
||||
if (tok != 'v')
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
library(fake) {
|
||||
cell(bugbad) {
|
||||
bundle(X) {
|
||||
members(x1, x2);
|
||||
power_down_function : !a+b ;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue