3
0
Fork 0
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:
Clifford Wolf 2014-08-01 15:25:42 +02:00
parent 5e641acc90
commit 97a17d39e2
2 changed files with 13 additions and 9 deletions

View file

@ -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;
}