Repair a verified behavior in pymtl/pymtl3.
Repair a verified behavior in pymtl/pymtl3.: a task in OriGent-SFT-Data (Harbor dataset). PyMTL's Python-backed Bits datatype silently widens mixed-width binary operations. For example, Bits4(3) + Bits3(1) currently succeeds and returns a four-bit value whose uint() is 4, even though the operands…
The task
PyMTL's Python-backed Bits datatype silently widens mixed-width binary operations. For example, Bits4(3) + Bits3(1) currently succeeds and returns a four-bit value whose uint() is 4, even though the operands have different nbits values. This hides accidental width mismatches in hardware models.
Part of henryen/OriGent-SFT-Data.