def read(self, from_hw: bool) -> int:
    return (0 if (self.read_zero and (not from_hw)) else self.value)
def read(self, from_hw: bool) -> int:
    return (0 if (self.read_zero and (not from_hw)) else self.value)