Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

请教下 quard_star 有硬件手册之类的吗?小白想知道对于一些地址、寄存器配置是这么来的 #8

Closed
later-3 opened this issue Aug 2, 2022 · 4 comments
Labels
discussions some topics of discussion

Comments

@later-3
Copy link

later-3 commented Aug 2, 2022

No description provided.

@later-3 later-3 changed the title 请教下 quard_star 有硬件手册之类的吗?对于一些地址、 请教下 quard_star 有硬件手册之类的吗?小白想知道对于一些地址、寄存器配置是这么来的 Aug 2, 2022
@later-3
Copy link
Author

later-3 commented Aug 2, 2022

比如说 [QUARD_STAR_UART0] = { 0x10000000, 0x1000 }, 这里uart0 为啥是0x10000000的地址

@QQxiaoming
Copy link
Owner

非常抱歉,目前还没有比较完整归纳的文档,但这已经在我的计划中了。

就目前而言,也许可以通过阅读源码了解你想要的,整个系统的map可以在qemu-7.0.0/hw/riscv/quard_star.c:quard_star_memmap查看
具体的寄存器由于目前quard_star复用了大量qemu原本已有的ip模拟实现,因此你可以搜索对应的文档或直接阅读源码。quard_star.c目前已整理的比较容易阅读。

@QQxiaoming
Copy link
Owner

比如说 [QUARD_STAR_UART0] = { 0x10000000, 0x1000 }, 这里uart0 为啥是0x10000000的地址

对于这个地址的选择并没有什么特殊含义,在RISCV架构中似乎没有任何限制(但实际真实芯片架构系统总线实现可能会有限制),我只是把他放在这个地址了,你当然也可以改到其他地址。

@later-3
Copy link
Author

later-3 commented Aug 2, 2022

好滴。感谢解答!

Repository owner locked and limited conversation to collaborators Aug 3, 2022
@QQxiaoming QQxiaoming converted this issue into discussion #9 Aug 3, 2022
@QQxiaoming QQxiaoming added the discussions some topics of discussion label May 24, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
discussions some topics of discussion
Projects
None yet
Development

No branches or pull requests

2 participants