Repair a verified behavior in ucsbarchlab/pyrtl.
Repair a verified behavior in ucsbarchlab/pyrtl.: a task in OriGent-SFT-Data (Harbor dataset). Constructing a pyrtl.Register with a negative integer reset value incorrectly raises pyrtl.PyrtlError even when the value is representable in the register's declared bitwidth . For example…
The task
Constructing a `pyrtl.Register` with a negative integer `reset_value` incorrectly raises `pyrtl.PyrtlError` even when the value is representable in the register's declared `bitwidth`. For example, `pyrtl.Register(bitwidth=4, reset_value=-4)` is rejected.
Part of henryen/OriGent-SFT-Data.