关于香山处理器fence执行单元 #3661
-
在哪里可以找到关于香山处理fence执行单元的原理文档呀? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
香山的 Fence 类指令实现比较简单,使用状态机控制,刷新 StoreBuffer 和 MMU 中的缓存内容,再刷新流水线。可以直接看源码:https://github.com/OpenXiangShan/XiangShan/blob/master/src/main/scala/xiangshan/backend/fu/Fence.scala The Fence instructions implementation in XiangShan is relatively simple, utilizing a state machine to control to flush the cache of the StoreBuffer and MMU, and then to flush the cpu pipeline. You can read the source code at: XiangShan/Fence.scala |
Beta Was this translation helpful? Give feedback.
香山的 Fence 类指令实现比较简单,使用状态机控制,刷新 StoreBuffer 和 MMU 中的缓存内容,再刷新流水线。可以直接看源码:https://github.com/OpenXiangShan/XiangShan/blob/master/src/main/scala/xiangshan/backend/fu/Fence.scala
Fence指令的其他复杂特性,还请阅读RISC-V的手册。
The Fence instructions implementation in XiangShan is relatively simple, utilizing a state machine to control to flush the cache of the StoreBuffer and MMU, and then to flush the cpu pipeline. You can read the source code at: XiangShan/Fence.scala
For other complex features of the Fence instruction, please refer to the RISC-V manual.