def write(self, value: int, from_hw: bool) -> None:
    'Stage the effects of writing a value.\n\n        If from_hw is true, this write is from OTBN hardware (rather than the\n        bus).\n\n        '
    assert (value >= 0)
    now = self._apply_fields((lambda fld, fv: fld.write(fv, from_hw)), value)
    trace = (self._next_trace if self.double_flopped else self._trace)
    trace.append(ExtRegChange('=', value, from_hw, now))
Stage the effects of writing a value.

If from_hw is true, this write is from OTBN hardware (rather than the
bus).
def write(self, value: int, from_hw: bool) -> None:
    'Stage the effects of writing a value.\n\n        If from_hw is true, this write is from OTBN hardware (rather than the\n        bus).\n\n        '
    assert (value >= 0)
    now = self._apply_fields((lambda fld, fv: fld.write(fv, from_hw)), value)
    trace = (self._next_trace if self.double_flopped else self._trace)
    trace.append(ExtRegChange('=', value, from_hw, now))