HF RL Explorer

Repair a verified behavior in chipsalliance/chisel.

Repair a verified behavior in chipsalliance/chisel.: a task in OriGent-SFT-Data (Harbor dataset). The gated convenience constructor chisel3.util.Counter.apply(cond: Bool, n: Int) emits invalid FIRRTL for a multi-count counter. The hardware emitted by Counter.inc is nested under the guard for cond…

The task

The gated convenience constructor `chisel3.util.Counter.apply(cond: Bool, n: Int)` emits invalid FIRRTL for a multi-count counter. The hardware emitted by `Counter.inc` is nested under the guard for `cond`, while the wrap result is also consumed outside that guard. Consequently, the FIRRTL can reference a value…

Part of henryen/OriGent-SFT-Data.