Skip to content

Commit 8d3b139

Browse files
committed
reverting the waveform order when evaluating the value of a group (now descending)
1 parent c94b494 commit 8d3b139

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/simulator/netlist_simulator_controller/src/wave_data.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,14 +1204,14 @@ namespace hal {
12041204

12051205
int WaveDataGroup::intValue(double t) const
12061206
{
1207-
u32 mask = 1;
1207+
u32 mask = 1 << (mGroupList.size()-1);
12081208
int retval = 0;
12091209
for (const WaveData* wd : mGroupList)
12101210
{
12111211
int childVal = wd->intValue(t);
12121212
if (childVal < 0) return childVal;
12131213
if (childVal) retval |= mask;
1214-
mask <<= 1;
1214+
mask >>= 1;
12151215
}
12161216
return retval;
12171217
}

0 commit comments

Comments
 (0)