提交 b1860798 编写于 作者: Fa_wang's avatar Fa_wang

csr: fix csri

上级 e130fbec
......@@ -491,7 +491,7 @@ class CSR extends FunctionUnit with HasCSRConst
(if (HasFPU) fcsrMapping else Nil)
val addr = src2(11, 0)
val csri = src2(16, 12)
val csri = ZeroExt(src2(16, 12), XLEN)
val rdata = Wire(UInt(XLEN.W))
val wdata = LookupTree(func, List(
CSROpType.wrt -> src1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册