3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-22 05:43:40 +00:00

Added some missing "const" in rtlil.h

This commit is contained in:
Clifford Wolf 2014-07-26 15:57:27 +02:00
parent 7ac9dc7f6e
commit cd6574ecf6
2 changed files with 9 additions and 9 deletions

View file

@ -290,7 +290,7 @@ struct RTLIL::Module
void connect(const RTLIL::SigSig &conn);
void connect(const RTLIL::SigSpec &lhs, const RTLIL::SigSpec &rhs);
const std::vector<RTLIL::SigSig> &connections();
const std::vector<RTLIL::SigSig> &connections() const;
void fixup_ports();
template<typename T> void rewrite_sigspecs(T functor);
@ -490,8 +490,8 @@ public:
// access cell ports
void unset(RTLIL::IdString portname);
void set(RTLIL::IdString portname, RTLIL::SigSpec signal);
RTLIL::SigSpec get(RTLIL::IdString portname) const;
const std::map<RTLIL::IdString, RTLIL::SigSpec> &connections();
const RTLIL::SigSpec &get(RTLIL::IdString portname) const;
const std::map<RTLIL::IdString, RTLIL::SigSpec> &connections() const;
void check();
void fixup_parameters(bool set_a_signed = false, bool set_b_signed = false);
@ -608,7 +608,7 @@ public:
void remove(int offset, int length = 1);
void remove_const();
RTLIL::SigSpec extract(RTLIL::SigSpec pattern, RTLIL::SigSpec *other = NULL) const;
RTLIL::SigSpec extract(RTLIL::SigSpec pattern, const RTLIL::SigSpec *other = NULL) const;
RTLIL::SigSpec extract(int offset, int length = 1) const;
void append(const RTLIL::SigSpec &signal);