diff options
author | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-06-09 05:27:09 +0000 |
---|---|---|
committer | Alberto Gonzalez <boqwxp@airmail.cc> | 2020-06-21 02:16:11 +0000 |
commit | 08cede46691e65e09a69e964cd51261d327d0522 (patch) | |
tree | c922ff9835b121faaae66069d9579ee847724766 /kernel | |
parent | 4ab41c64359ea487e74b3c4901525ad155f11ec1 (diff) | |
download | yosys-08cede46691e65e09a69e964cd51261d327d0522.tar.gz yosys-08cede46691e65e09a69e964cd51261d327d0522.tar.bz2 yosys-08cede46691e65e09a69e964cd51261d327d0522.zip |
qbfsat: Simplify solution format and replace `SigBit::str()` with `log_signal()`.
Co-Authored-By: Claire Wolf <claire@symbioticeda.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtlil.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index b8aaa1895..511df29fe 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -754,7 +754,6 @@ struct RTLIL::SigBit SigBit(const RTLIL::SigBit &sigbit) = default; RTLIL::SigBit &operator =(const RTLIL::SigBit &other) = default; - std::string str() const; bool operator <(const RTLIL::SigBit &other) const; bool operator ==(const RTLIL::SigBit &other) const; bool operator !=(const RTLIL::SigBit &other) const; @@ -1548,13 +1547,6 @@ inline RTLIL::SigBit::SigBit(RTLIL::Wire *wire, int offset) : wire(wire), offset inline RTLIL::SigBit::SigBit(const RTLIL::SigChunk &chunk) : wire(chunk.wire) { log_assert(chunk.width == 1); if (wire) offset = chunk.offset; else data = chunk.data[0]; } inline RTLIL::SigBit::SigBit(const RTLIL::SigChunk &chunk, int index) : wire(chunk.wire) { if (wire) offset = chunk.offset + index; else data = chunk.data[index]; } -inline std::string RTLIL::SigBit::str() const { - if (wire != nullptr) - return stringf("%s[%d]", wire->name.c_str(), offset); - else - return stringf("%u", data); -} - inline bool RTLIL::SigBit::operator<(const RTLIL::SigBit &other) const { if (wire == other.wire) return wire ? (offset < other.offset) : (data < other.data); |