def set(self, value: int):
max_value = int('<STR_LIT>'.join(['<STR_LIT:1>' for _ in range(self._bit_width)]), <NUM_LIT:2>)<EOL>if value > max_value:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>'.format(value, max_value))<EOL><DEDENT>self._value = value<EOL>self._text_update()<EOL>
Set the current value

:param value:
:return: None