mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
SigSpec refactoring: renamed the SigSpec members to chunks_ and width_ and added accessor functions
This commit is contained in:
parent
a233762a81
commit
16e5ae0b92
2 changed files with 158 additions and 152 deletions
|
@ -496,11 +496,17 @@ struct RTLIL::SigBit {
|
|||
};
|
||||
|
||||
struct RTLIL::SigSpec {
|
||||
public:
|
||||
std::vector<RTLIL::SigChunk> __chunks; // LSB at index 0
|
||||
int __width;
|
||||
private:
|
||||
std::vector<RTLIL::SigChunk> chunks_; // LSB at index 0
|
||||
int width_;
|
||||
|
||||
public:
|
||||
std::vector<RTLIL::SigChunk> &chunks() { return chunks_; }
|
||||
const std::vector<RTLIL::SigChunk> &chunks() const { return chunks_; }
|
||||
|
||||
int &size() { return width_; }
|
||||
const int &size() const { return width_; }
|
||||
|
||||
SigSpec();
|
||||
SigSpec(const RTLIL::Const &data);
|
||||
SigSpec(const RTLIL::SigChunk &chunk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue