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 chisel3.util.PopCount generator infers an unnecessarily wide UInt for many non-power-of-two input sizes. For example, PopCount(Seq(a, b, c)) currently produces a 3-bit UInt even though the count…

The task

The chisel3.util.PopCount generator infers an unnecessarily wide UInt for many non-power-of-two input sizes. For example, PopCount(Seq(a, b, c)) currently produces a 3-bit UInt even though the count of three Booleans always fits in 2 bits; PopCount(Seq(b, c)) correctly produces a 2-bit UInt. The same incorrect width…

Part of henryen/OriGent-SFT-Data.