add cloneType to RegisterWriteIO and RegisterReadIO (#874)
This commit is contained in:
parent
8d793daf9c
commit
4d784ad693
@ -52,6 +52,8 @@ class RegisterCrossingAssertion extends Module {
|
||||
class RegisterWriteIO[T <: Data](gen: T) extends Bundle {
|
||||
val request = Decoupled(gen).flip
|
||||
val response = Irrevocable(Bool()) // ignore .bits
|
||||
|
||||
override def cloneType = new RegisterWriteIO(gen).asInstanceOf[this.type]
|
||||
}
|
||||
|
||||
// To turn off=>on a domain:
|
||||
@ -126,6 +128,8 @@ class RegisterWriteCrossing[T <: Data](gen: T, sync: Int = 3) extends Module {
|
||||
class RegisterReadIO[T <: Data](gen: T) extends Bundle {
|
||||
val request = Decoupled(Bool()).flip // ignore .bits
|
||||
val response = Irrevocable(gen)
|
||||
|
||||
override def cloneType = new RegisterReadIO(gen).asInstanceOf[this.type]
|
||||
}
|
||||
|
||||
class RegisterReadCrossingIO[T <: Data](gen: T) extends Bundle {
|
||||
|
Loading…
Reference in New Issue
Block a user