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

hw: Support multi-ID DMA #144

Merged
merged 31 commits into from
Jul 23, 2024
Merged

hw: Support multi-ID DMA #144

merged 31 commits into from
Jul 23, 2024

Conversation

fischeti
Copy link
Contributor

@fischeti fischeti commented May 28, 2024

The new iDMA supports multiple channels by instantiating multiple backends that can serve different streams independently to prevent ordering requirements.

TODO

  • Set proper defaults in config
  • Add test dma_mchan to verify independence and correctness of streams
  • Additional HW configuration to test multi channel in CI
  • Switch to proper release of iDMA once ready
  • Evaluate overhead of multichannel iDMA and bigger Xbar (DMA grows from 76kGE to 296kGE; Wide Xbar from 110kGE to 186kGE) in a 4 channel configuration.
  • Revert DMA ISA extension assembly instructions to .word for better interoperability with non-pulp toolchains

@colluca
Copy link
Collaborator

colluca commented Jul 4, 2024

Version 0.6.3 of the iDMA has been released containing the mentioned changes. The iDMA in Snitch has already been bumped in #156 so we can undraft this after rebasing on top of it.

sw/snRuntime/src/dma.h Outdated Show resolved Hide resolved
@fischeti fischeti force-pushed the idma-mc branch 2 times, most recently from 406f507 to ce17a6e Compare July 15, 2024 17:11
@fischeti fischeti marked this pull request as ready for review July 16, 2024 10:25
Copy link
Collaborator

@colluca colluca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the programming interface of the DMA changes, specifically for what concerns the config field.

Can you also update the documentation accordingly?

hw/snitch/src/snitch_pkg.sv Show resolved Hide resolved
hw/snitch_cluster/src/snitch_cluster.sv Outdated Show resolved Hide resolved
hw/snitch_cluster/src/snitch_cluster.sv Show resolved Hide resolved
target/snitch_cluster/sw/run.yaml Outdated Show resolved Hide resolved
hw/snitch_cluster/src/snitch_cc.sv Show resolved Hide resolved
sw/snRuntime/src/start.c Outdated Show resolved Hide resolved
@fischeti
Copy link
Contributor Author

I see the programming interface of the DMA changes, specifically for what concerns the config field.

Can you also update the documentation accordingly?

I added the new config documentation as well now.

target/snitch_cluster/sw/tests/Makefile Outdated Show resolved Hide resolved
@colluca colluca merged commit 4418183 into main Jul 23, 2024
27 checks passed
@colluca colluca deleted the idma-mc branch July 23, 2024 12:40
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

Successfully merging this pull request may close these issues.

3 participants