提交 3457e5ad 编写于 作者: L LinJiawei

Frontend: add log

上级 69ae7689
......@@ -4,6 +4,7 @@ import chisel3._
import chisel3.util._
import utils.PipelineConnect
import xiangshan._
import xiangshan.utils.XSInfo
class Frontend extends XSModule {
val io = IO(new Bundle() {
......@@ -19,4 +20,11 @@ class Frontend extends XSModule {
ibuffer.io.flush := io.backend.redirect.valid
io.backend.cfVec <> ibuffer.io.out
for(out <- ibuffer.io.out){
XSInfo(out.fire(),
p"inst:${Hexadecimal(out.bits.instr)} pc:${Hexadecimal(out.bits.pc)}\n"
)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册