Skip to content
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

请问memmapbase地址0x1000_0000是如何映射到0x6000_0000 #109

Open
mangolou opened this issue Feb 6, 2023 · 1 comment
Open

请问memmapbase地址0x1000_0000是如何映射到0x6000_0000 #109

mangolou opened this issue Feb 6, 2023 · 1 comment

Comments

@mangolou
Copy link

mangolou commented Feb 6, 2023

你好!
请教一个问题,工程中需要把RV_BOOT.bin搬运到ddr中,设备树中ddr寄存器起始地址x6000_0000,而裸机的搬运代码中使用的是0x1000_0000。为什么ddr会有两个地址,这两个地址是否存在着映射关系,有点不理解,麻烦指点迷津,万分谢谢!

@wakafa1
Copy link
Contributor

wakafa1 commented Feb 7, 2023

存在映射关系,请参考

val memAddrMap = Module(new SimpleBusAddressMapper((memMapRegionBits, memMapBase)))

FuWenyi pushed a commit to Jiayuah/NutShell that referenced this issue Mar 28, 2023
* fix a bug that updates the replacer's SRAM at wrong beats.
--add a flip-flop, beating 'repl_state' one more cycle.

* fix a mistake, make it compatible with full clk.

* Now its compatible with full clk.

* beats 'next_state' to next cycle instead of 'repl_state'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants