Skip to content

feat(host): DMA channel model with CRC32 integrity (W59, R-HS-9)#832

Open
gHashTag wants to merge 1 commit into
masterfrom
feat/wave-59/host-dma-model
Open

feat(host): DMA channel model with CRC32 integrity (W59, R-HS-9)#832
gHashTag wants to merge 1 commit into
masterfrom
feat/wave-59/host-dma-model

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Closes #831

Wave 59 (R-HS-9): Host DMA channel model with CRC32 integrity

What

  • New bootstrap/src/host/dma.rs with DmaChannel<M: Mmio>
  • DmaConfig builder: src/dst addresses, word count, optional CRC32 verification
  • DmaError: ZeroLength, ExceedsMaxLen, AlreadyBusy, ChecksumMismatch
  • DmaReport: words transferred, CRC32 checksum, state, cycle estimate
  • Embedded CRC32 submodule (polynomial 0xEDB88320) for self-contained word checksums
  • Two new CSR offsets: DMA_CTRL (0x28), DMA_STAT (0x2C); CSR_COUNT 10→12

Tests

19 new inline tests, all pass. 841 total tests on this branch (836 master + 5 new from csr_map update... actually 836 + 19 - pre-existing = correct).

Why

Software model of the DMA controller for weight word transfers from host to BRAM. Supports partial transfers, CRC32 integrity verification with trailer word, error states, and per-transfer cycle estimation.

Wave 59 (R-HS-9): DmaChannel<M: Mmio> with embedded CRC32 checksum.
DmaConfig builder, DmaError variants, DmaReport, cycle estimation.
DMA_CTRL (0x28), DMA_STAT (0x2C) CSR offsets added.
19 new tests, all pass.
@github-actions
Copy link
Copy Markdown

PR Dashboard

Generated at: 2026-05-24 07:48:53 UTC

Summary

Status Count
Total Open PRs 20
PRs with Failing Checks 0
PRs with All Checks Green 20
READY 19
FAILING 0
PENDING 0

@github-actions
Copy link
Copy Markdown

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

This was referenced May 24, 2026
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.

Host DMA channel model with CRC32 integrity (R-HS-9)

2 participants