mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
ast: Add support for $sformatf system function
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
b7be6cfd65
commit
22c967e35e
3 changed files with 122 additions and 93 deletions
|
@ -244,6 +244,7 @@ namespace AST
|
|||
void replace_variables(std::map<std::string, varinfo_t> &variables, AstNode *fcall);
|
||||
AstNode *eval_const_function(AstNode *fcall);
|
||||
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);
|
||||
|
||||
// create a human-readable text representation of the AST (for debugging)
|
||||
void dumpAst(FILE *f, std::string indent) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue