synchronizers: properly pass parameters up to the superclass
This commit is contained in:
parent
483e63da19
commit
bd32f0c122
@ -106,3 +106,14 @@ object AsyncResetReg {
|
||||
def apply(updateData: UInt): UInt = apply(updateData, resetData=BigInt(0), enable=Bool(true))
|
||||
def apply(updateData: UInt, name:String): UInt = apply(updateData, resetData=BigInt(0), enable=Bool(true), Some(name))
|
||||
}
|
||||
|
||||
|
||||
// While this extends from the SynchronizingShiftRegister
|
||||
// classes, it is just a convenience.
|
||||
|
||||
class AsyncResetShiftReg
|
||||
object AsyncResetShiftRegister(w: Int = 1, depth: Int = 3) extends AbstractSynchronizerReg(w, depth) {
|
||||
override def desiredName = s"AsyncResetShiftReg_w${w}_d{$sync}"
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user