Repair a verified behavior in ucb-bar/gemmini.
Repair a verified behavior in ucb-bar/gemmini.: a task in OriGent-SFT-Data (Harbor dataset). The Scala/Chisel hardware utility Util.wrappingAdd(u, n, max plus one) computes (u + n) modulo max plus one for UInt operands. Its UInt overload incorrectly rejects the degenerate one-entry case: when max…
The task
The Scala/Chisel hardware utility `Util.wrappingAdd(u, n, max_plus_one)` computes `(u + n) modulo max_plus_one` for `UInt` operands. Its `UInt` overload incorrectly rejects the degenerate one-entry case: when `max_plus_one` is `1.U`, the current assertion reports `cannot wrapAdd when n is larger than max`, so a call…
Part of henryen/OriGent-SFT-Data.