projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51b3921
)
Restore original SigSpec::extract()
author
Eddie Hung
<eddie@fpgeh.com>
Tue, 6 Aug 2019 22:24:55 +0000
(15:24 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Tue, 6 Aug 2019 22:24:55 +0000
(15:24 -0700)
kernel/rtlil.cc
patch
|
blob
|
history
diff --git
a/kernel/rtlil.cc
b/kernel/rtlil.cc
index f2c81db72e68c099f29a61cdc21a1dcc57b5b2c4..ba8472ec11350912d5401d8d4643cbb8bada3b03 100644
(file)
--- 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)