Chisel has experimental features of Definition/Instance to avoid multiple elaboration of the same hardware. However, this brings issues to the elaboration of Difftest, which relies on the generational information during Chisel elaboration. See OpenXiangShan/XiangShan#2338
Don't know how to fix it yet.