diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-23 08:59:54 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-23 08:59:54 +0200 |
commit | c61467a32c4bd3ec4b9e0cb6d36d602f0e4dea81 (patch) | |
tree | b02ae740b0cc3125a20a11f7bb0ad1e2d9f9bffb /kernel | |
parent | 115dd959d9dbf68aa30f8374df0e62fba8646f1e (diff) | |
download | yosys-c61467a32c4bd3ec4b9e0cb6d36d602f0e4dea81.tar.gz yosys-c61467a32c4bd3ec4b9e0cb6d36d602f0e4dea81.tar.bz2 yosys-c61467a32c4bd3ec4b9e0cb6d36d602f0e4dea81.zip |
Some cleanups in RTLIL::SigChunk::SigChunk(const RTLIL::Const&)
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtlil.cc | 8 | ||||
-rw-r--r-- | kernel/rtlil.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 6757d5dc3..2ab4a8c6e 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1316,10 +1316,10 @@ RTLIL::SigChunk::SigChunk() offset = 0; } -RTLIL::SigChunk::SigChunk(const RTLIL::Const &data) +RTLIL::SigChunk::SigChunk(const RTLIL::Const &value) { wire = NULL; - this->data = data; + data = value; width = data.bits.size(); offset = 0; } @@ -1418,9 +1418,9 @@ RTLIL::SigSpec::SigSpec() width_ = 0; } -RTLIL::SigSpec::SigSpec(const RTLIL::Const &data) +RTLIL::SigSpec::SigSpec(const RTLIL::Const &value) { - chunks_.push_back(RTLIL::SigChunk(data)); + chunks_.push_back(RTLIL::SigChunk(value)); width_ = chunks_.back().width; check(); } diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 53770088b..0e74c958a 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -461,7 +461,7 @@ struct RTLIL::SigChunk { RTLIL::Const data; // only used if wire == NULL, LSB at index 0 int width, offset; SigChunk(); - SigChunk(const RTLIL::Const &data); + SigChunk(const RTLIL::Const &value); SigChunk(RTLIL::Wire *wire, int width, int offset); SigChunk(const std::string &str); SigChunk(int val, int width = 32); @@ -520,7 +520,7 @@ private: public: SigSpec(); - SigSpec(const RTLIL::Const &data); + SigSpec(const RTLIL::Const &value); SigSpec(const RTLIL::SigChunk &chunk); SigSpec(RTLIL::Wire *wire, int width = -1, int offset = 0); SigSpec(const std::string &str); |