1
0
Fork 0

synchronizers: properly pass parameters up to the superclass

This commit is contained in:
Megan Wachs 2017-08-30 11:58:25 -07:00
parent 483e63da19
commit bd32f0c122
1 changed files with 11 additions and 0 deletions

View File

@ -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}"
}
}