mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-30 07:53:16 +00:00
fmt: Allow non-constant $display calls in initial blocks
These are useful for formal verification with SBY where they can be used to display solver chosen `rand const reg` signals and signals derived from those. The previous error message for non-constant initial $display statements is downgraded to a log message. Constant initial $display statements will be shown both during elaboration and become part of the RTLIL so that the `sim` output is complete.
This commit is contained in:
parent
57b4e16acd
commit
510d137996
2 changed files with 9 additions and 3 deletions
|
@ -287,7 +287,7 @@ namespace AST
|
|||
bool is_simple_const_expr();
|
||||
|
||||
// helper for parsing format strings
|
||||
Fmt processFormat(int stage, bool sformat_like, int default_base = 10, size_t first_arg_at = 0);
|
||||
Fmt processFormat(int stage, bool sformat_like, int default_base = 10, size_t first_arg_at = 0, bool may_fail = false);
|
||||
|
||||
bool is_recursive_function() const;
|
||||
std::pair<AstNode*, AstNode*> get_tern_choice();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue