yosys-master
|
#include <rtlil.h>
Public Member Functions | |
Const () | |
Const (std::string str) | |
Const (int val, int width=32) | |
Const (RTLIL::State bit, int width=1) | |
Const (const std::vector< RTLIL::State > &bits) | |
Const (const std::vector< bool > &bits) | |
bool | operator< (const RTLIL::Const &other) const |
bool | operator== (const RTLIL::Const &other) const |
bool | operator!= (const RTLIL::Const &other) const |
bool | as_bool () const |
int | as_int (bool is_signed=false) const |
std::string | as_string () const |
std::string | decode_string () const |
int | size () const |
Data Fields | |
int | flags |
std::vector< RTLIL::State > | bits |
RTLIL::Const::Const | ( | ) |
Definition at line 36 of file rtlil.cc.
RTLIL::Const::Const | ( | std::string | str | ) |
RTLIL::Const::Const | ( | int | val, |
int | width = 32 |
||
) |
RTLIL::Const::Const | ( | RTLIL::State | bit, |
int | width = 1 |
||
) |
Definition at line 62 of file rtlil.cc.
|
inline |
Definition at line 444 of file rtlil.h.
RTLIL::Const::Const | ( | const std::vector< bool > & | bits | ) |
bool RTLIL::Const::as_bool | ( | ) | const |
Definition at line 96 of file rtlil.cc.
int RTLIL::Const::as_int | ( | bool | is_signed = false | ) | const |
Definition at line 104 of file rtlil.cc.
std::string RTLIL::Const::as_string | ( | ) | const |
Definition at line 116 of file rtlil.cc.
std::string RTLIL::Const::decode_string | ( | ) | const |
Definition at line 131 of file rtlil.cc.
bool RTLIL::Const::operator!= | ( | const RTLIL::Const & | other | ) | const |
bool RTLIL::Const::operator< | ( | const RTLIL::Const & | other | ) | const |
bool RTLIL::Const::operator== | ( | const RTLIL::Const & | other | ) | const |
std::vector<RTLIL::State> RTLIL::Const::bits |