CSR指令的实现 #18
CodeWenjiu
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前为了实现csr指令,不得不让ALU输出csr rdata,不是很优雅,一个想法是通过一个枚举通知csr类型指令,然后再寄存器文件中match到,就将csr旧值写入rd然后接受result为新值
尚未测试这种方案的可行性,不过逻辑上感觉是没问题的
但从时序的角度上考虑,这种方案要求在写回阶段,先读取CSR堆中的某个值,然后将其写入GPR,是否会太长了?
目前先暂时按照旧方案,后续如果面积限制的很死可以考虑一下
Beta Was this translation helpful? Give feedback.
All reactions