mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-23 04:38:55 +00:00
libparse: add LibertyExpression::str for testing
This commit is contained in:
parent
6ee01308f2
commit
4b1a8a3b66
2 changed files with 42 additions and 0 deletions
|
@ -117,6 +117,7 @@ static bool parse_next_state(const LibertyAst *cell, const LibertyAst *attr, std
|
|||
// the next_state variable isn't just a pin name; perhaps this is an enable?
|
||||
auto helper = LibertyExpression::Lexer(expr);
|
||||
auto tree = LibertyExpression::parse(helper);
|
||||
log_debug("liberty expression:\n%s\n", tree.str().c_str());
|
||||
|
||||
if (tree.kind == LibertyExpression::Kind::EMPTY) {
|
||||
if (!warned_cells.count(cell_name)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue