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

Principles and necessities of TransposePreloadUnroller #366

Open
infinitexplore opened this issue Aug 28, 2024 · 1 comment
Open

Principles and necessities of TransposePreloadUnroller #366

infinitexplore opened this issue Aug 28, 2024 · 1 comment

Comments

@infinitexplore
Copy link

infinitexplore commented Aug 28, 2024

Hello companions in Gemmini:

TransposePreloadUnroller seems to expand a pair of preload and flip-compute instructions into three instructions. The C address is rearraged into another preload instruction.

This expansion really perplex me. Why do WS transposed instructions get such special treatment?

And I also found

 first_compute_cmd.cmd.inst.rs1 := Cat(cmds(1).cmd.rs1(63, 32), garbage_addr)
 first_compute_cmd.cmd.inst.rs2 := Cat(cmds(1).cmd.rs2(63, 32), garbage_addr)

inst is signal of RoCCInstruction type. They are used to exchange data between Gemmini and RISC-V CPU. In the downstream stages of Gemmini pipeline, it is not used anymore. So what is the point of above codes?

Thanks in advance for whoever might enlighten me in any way.

@infinitexplore
Copy link
Author

@hngenc

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

1 participant