-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rocketchip学习笔记3:如何添加设备(加速器),挂载流程:cake pattern 解析 #25
Labels
Comments
Repository owner
locked and limited conversation to collaborators
Nov 30, 2019
5.将配置class实例化后添加到rocket的默认配置之上
|
cake pattern更多资料wiki:https://github.com/Intensivate/learning-journey/wiki/Cake-Pattern |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
概述
拓展rocketchip时,经常需要将我们编写的设备或者加速器挂载到rocket的总线上,这个过程包含了:
module的编写
module封装成trait
将我们的traits混入rocket system变成一个整体(其实是编写module层面的TopWIthModule的配置class)
进一步生成rocket层面的顶层配置类
将配置class实例化后添加到rocket的默认配置之上
这就是rocket的一种可拓展的模块化配置 编程模式,叫做cake pattern
https://chipyard.readthedocs.io/en/dev/Customization/Adding-An-Accelerator.html#mmio-peripheral
这个例子详细讲解了cake pattern,值得参考学习
The text was updated successfully, but these errors were encountered: