3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Added is_signed argument to SigSpec.as_int() and Const.as_int()

This commit is contained in:
Clifford Wolf 2014-08-24 15:14:00 +02:00
parent 9c5a63c52c
commit eda603105e
2 changed files with 9 additions and 6 deletions

View file

@ -436,7 +436,7 @@ struct RTLIL::Const
bool operator !=(const RTLIL::Const &other) const;
bool as_bool() const;
int as_int() const;
int as_int(bool is_signed = false) const;
std::string as_string() const;
std::string decode_string() const;
@ -1038,7 +1038,7 @@ public:
bool has_marked_bits() const;
bool as_bool() const;
int as_int() const;
int as_int(bool is_signed = false) const;
std::string as_string() const;
RTLIL::Const as_const() const;
RTLIL::Wire *as_wire() const;