mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-10 16:13:26 +00:00
Keep strings as strings in const ternary and concat
This commit is contained in:
parent
e935bb6eda
commit
891e4b5b0d
3 changed files with 25 additions and 5 deletions
|
@ -143,7 +143,7 @@ namespace AST
|
|||
// node content - most of it is unused in most node types
|
||||
std::string str;
|
||||
std::vector<RTLIL::State> bits;
|
||||
bool is_input, is_output, is_reg, is_signed, range_valid;
|
||||
bool is_input, is_output, is_reg, is_signed, is_string, range_valid;
|
||||
int port_id, range_left, range_right;
|
||||
uint32_t integer;
|
||||
|
||||
|
@ -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::vector<RTLIL::State> &v);
|
||||
static AstNode *mkconst_str(const std::string &str);
|
||||
|
||||
// helper function for creating sign-extended const objects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue