mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 14:53:42 +00:00
Packed SigBit::data and SigBit::offset in a union
This commit is contained in:
parent
5e641acc90
commit
97a17d39e2
2 changed files with 13 additions and 9 deletions
|
@ -1681,9 +1681,11 @@ RTLIL::SigChunk::SigChunk(RTLIL::State bit, int width)
|
|||
RTLIL::SigChunk::SigChunk(RTLIL::SigBit bit)
|
||||
{
|
||||
wire = bit.wire;
|
||||
offset = 0;
|
||||
if (wire == NULL)
|
||||
data = RTLIL::Const(bit.data);
|
||||
offset = bit.offset;
|
||||
else
|
||||
offset = bit.offset;
|
||||
width = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue