提交 f8f074d1 编写于 作者: L Lingrui98

[WIP] fix apply method in FtqRead

上级 c30bc36c
......@@ -119,10 +119,9 @@ class FtqRead[T <: Data](private val gen: T)(implicit p: Parameters) extends XSB
val offset = Output(UInt(log2Ceil(16).W))
val data = Input(gen)
def apply(ptr: FtqPtr, offset: UInt) = {
val read = Wire(Flipped(this.cloneType))
read.ptr := ptr
read.offset := offset
read.data
this.ptr := ptr
this.offset := offset
this.data
}
override def cloneType = (new FtqRead(gen)).asInstanceOf[this.type]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册