mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Merge pull request #2594 from zachjs/func-arg-width
verilog: fix sizing of constant args for tasks/functions
This commit is contained in:
commit
ad2960adb7
10 changed files with 124 additions and 47 deletions
|
@ -263,7 +263,13 @@ namespace AST
|
|||
bool detect_latch(const std::string &var);
|
||||
|
||||
// additional functionality for evaluating constant functions
|
||||
struct varinfo_t { RTLIL::Const val; int offset; bool is_signed; };
|
||||
struct varinfo_t {
|
||||
RTLIL::Const val;
|
||||
int offset;
|
||||
bool is_signed;
|
||||
AstNode *arg = nullptr;
|
||||
bool explicitly_sized;
|
||||
};
|
||||
bool has_const_only_constructs();
|
||||
bool replace_variables(std::map<std::string, varinfo_t> &variables, AstNode *fcall, bool must_succeed);
|
||||
AstNode *eval_const_function(AstNode *fcall, bool must_succeed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue