def set_bits(self, value: int) -> None:
    assert (value >= 0)
    now = self._apply_fields((lambda fld, fv: fld.set_bits(fv)), value)
    trace = (self._next_trace if self.double_flopped else self._trace)
    trace.append(ExtRegChange('=', value, False, now))
def set_bits(self, value: int) -> None:
    assert (value >= 0)
    now = self._apply_fields((lambda fld, fv: fld.set_bits(fv)), value)
    trace = (self._next_trace if self.double_flopped else self._trace)
    trace.append(ExtRegChange('=', value, False, now))