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

The Removable Instruction Cache and Data Cache #4162

Open
5 tasks done
chenjie35335 opened this issue Jan 10, 2025 · 1 comment
Open
5 tasks done

The Removable Instruction Cache and Data Cache #4162

chenjie35335 opened this issue Jan 10, 2025 · 1 comment
Labels
feature request Feature request to be considered

Comments

@chenjie35335
Copy link

Before start

  • I have read the RISC-V ISA Manual. 我已经阅读过 RISC-V 指令集手册。
  • I have read the XiangShan Documents. 我已经阅读过香山文档。
  • I have searched the previous issues and did not find anything relevant. 我已经搜索过之前的 issue,并没有找到相关的。
  • I have searched the previous discussions and did not find anything relevant. 我已经搜索过之前的 discussions,并没有找到相关的。
  • I have reviewed the commit messages from the relevant commit history. 我已经浏览过相关的提交历史和提交信息。

Describe the feature you'd like

We find that there are two properties in the config of Xiangshan called 'HasICache' and 'HasDCache'. However, we find that two caches still exist in Xiangshan if we assign them false. Therefore, we propose to implement a removable instruction cache and data cache.

Additional context

No response

@chenjie35335 chenjie35335 added the feature request Feature request to be considered label Jan 10, 2025
@Ma-YX
Copy link
Contributor

Ma-YX commented Jan 13, 2025

Thanks for your question.

Currently, XiangShan does not support removable ICache and DCache. The HasICache and HasDCache you mentioned in XSCoreParameters are not actively used. As a result, setting these parameters false will not disable or remove ICache and DCache.

Additionally, XSCoreParameters defines default parameters of XiangShan. During compilation, some parameters are redefined in file Configs(located in folder top). To experiment with removing the DCache, you can try disabling WithNKBL1D in this file.

In the near future, we have no plans to implement this feature. If you're interested, you could explore implementing removable ICache and DCache functionality and submit a pull request to the XiangShan repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request to be considered
Projects
None yet
Development

No branches or pull requests

2 participants