Closed mbaykenar closed 1 year ago
Hi @mbaykenar, Thanks for your interest in CORE-V-MCU. I took the liberty of editing your issue description to clean up the markdown formatting. You have asked a couple of questions which I will try to answer. These answers reference the CORE-V-MCU User's Manual, which is currently under development.
PAD_CFG_MUX
macro is not used. It will be deleted from a future release of the RTL.In the case of the APB SoC Event Controller, the base address is 0x1A10-6000
and the offset for IO_CFG0
is 0x0400, so the address of the IO_CFG0
CSR in the APB SoC Event Controller is 0x1A10-6400.
You will note that the documentation provides information about a set of CSRs called IO_CTRL
and you will not find these in the RTL. Also, the RTL has an address REG_WCFGFUN
and you will not find this in the documentation. That is because the CORE-V-MCU User Manual is a user's document, not an RTL designers document.
Lastly, we are in the process of creating a significant update to the CORE-V-MCU User Manual, and your questions are most welcome. If you have the time and interest, perhaps you would be willing to help out - let me know!
I hope this answers your question @mbaykenar. If it does, please close this issue. If you have another question, feel free to create a new issue. We try hard not to resolve multiple bugs/questions in a single issue.
Thanks!
@MikeOpenHWGroup thanks a lot for your time and detailed answers. I understand that the documentation is an ongoing process, I am working on core-v-mcu nowadays to understand and modify the architecture for a commercial design.
Just a note, I don't think my question is related to "APB SoC Event Controller" but rather related to "APB SoC Controller", whose base address is 0x1A104000. But anyways I got my answer, thanks a lot.
Regarding to the contribution or helping core-v-mcu, I will be honoured to be in such a position. I will sent a personal email to you
Regards,
Bug Description
In apb_soc_ctrl.sv some definitions for register offsets are:
I was reading the documentation for apb_soc_ctrl section and IO_CTRL offset is seem to be 0x0400, which is PAD_CFG_MUX parameter in sv file. However, this parameter is never used in this file or another in the repo.
This offset val is also seen in hal_apb_soc_ctrl_reg_defs.h in hal library for core-v-mcu:
Correct offset is seem to be REG_WCFGFUN ?
or I simply did not understand the meaning of 0x400 offset for I/O control ?
Regards,