fix bus msb nibble calculation in case of incomplete MSB nibble. Add sigma delta adc example
This commit is contained in:
parent
fa3d97010c
commit
f4ff14fbd8
|
|
@ -1641,8 +1641,10 @@ void get_bus_value(int n_bits, int hex_digits, SPICE_DATA **idx_arr, int p, char
|
|||
hex++;
|
||||
if(x)
|
||||
busval[hex_digits - hex] = 'X';
|
||||
else
|
||||
else {
|
||||
hexdigit <<= (3 - bin);
|
||||
busval[hex_digits - hex] = hexstr[hexdigit];
|
||||
}
|
||||
}
|
||||
busval[hex_digits] = '\0';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue