3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-05 13:56:04 +00:00

Add SigChunk::offset_in_sigspec

This commit is contained in:
Robert O'Callahan 2025-10-08 22:49:46 +00:00
parent 37875fdedf
commit acee6db361
2 changed files with 49 additions and 15 deletions

View file

@ -1131,6 +1131,7 @@ struct RTLIL::SigChunk
RTLIL::Wire *wire;
std::vector<RTLIL::State> data; // only used if wire == NULL, LSB at index 0
int width, offset;
int offset_in_sigspec = -1;
SigChunk() : wire(nullptr), width(0), offset(0) {}
SigChunk(const RTLIL::Const &value) : wire(nullptr), data(value.to_bits()), width(GetSize(data)), offset(0) {}