mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
Added AstNode::mkconst_str API
This commit is contained in:
parent
853538d78b
commit
5c39948ead
3 changed files with 19 additions and 12 deletions
|
@ -213,6 +213,7 @@ namespace AST
|
|||
// helper functions for creating AST nodes for constants
|
||||
static AstNode *mkconst_int(uint32_t v, bool is_signed, int width = 32);
|
||||
static AstNode *mkconst_bits(const std::vector<RTLIL::State> &v, bool is_signed);
|
||||
static AstNode *mkconst_str(const std::string &str);
|
||||
|
||||
// helper function for creating sign-extended const objects
|
||||
RTLIL::Const bitsAsConst(int width, bool is_signed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue