Unverified Commit 1349bad9 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra Committed by GitHub
Browse files

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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment