aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-06 15:24:55 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-06 15:24:55 -0700
commit0b56be8c5634f8b953cd3d087b4b6e2a11a2c173 (patch)
tree35fbcf4ce300bad6d0fa2facdc5bd0536f23b1c0 /kernel
parent51b39219cda35e782fe4372409edf5432f86741f (diff)
downloadyosys-0b56be8c5634f8b953cd3d087b4b6e2a11a2c173.tar.gz
yosys-0b56be8c5634f8b953cd3d087b4b6e2a11a2c173.tar.bz2
yosys-0b56be8c5634f8b953cd3d087b4b6e2a11a2c173.zip
Restore original SigSpec::extract()
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index f2c81db72..ba8472ec1 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -3355,7 +3355,7 @@ RTLIL::SigSpec RTLIL::SigSpec::extract(int offset, int length) const
{
unpack();
cover("kernel.rtlil.sigspec.extract_pos");
- return std::vector<RTLIL::SigBit>(bits_.begin() + offset, length >= 0 ? bits_.begin() + offset + length : bits_.end() + length + 1);
+ return std::vector<RTLIL::SigBit>(bits_.begin() + offset, bits_.begin() + offset + length);
}
void RTLIL::SigSpec::append(const RTLIL::SigSpec &signal)