diff options
author | whitequark <whitequark@whitequark.org> | 2021-02-21 20:56:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 20:56:04 +0000 |
commit | 01ccb80b708b45926b3690949479715ebf5e2853 (patch) | |
tree | aa2f7cf94cd7b1742568d05d744dc6e21b266306 /frontends/ast/ast.h | |
parent | 3fee43cde0ec424e52ea62f78722b061aaac280a (diff) | |
parent | 8de2e863af4233aca0a0ca0eef4477d216f7a227 (diff) | |
download | yosys-01ccb80b708b45926b3690949479715ebf5e2853.tar.gz yosys-01ccb80b708b45926b3690949479715ebf5e2853.tar.bz2 yosys-01ccb80b708b45926b3690949479715ebf5e2853.zip |
Merge pull request #2586 from zachjs/tern-recurse
verilog: support recursive functions using ternary expressions
Diffstat (limited to 'frontends/ast/ast.h')
-rw-r--r-- | frontends/ast/ast.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h index d8818df31..8cc7b474f 100644 --- a/frontends/ast/ast.h +++ b/frontends/ast/ast.h @@ -270,6 +270,9 @@ namespace AST bool is_simple_const_expr(); std::string process_format_str(const std::string &sformat, int next_arg, int stage, int width_hint, bool sign_hint); + bool is_recursive_function() const; + std::pair<AstNode*, AstNode*> get_tern_choice(); + // create a human-readable text representation of the AST (for debugging) void dumpAst(FILE *f, std::string indent) const; void dumpVlog(FILE *f, std::string indent) const; |