def set_bits(self, value: int) -> int:
    'Like write, but |=.'
    masked = (value & ((1 << self.width) - 1))
    self.next_value |= masked
    return self._next_sw_read()
Like write, but |=.
def set_bits(self, value: int) -> int:
    
    masked = (value & ((1 << self.width) - 1))
    self.next_value |= masked
    return self._next_sw_read()