BundleBridge: preserve width; don't use RegNext (#2520)
RegNext erases the width of a UInt. This leads to: java.lang.IllegalArgumentException: requirement failed: hartPrefixNode.node (A nexus node with parent 'hartPrefixNode/topMod/topDesign/gen' at (BundleBridge.scala:144:31)) requires all outputs have equivalent Chisel Data types, but got UInt<10>(Wire in BundleBridgeNexus) vs UInt(Reg in BundleBridgeNexus) Using safeRegNext, we can keep the useful requirement check and still have BundleBridgeNexus work when registered=true with a UInt.
parent
206c310a
Please register or sign in to comment