def set_bits(self, reg_name: str, value: int) -> None:
    'Set some bits of a register (HW access only)'
    assert (value >= 0)
    self._get_reg(reg_name).set_bits(value)
    self._dirty = 2
Set some bits of a register (HW access only)
def set_bits(self, reg_name: str, value: int) -> None:
    
    assert (value >= 0)
    self._get_reg(reg_name).set_bits(value)
    self._dirty = 2